vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Template Hook: signature_end -- Showing Double? (https://vborg.vbsupport.ru/showthread.php?t=232614)

CypherSTL 01-09-2010 06:27 AM

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?

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.
PHP Code:

$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.

Code:

$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.

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}

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.


All times are GMT. The time now is 05:06 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00988 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete