[AP] Activity/Longevity Meters

[AP] Activity/Longevity Meters 1.1.0

No permission to download

apathy

Well-known member
Thank you so much

Another gap here:
View attachment 255075

Hopefully the next update will be compatible with RTL.
I'm not really familiar with RTL layout/languages, but I've just installed the Arabic language for testing. These are 3 different screenshots of different padding options:
  1. padding-left
  2. padding-right
  3. padding: 0
Screenshot 1 (padding-left) looks the best to me, at least in this screenshot without the translated addon phrases. Your last screenshot however looks more like Screenshot 2 (padding-right), did you try change it to left?

Screenshot 3 (padding: 0) looks more like the default Xenforo structure but the meters are misaligned from each other then.
 

Attachments

  • padding-left.png
    padding-left.png
    32.5 KB · Views: 7
  • padding-right.png
    padding-right.png
    33 KB · Views: 8
  • no-padding.png
    no-padding.png
    33.3 KB · Views: 8

wEbAddEr

Active member
When activating the postbit option i got this server error:

Stack trace​


#0 src/XF/Mvc/Entity/Entity.php(115): XF\Mvc\Entity\Entity->get('ap_postbit_styl...')
#1 internal_data/code_cache/templates/l1/s61/public/ap_actlong_meters.php(42): XF\Mvc\Entity\Entity->offsetGet('ap_postbit_styl...')
#2 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#3 src/XF/Template/Templater.php(1673): XF\Template\Templater->renderTemplate('ap_actlong_mete...', Array)
#4 internal_data/code_cache/templates/l1/s61/public/message_macros.php(268): XF\Template\Templater->includeTemplate('public:ap_actlo...', Array)
#5 src/XF/Template/Templater.php(817): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, NULL)
#6 internal_data/code_cache/templates/l1/s61/public/post_macros.php(25): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#7 src/XF/Template/Templater.php(980): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Templater.php(916): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#9 internal_data/code_cache/templates/l1/s61/public/post_macros.php(155): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#10 src/XF/Template/Templater.php(980): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(916): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#12 internal_data/code_cache/templates/l1/s61/public/post_macros.php(187): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(817): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#14 internal_data/code_cache/templates/l1/s61/public/thread_view.php(841): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#15 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(SV\StandardLib\XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#17 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#18 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#19 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#20 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#21 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#22 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#23 src/XF.php(512): XF\App->run()
#24 index.php(20): XF::runApp('XF\\Pub\\App')
#25 {main}


array(4) {
["url"] => string(109) "/threads/how-i-manage-my-reality-y%C3%A1zh%C3%AD-swaruu-extraterrestrial-communication-taygeta-pleiades.1545/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
 

apathy

Well-known member
When activating the postbit option i got this server error:
Thanks for the report, looks like the changes i made to make the addon compatible with one of my other addons is causing issues.

Strange that this is only causing issues only on postbits but not profiles. Ill have a look later on, should be easy to fix.
 

apathy

Well-known member
This option would be awesome!

The add-on works perfectly on all of my Pixel Exit skins. Looking forward to future updates, thanks for developing it. :)
The option to disable either meter has been added in the latest update, 1.0.4.

Thank you very much for your comments and the review, it means a lot :D
 

NobleMan

Well-known member
Getting this as soon as it's turned on

Template public:ap_actlong_meters error: floor(): Argument #1 ($num) must be of type int|float, string given

Code:
Stack trace

#0 src/XF/Template/Templater.php(2770): floor('3,330.67')
#1 src/XF/Template/Templater.php(1128): XF\Template\Templater->fnFloor(Object(MaZ\AMP\XF\Template\XF22\Templater), false, '3,330.67')
#2 internal_data/code_cache/templates/l1/s128/public/ap_actlong_meters.php(86): XF\Template\Templater->func('floor', Array, false)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('ap_actlong_mete...', Array, true, NULL)
#5 src/XF/Template/Templater.php(1680): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:ap_actlo...', Array)
#6 internal_data/code_cache/templates/l1/s128/public/message_macros.php(77): XF\Template\Templater->includeTemplate('public:ap_actlo...', Array)
#7 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#8 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array, Object(XF\Template\MacroState))
#9 internal_data/code_cache/templates/l1/s128/public/post_macros.php(48): MaZ\AMP\XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#10 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#12 internal_data/code_cache/templates/l1/s128/public/post_macros.php(182): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#15 internal_data/code_cache/templates/l1/s128/public/post_macros.php(227): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#17 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array, Object(XF\Template\MacroState))
#18 internal_data/code_cache/templates/l1/s128/public/thread_view.php(927): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'post_macros::po...', Array, Array)
#19 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#20 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#21 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#28 src/XF.php(517): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}
 

