![]() |
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. |
Yeah, usually. Try it and see?
|
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 |
I can't help unless I know exactly where you are putting this code.
|
ahhh oke, here is a peace of code
PHP Code:
|
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.
|
the hook location is member_build_blocks_start
|
You can try making $vbphrase global.
|
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'); |
All times are GMT. The time now is 11:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|