The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
using Phrases outside of install directory -- what loads them? - init.php or global.
Can anyone tell me what bit of code normally is repsonsible for loading the phrase system and in what php document?
My guess is its something in global.php or init.php but I'm just not seeing it! |
#2
|
||||
|
||||
It's a template hook call, right? Such as $vbphrase
|
#3
|
|||
|
|||
No. I think I'm looking for something within the actual php code. Something like include_once or include or register or similar.
|
#4
|
||||
|
||||
I would recommend to just include global.php because the function that initializes the phrases/language (init_language()) still requires the $vbulletin object to exist
In other words, this is possible, you'd just have to go through the hassle of reverse engineering the vB initialization process. |
Благодарность от: | ||
Max Taxable |
#5
|
|||
|
|||
I never would have guessed init_language had anything to do with phrases...
It turns out the problem was actually to do with php syntax when converting the templates into php echo statements. PHP doesn't apparently like echoing the variables from the templates, so I needed to chop up the echo into smaller bits so that instead of echoing something like echo onFocus="if (this.value == \'$vbphrase[username]\') this.value = \'\';" /> it reads echo onFocus="if (this.value == \'' . $vbphrase['username'] . '\') this.value = \'\';" /> So the problem was always just syntax! Slaps forhead. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|