The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
include and vbphrases
Hi everyone!
I have a problem with include's and phrases. It has been recreated in the files test.php and includes/test_include.php. The problem is that the code is executed and the template fetched, but the phrase is not being printed. The nature of the real script means that I cannot use another plugin to insert the code, so that is out of the question. Any ideas on how to do this properly? test.php: PHP Code:
PHP Code:
HTML Code:
<tr> <td width="310" valign="top" class="thead"> <if condition="$varvar==set">$vbphrase[test_hello_world]</if> </td> <td valign="top" class="thead"></td> </tr> |
#2
|
|||
|
|||
Have you actaully created the phrase group and phrases?
If the phrase [test_hello_world] does not exist in a phrase group called "test phrases" then it won't call anything. |
#3
|
|||
|
|||
Yes, and they work if the eval is not done in a function.
M :cross-eyed: |
#4
|
||||
|
||||
add a global $vbulletin into the function.
|
#5
|
|||
|
|||
Already there, doesn't work.
M However, global $vbphrase works! :banana: Thanks! Martin |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|