![]() |
Fed up! Why isn't this working? $vbulletin->options['hiddensigson']
OK I made a new option, var name: hiddensigon
yesno type default: 0 I double checked all the settings from a working mod and they are indentical besides the var name... Then in my plugin I use an if statement: PHP Code:
can't figure out what is wrong.:confused: |
But output, do you mean a proper var_dump() or are you just echoing it? If the latter, try the former. This is most likely a scope issue, what hook are you using?
|
postbit_display_start
and I was just adding it on to the end of a template... I just added it like ".$hiddensigon" I tried ".'test'" and "test" showed up so the value of "$hiddensigon" should also show. I'm guessing it's a scope issue too... do I need to include something then? |
You probably need to add "global $vbulletin;" before your code. I think that's what Danny was thinking.
|
If the globalizing of $vbulletin won''t either, then try to use
PHP Code:
|
thanks, (global $vbulletin;) that did it... is there any way to know ahead of time if that line is needed depending on the hook b/c the working mod I looked at didn't need it for the hook it used.
|
As far as I know, the only way is to look at the source code. For instance if you look at includes/class_postbit.php around line 265 you can see where the postbit_display_start
hook is called. |
thnx.
|
All times are GMT. The time now is 06:01 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:
|