![]() |
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.
|
Any clues?
|
What is the exact code you are using in your plugin?
|
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"; |
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:
|
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.
|
$vboptions is ONLY available in templates.
|
Thanks. Would be nice if there was some documentation to tell us things like that.
|
All times are GMT. The time now is 11:40 AM. |
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:
|