![]() |
vbphrase for header plugin...or not
Hi all, i've tried to research and not ask too many stupid questions, but i've really struggled to get to the point of developing a hack/plugin, although i've managed a basic plugin, now i'm lost.
I've got a plugin which hooks into global_start and outputs to a var ($x), $x is called in the header section of the board. It contains a login form/information, however the $vbphrase for the message totals ect are not displaying, so i assume these are populated later than global_start. Is there a more appropriate hook for me to use, or do you have any other advice to get arround the issue. Really appreciate any help. J. |
Can you post up the code you are using?
|
ok for the purpose of the problem..
my plugin contains this type of code.. Code:
$info = $vbphrase[unread_x_nav_compiled]; Code:
$info Many Thanks J. |
Which hook location are you using?
|
global_start
|
global_start is called before the header is built, so the whatever you are trying to assign to $info must not exist. Please post the actual code, not similar examples.
|
No, that is an exact example, i want to assign $vbphrase[unread_x_nav_compiled] at global_start and it doesn't work I've got load of irrelevant code which works fine, Its the $vbphrase which doesn't work, hence the question.
|
ok i've changed my plugin, so it excludes everything else and i can post the exact code. As you will appreciate its the same, but i realize its easier to help if you see the full code. It hooks at global_start and just contains:
Code:
Code:
$TestVar If anyone can help, it would be greatly appreciated. J. |
Try using the construct_phrase function...
$TestVar = construct_phrase('unread_x_nav_compiled'); |
Its probably because you need to set a value for X thats why it won't work. Try setting it to zero or something and seeing what happens. Something like this:
PHP Code:
|
All times are GMT. The time now is 10:51 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:
|