Signature Once

Signature Once 2.0.7

No permission to download

TickTackk

Well-known member
batpool52! submitted a new resource:

Signature Once - Allows user signature to be shown only once per thread or once per page.

Description
Allows user signature to be shown only once per thread or once per page.

Screenshots
View attachment 169130View attachment 169131

Options
  • "Show user's signature once per thread" under Admin > Options > Messages
Permissions
  • "Bypass signature once" under Admin > Groups & permissions > [Usergroup] > Forum permissions
Funding
This...

Read more about this resource...
 
Works like a charm! 5 stars. Well, if the system let me rate it. For some reason it's not.

edit: Had to type at least 100 characters. Seems like an arbitrary amount if you've said all you needed to.

edit2: And it was removed for "padding". Still 5 stars, but guess you don't need that kind of credit without excessive verbosity.
 
Last edited:
Yeah, just making Batpool aware :) I'm guessing it's something that should still be addressed at some point just for completeness.
 
I think I downloaded the wrong file.

After going to the GitHub page I moved around before downloading it, and ended up here before downloading.

1520435772037.webp

I just went back and instead downloaded from here and it seems complete.

1520435818551.webp
 
Are you sure?

The source code one is double the size and seems to have a lot of folders and files in a folder called _output compared to the packaged up release TickTackk-SignatureOnce-1.0.0, which has the hashes.json that I was missing originally.

Source code (zip) actually looks like the same as what I downloaded originally.

I've not built an XF add on, but I'm thinking now you need the exported files created from the command line, and that's what the TickTackk-SignatureOnce-1.0.0.zip is? vs the source code from local development, which would explain why my first download wouldn't work and there was no file integrity hashes.

Or I could be way off. Just guessing.

Either way TickTackk-SignatureOnce-1.0.0.zip worked a treat.
 
TickTackk-SignatureOnce-[insert-version-string-here].zip would be the correct file. The source code archive files are just development output files.
 
Server error log
  • ErrorException: Template error: key() expects parameter 1 to be array, null given
  • src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php:45
  • Generated by: Unknown account
  • Mar 24, 2018 at 11:38 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'key() expects p...', 'src/addons...', 45, Array)
#1 src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php(45): key(NULL)
#2 [internal function]: TickTackk\SignatureOnce\XF\Entity\Post->canShowSignature()
#3 src/XF/Template/Templater.php(938): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l3/s11/public/message_macros.php(262): XF\Template\Templater->method(Object(TickTackk\SignatureOnce\XF\Entity\Post), 'canShowSignatur...', Array)
#5 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l3/s11/public/post_macros.php(182): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#7 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l3/s11/public/thread_view.php(552): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#9 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#16 src/XF.php(328): XF\App->run()
#17 index.php(13): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
["url"] => string(31) "/t/jaki-telefon-do-350zl.53994/"
["referrer"] => bool(false)
["_GET"] => array(1) {
["/t/jaki-telefon-do-350zl_53994/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
I'm using latest version, currently Beta 5. This issue is from Beta 3 and 4. Now I'm testing Signature Once with Multi Prefix Beta 5.
 
The issue is also with Multi Prefix Beta 5:

Server error log
  • ErrorException: Template error: key() expects parameter 1 to be array, null given
  • src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php:45
  • Generated by: Unknown account
  • 24.03.2018 o 14:20
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'key() expects p...', 'src/addons...', 45, Array)
#1 src/addons/TickTackk/SignatureOnce/XF/Entity/Post.php(45): key(NULL)
#2 [internal function]: TickTackk\SignatureOnce\XF\Entity\Post->canShowSignature()
#3 src/XF/Template/Templater.php(938): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l3/s11/public/message_macros.php(262): XF\Template\Templater->method(Object(TickTackk\SignatureOnce\XF\Entity\Post), 'canShowSignatur...', Array)
#5 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array, Array)
#6 internal_data/code_cache/templates/l3/s11/public/post_macros.php(182): XF\Template\Templater->callMacro('message_macros', 'signature', Array, Array)
#7 src/XF/Template/Templater.php(661): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array, Array)
#8 internal_data/code_cache/templates/l3/s11/public/thread_view.php(552): XF\Template\Templater->callMacro('post_macros', 'post', Array, Array)
#9 src/XF/Template/Templater.php(1248): XF\Template\Templater->{closure}(Object(SV\MultiPrefix\XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1891): XF\Mvc\Dispatcher->run()
#16 src/XF.php(328): XF\App->run()
#17 index.php(13): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
["url"] => string(55) "/t/dotykowy-desire-c7-milestone.49697/page-2?view=votes"
["referrer"] => bool(false)
["_GET"] => array(2) {
["/t/dotykowy-desire-c7-milestone_49697/page-2"] => string(0) ""
["view"] => string(5) "votes"
}
["_POST"] => array(0) {
}
}
 
Top Bottom