The Arcive of vBulletin Modifications Site. |
|
|
Show Phrase Variable Names
Sometimes it might be handy to see phrase variable names instead of text on frontend pages - this little plug-in does that for you (with some exceptions like error/redirect messages and dynamically loaded phrasegroups). style_fetch PHP Code:
|
|
#2
|
|||
|
|||
|
Any way how to do this on vB 4.x ?
Thx |
|
#3
|
|||
|
|||
|
Try using hook [S]global_bootstrap_complete[/S] (use style_fetch, see below) and add:
Code:
global $vbulletin, $vbphrase; to the beginning of the code. |
|
#4
|
|||
|
|||
|
THANKS!!! It's working now ! :]
EDIT: With that hook you suggested not all of the phrase varnames are shown, anyway style_fetch hook will do the trick on th ewhole forum. So, to have all info at one place ... 1] Edit config.cfg and add following line Code:
$config['Misc']['debug'] = true; Hook Location: style_fetch Code: Code:
global $vbulletin, $vbphrase;
if ($vbulletin->debug)
{
foreach ($vbphrase AS $key => $phrase)
{
$vbphrase["$key"] = "*$key*";
}
}
Credits to Andreas and kh99 :] |
![]() |
|
|