Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#31 2015-06-15 01:13:20
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_calc – Calculator for TXP variables
Version 1.2 available for download – nothing exciting, just TXP 4.6 tag registration.
Offline
#32 2021-04-28 01:58:13
- peterj
- Member
- From: Melbourne, Australia
- Registered: 2005-06-02
- Posts: 110
Re: adi_calc – Calculator for TXP variables
Still love this little mathematical swiss army knife. Just updating an old site to TXP 4.8.5. It already had adi_calc v1.2, but is showing the “tag not registered” warning again. Fixed by changing this:
if (class_exists('Textpattern_Tag_Registry')) {
Txp::get('Textpattern_Tag_Registry')
->register('adi_calc')
;
}
To this:
if (class_exists('\Textpattern\Tag\Registry')) {
Txp::get('\Textpattern\Tag\Registry')
->register('adi_calc')
;
}
Offline
#33 2021-04-28 02:41:46
- gomedia
- Plugin Author
- Registered: 2008-06-01
- Posts: 1,373
Re: adi_calc – Calculator for TXP variables
peterj wrote #329981:
Still love this little mathematical swiss army knife.
An oldie … but a goodie.
… showing the “tag not registered” warning again.
The latter (correct) code is what’s present in adi_calc v1.2 available for download. I do remember there was a last minute change in the tag registration format after I’d updated & uploaded a whole load of my plugins. I wonder if you originally downloaded a copy before I’d snuck in a secret update.
Last edited by gomedia (2021-04-28 02:41:58)
Offline
Re: adi_calc – Calculator for TXP variables
Hello!, back around here. I would like to know if this plugin is still active or if there is another alternative that allows the same thing. In my case, I require the numbering to increase in <div data-number=“1”>
Offline
Re: adi_calc – Calculator for TXP variables
Welcome back, long time no see. Depending on the context, you can try
- either
<txp:variable name="counter" add output /> - or (inside an article/file/image/link list)
<txp:yield item="count" />
Offline
Re: adi_calc – Calculator for TXP variables
It’s working! Thank you very much.
Offline