apathy

Well-known member
Getting this as soon as it's turned on

Template public:ap_actlong_meters error: floor(): Argument #1 ($num) must be of type int|float, string given

Code:
Stack trace

#0 src/XF/Template/Templater.php(2770): floor('3,330.67')
#1 src/XF/Template/Templater.php(1128): XF\Template\Templater->fnFloor(Object(MaZ\AMP\XF\Template\XF22\Templater), false, '3,330.67')
#2 internal_data/code_cache/templates/l1/s128/public/ap_actlong_meters.php(86): XF\Template\Templater->func('floor', Array, false)
#3 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#4 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('ap_actlong_mete...', Array, true, NULL)
#5 src/XF/Template/Templater.php(1680): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:ap_actlo...', Array)
#6 internal_data/code_cache/templates/l1/s128/public/message_macros.php(77): XF\Template\Templater->includeTemplate('public:ap_actlo...', Array)
#7 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, NULL)
#8 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array, Object(XF\Template\MacroState))
#9 internal_data/code_cache/templates/l1/s128/public/post_macros.php(48): MaZ\AMP\XF\Template\Templater->callMacro('message_macros', 'user_info', Array, Array)
#10 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#11 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('user_cell', Array, Array, Object(XF\Template\ExtensionSet))
#12 internal_data/code_cache/templates/l1/s128/public/post_macros.php(182): XF\Template\Templater->renderExtension('user_cell', Array, Object(XF\Template\ExtensionSet))
#13 src/XF/Template/Templater.php(987): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#14 src/XF/Template/Templater.php(923): XF\Template\Templater->renderExtensionInternal('full_body', Array, Array, Object(XF\Template\ExtensionSet))
#15 internal_data/code_cache/templates/l1/s128/public/post_macros.php(227): XF\Template\Templater->renderExtension('full_body', Array, Object(XF\Template\ExtensionSet))
#16 src/XF/Template/Templater.php(824): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#17 src/addons/MaZ/AMP/XF/Template/Templater.php(139): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array, Object(XF\Template\MacroState))
#18 internal_data/code_cache/templates/l1/s128/public/thread_view.php(927): MaZ\AMP\XF\Template\Templater->callMacro(NULL, 'post_macros::po...', Array, Array)
#19 src/XF/Template/Templater.php(1651): XF\Template\Templater->{closure}(Object(MaZ\AMP\XF\Template\XF22\Templater), Array, Object(XF\Template\ExtensionSet))
#20 src/addons/MaZ/AMP/XF/Template/XF22/Templater.php(52): XF\Template\Templater->renderTemplate('thread_view', Array, true, NULL)
#21 src/XF/Template/Template.php(24): MaZ\AMP\XF\Template\XF22\Templater->renderTemplate('public:thread_v...', Array)
#22 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#23 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#24 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#25 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#26 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#27 src/XF/App.php(2351): XF\Mvc\Dispatcher->run()
#28 src/XF.php(517): XF\App->run()
#29 index.php(20): XF::runApp('XF\\Pub\\App')
#30 {main}
Dang, I was hoping stripping commas from percentages would work. I'll have another look this evening and hopefully I'll get it sorted this time.
 

Rhody

Well-known member
I just installed this on a 25 year old forum, and I see that some members have "101%, 105%, etc Longevity". Is it limited to the year 2000 as the earliest start date?
 
Last edited:

apathy

Well-known member
I just installed this on a 25 year old forum, and I see that some members have "101%, 105%, etc Longevity". Is it limited to the year 2000 as the earliest start date?
Thats bizarre. No, nothing like that should happen, but I'll take a look and try get whatever it is sorted in the next version
 

hayyam

Member
The plugin is great but doesn't work on some member groups. There is no option in the permissions section either. can you help me
 
Top