vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   $vboptions in postbit via plugin (getting information) (https://vborg.vbsupport.ru/showthread.php?t=181147)

toonysnn 05-31-2008 10:00 PM

$vboptions in postbit via plugin (getting information)
 
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.


All times are GMT. The time now is 07:05 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
  • Page Generation 0.01047 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete