PDA

View Full Version : Problem with vbulletin phrases


Scanu
03-11-2012, 06:34 PM
Hi i don't know why but i can't get working a custom phrase in my plugin, i do this many times but now it doesn't work :S First of all i add a new phrase

Phrase Type: GLOBAL

Product: My product

Varname: message_test

Text: Test test test test test...

and then in the plugin i put this

Hook Location: global_bootstrap_init_complete

Plugin PHP Code: $template_hook['headinclude_javascript'] .= $vbphrase['message_scanu'];

But nothing :S Hope that someone can helps me

kh99
03-11-2012, 09:14 PM
In the above, you have "message_test" in the phrase manager but "message_scanu" in the plugin code.

Scanu
03-11-2012, 09:22 PM
it's just wrong in the thread but in vbulletin it is right

kh99
03-11-2012, 09:26 PM
OK - try adding "global $vbphrase;" before your code.

Scanu
03-11-2012, 10:57 PM
no it is not working :(