The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Easy question - vbphrases dont' work
I'm creating a new file and wondering why Vbphrases arn't working while almost all other variables are...
the file is simply: PHP Code:
|
#2
|
|||
|
|||
Phrases are usually put in a template and then parsed by the php automatically, I don't know if you can do it this way, since I never tried.
|
#3
|
|||
|
|||
it should, $vbphrase is just a bigass array. my real problem is more along the lines of this line:
PHP Code:
|
#4
|
|||
|
|||
First of all you shouldn't use both the normal global.php and the adminc/global.php. Only the admin should be enough.
you might need to add the following after all included scripts: PHP Code:
|
#5
|
|||
|
|||
I need to include both global.php's because of the functions i'm running through the script ^_^.
Also, since both are included I removed the "global $vbphrase;" since $vbphrase = init_lang(); is already included in one of the global.php's. Also, i've tried a "global $vbphrase;" and that still didn't work. In any matter, the script i posted originally should work (i think). still not sure of the problem, why vbphrase isn't working. |
#6
|
|||
|
|||
In which phrasegroup is the phrase you are trying to use? Not all groups are loaded by default.
|
#7
|
|||
|
|||
hrm. good question. which phrasegroup is used in the adminCP?
|
#8
|
|||
|
|||
Different ones. Just lookup the phrase you want to use and see which group it belongs to.
|
#9
|
|||
|
|||
ok where do i do that, for example this phrase "$vbphrase['all_template_groups']"
how do i load that into my script? |
#10
|
|||
|
|||
bueler bueler?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|