The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
is it posible to use $vbphrase in a plugin
is it possible to use $vbphrase['myphrase'] in a plugin.
i generate a table in my plugin and now i wish to use $vbphrase in this table. |
#2
|
||||
|
||||
Yeah, usually. Try it and see?
|
#3
|
|||
|
|||
i tried it but it did not work
i did this $output .= "some text".$vbphrase['somephrase'] some text is displayed, the phrase not. when i put the phrase in a template it is working. i also tryed putting {vb:rawphrase AJGattach_Totalpage} in my output, but that is only displayed as a string |
#4
|
||||
|
||||
I can't help unless I know exactly where you are putting this code.
|
#5
|
|||
|
|||
ahhh oke, here is a peace of code
PHP Code:
|
#6
|
||||
|
||||
You still aren't telling me *where* you are putting this code. Different hook locations require different things done in order to get variables to work.
|
#7
|
|||
|
|||
the hook location is member_build_blocks_start
|
#8
|
||||
|
||||
You can try making $vbphrase global.
|
#9
|
|||
|
|||
I'm having the same exact problem. I'm using 'postbit_display_complete' hook. $vbphrase['forum'] returns a correct phrase, but $vbphrase['infractionlevel8_title'] returns an empty phrase -- even though it is defined in the phrase manager.
Fixed by calling fetch_phrase_group('infractionlevel'); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|