The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
hook $template_hook[postbit_user_popup] - problems
There is hook:
$template_hook[postbit_user_popup] Example 1: HTML Code:
<template name="test" templatetype="template" date="1182869201" username="Makc666" version="1.0.0"> <![CDATA[ <if condition="$show['pmlink']"> <tr><td class="vbmenu_option">Test Phrase - PostID $post[postid] - Postcount $post[postcount]</td></tr> </if> ]]> </template> <plugin active="1" executionorder="5"> <title>Test (1)</title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[ eval('$template_hook[postbit_user_popup] = "' . fetch_template('test') . '";'); ]]> </phpcode> </plugin> HTML Code:
<template name="test" templatetype="template" date="1182869201" username="Makc666" version="1.0.0"> <![CDATA[ <if condition="$show['pmlink']"> <tr><td class="vbmenu_option">Test Phrase - PostID $post[postid] - Postcount $post[postcount]</td></tr> </if> ]]> </template> <plugin active="1" executionorder="5"> <title>Test (1)</title> <hookname>postbit_display_complete</hookname> <phpcode><![CDATA[ eval('$template_hook[postbit_user_popup] .= "' . fetch_template('test') . '";'); ]]> </phpcode> </plugin> The difference between Example 1 and Example 2 is on line: eval('$template_hook[postbit_user_popup] = "' . fetch_template('test') . '";'); In Example 1 there is NO . (dot) near = In Example 2 there is . (dot) near .= If I use Example 1 then I replace $template_hook[postbit_user_popup] with my template and no one will not be able to use $template_hook[postbit_user_popup] once again in another product. You will say, use Example 2 with . (dot) near .= as for example in this article is advised: https://vborg.vbsupport.ru/showthread.php?t=147447 But if I use Example 2 I have some problem... Look on screenshot. I don't know what to do... P.S. I don't want manual template changes. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|