View Full Version : Template Hook: signature_end -- Showing Double?
CypherSTL
01-09-2010, 06:27 AM
I'm having an issue with a mod that I am converting over to 4.0.
All other template hook locations work fine with the output, however, when I try to use the "signature_end" location, it's doubling up on the output.
This happening to anyone else?
Lynne
01-09-2010, 03:14 PM
I just tested it by entering "hello" at that template hook and I got just one hello after my sig.
$template_hook['postbit_signature_end'] = "hello";
(I'm using postbit_legacy)
CypherSTL
01-11-2010, 05:51 AM
Hrm. This is becoming odd.
My mod has 5 template hook location of where it places its output.
With the Postbit Legacy, all locations output only once, with the exception of signature_end.
With the default Horizontal postbit, all locations output only once.
It seems, it's only doubling up on the output when using Postbit Legacy, and signature_end.
$templater = vB_Template::create($vbulletin->options[cat_postbit_style]);
$templater->register('post', $post);
$template_hook['postbit_signature_end'] .= $templater->render();
Running vB 4.0 PL1
Xanlamin
01-11-2010, 06:02 AM
Check to see if the hook is in the template itself twice.
CypherSTL
01-11-2010, 06:03 AM
Alright. Very weird indeed.
<vb:if condition="$post['signature']">
<blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote>
{vb:raw template_hook.postbit_signature_end}
</vb:if>
{vb:raw template_hook.postbit_signature_end}
Somehow, I have two of those hooks in my postbit_legacy template.
Downloaded the 4.0 PL1 Forum, and the Suite, and the Style XML also have two signature_end hooks. Not sure if this is a bug in 4.0 PL1, but I posted it on the VB.com Bug Tracker.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.