The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Hook: signature_end -- Showing Double?
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? |
#2
|
||||
|
||||
I just tested it by entering "hello" at that template hook and I got just one hello after my sig.
PHP Code:
|
#3
|
|||
|
|||
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. Code:
$templater = vB_Template::create($vbulletin->options[cat_postbit_style]); $templater->register('post', $post); $template_hook['postbit_signature_end'] .= $templater->render(); |
#4
|
||||
|
||||
Check to see if the hook is in the template itself twice.
|
#5
|
|||
|
|||
Alright. Very weird indeed.
Code:
<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} 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. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|