PDA

View Full Version : $vboptions in postbit via plugin (getting information)


toonysnn
05-31-2008, 10:00 PM
I cannot seem to get this working, I've tried init_startup, global_startup, global_complete, postbit_display_complete, postbit_display_start, etc.
Where should I put $vbulletin->options['myhackname'] to be able to go into postbit_display_complete? (I tried placing it in the same plugin and it didn't work.)

All the best,
Guru (toonysnn)

Lynne
05-31-2008, 10:18 PM
What do you mean "where should I put" it? $vbulletin->options are defined in the Admin CP under vBulletin Options. Once they are defined there, they are available for use in most any template, I believe. If you are writing your own product, then turn on debug mode and you may make your own options in there.

toonysnn
05-31-2008, 10:22 PM
Yes, I know, but it won't work. I've set my custom $vbulletin->options['ezcredits_name'] to "Credits" (Default and set customly) but in all but two of those plugins, it didn't allow me to use it.

Is it just trying to piss me off? O_o

I've set it where "EzCredits" will only show up if $vbulletin->options['ezcredits_name'] is "empty"

Lynne
05-31-2008, 10:24 PM
Did you make sure $vbulletin was defined as global?

toonysnn
05-31-2008, 10:29 PM
Hmm...no I didn't.
Oh my god. I feel like a idiot now. LOL

Thanks.

Opserty
06-01-2008, 08:57 AM
<font face="Courier">$this->registry->options['ezcredits_name']</font> will probably work as well, though I haven't tested it. But it is a better way to access the options settings.