The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
|||
|
|||
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?
|
#3
|
||||
|
||||
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? |
#4
|
|||
|
|||
You probably need to add "global $vbulletin;" before your code. I think that's what Danny was thinking.
|
#5
|
||||
|
||||
If the globalizing of $vbulletin won''t either, then try to use
PHP Code:
|
#6
|
||||
|
||||
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.
|
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
thnx.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|