The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hook for $vboptions[copyrighttext]
I'm creating a product and one of the plugins needs to alter $vboptions[copyrighttext] at runtime before it gets displayed in the footer ... Which hook location would allow me to access $vboptions[copyrighttext]? I tried global_start and global_complete but neither of them worked for this.
|
#2
|
|||
|
|||
Any clues?
|
#3
|
||||
|
||||
What is the exact code you are using in your plugin?
|
#4
|
|||
|
|||
I've tried a number of things just to see if the variable is being changed but even something simple like
Code:
$vboptions[copyrighttext]="test"; --------------- Added [DATE]1225126687[/DATE] at [TIME]1225126687[/TIME] --------------- Ok I have it working now. Code:
$vboptions['copyrighttext'] = "test"; Code:
$vbulletin->options['copyrighttext'] = "test"; |
#5
|
||||
|
||||
You can't do it like that. I do it like this (well, it's modified for copyrighttext here, but I use it for other things):
PHP Code:
|
#6
|
|||
|
|||
Thanks, I came to the same conclusion a few minutes ago. Just annoying since the template and code sent me on a wild goose chase. The template reference $vboptions['copyrighttext'] and the code indicates $vboptions == $vbulletin->options ... Any way it's all good now. Thanks for your help.
|
#7
|
||||
|
||||
$vboptions is ONLY available in templates.
|
#8
|
|||
|
|||
Thanks. Would be nice if there was some documentation to tell us things like that.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|