The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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! |
|
#2
|
||||
|
||||
|
I wrote a plugin which changes an option and I used the global_start hook.
|
|
#3
|
|||
|
|||
|
If $vboptions doesn't work, try changing $vbulletin->options['bbtitle']. See if that has any effect.
|
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
Find where the variable is set, and find the closest hook.
|
|
#6
|
|||
|
|||
|
Thats what I'm trying to figure out I'm holding out hope that someone here already knows the answer?
|
|
#7
|
|||
|
|||
|
global_start seemed to work for me, what is the code you are using? Have you tried using the init_startup hook?
|
|
#8
|
||||
|
||||
|
Maybe your plugin code is wrong. What exactly did you put in the plugin?
|
|
#9
|
|||
|
|||
|
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". |
|
#10
|
||||
|
||||
|
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. |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|