![]() |
Where to place hook for a hack that changes a $vboptions variable?
Hey everyone, hope all is well tonight.
I wrote a hack that will change the text of the $vboptions['bbtitle'] variable, but I have no idea which hook to use it on th make it take effect. Everywhere i place it, the forum still uses the default info for vboptions[bbtitle]. Any help is appreciated! |
I wrote a plugin which changes an option and I used the global_start hook.
|
If $vboptions doesn't work, try changing $vbulletin->options['bbtitle']. See if that has any effect.
|
I tried using the global start hook and tried editing the variable using the $vbulletin->options['bbtitle'] variable, and neither worked..
Doh. Any other tips or ideas are definitly appreciated! Regards |
Find where the variable is set, and find the closest hook.
|
Quote:
Thats what I'm trying to figure out :) I'm holding out hope that someone here already knows the answer? |
global_start seemed to work for me, what is the code you are using? Have you tried using the init_startup hook?
|
Maybe your plugin code is wrong. What exactly did you put in the plugin?
|
Quote:
Quote:
$vboptions['bbtitle'] = "Hi"; Thats the entire plugin code. However when I load the page and look down at areas such as the breadcrumb which uses $vboptions['bbtitle'] to display the title of the forum in the breadcrumb, it still displays the forum set variable instead of "Hi". |
As Opserty suggesting in Post 3, try:
$vbulletin->options['bbtitle'] = "Hi"; That works on my forum. Make sure you turn the plugin On since it is Off by default. |
Quote:
Whew! Thanks again, much appreciated! |
All times are GMT. The time now is 04:57 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:
|