The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Template Hook on Postbit Legacy
I'm using a plugin to add some info to each post in a thread:
Template hook: parse_templates Code:
$templater = vB_Template::create('new_info'); $template_hook['postbit_messagearea_start'] .= $templater->render(); Code:
$templater = vB_Template::create('new_javascript'); $template_hook['headinclude_javascript'] .= $templater->render(); Quote:
--------------- Added [DATE]1432047452[/DATE] at [TIME]1432047452[/TIME] --------------- Found out the issue. I used parse_templates instead of postbit_display_complete hook. --------------- Added [DATE]1432048884[/DATE] at [TIME]1432048884[/TIME] --------------- I've got another issue now. When using postbit_display_complete hook, I am trying to display a link to the post ID using this: Code:
<a name="post{vb:raw post.postid}" href="{vb:link thread, {vb:raw thread}, {vb:raw pageinfo_post}}#post{vb:raw post.postid}" class="<vb:if condition="$show['inlinemod']">ie</vb:if>postcounter">#{vb:raw post.postcount}</a><a id="postcount{vb:raw post.postid}" name="{vb:raw post.postcount}"></a> When I run the plugin, all I get is a hash tag and a semi-finished link. This is the output: Code:
http://MY_FORUM/test/showthread.php?1-test#post Code:
http://MY_FORUM/test/showthread.php?1-test#post2 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|