The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Trying to write a plug-in...
What variables can I access to get: a) the path to the forum (i.e. http://www.mydomain.com/forum) b) the home page path (i.e. http://www.mydomain.com) In vB 2.3, these used to be the global variables $bburl and $homeurl. This no longer appears to be the case. Thanks! |
#2
|
||||
|
||||
![]()
a) $vboptions[bburl]
b) $vboptions[homeurl] check out the variables list in my signature !! |
#3
|
|||
|
|||
![]()
Hey, thanks! - excellent resources.
However, I'm a bit new to this, so as a test I put this into a plug-in that is on the "global_setup_complete" hook: Code:
echo "<font color=#FFFFFF>"; echo "bburl " . $vboptions[bburl] . "</br>"; echo "homeurl " . $vboptions[homeurl] . "</br>"; echo "</font>"; bburl homeurl ...so the variables are not there (or perhaps not initialized yet?) Basically, I want to initialize something one time that will then be used by other plug-ins. |
#4
|
||||
|
||||
![]()
Use the $vbulletin->options array. $vboptions is for templates only.
|
#5
|
|||
|
|||
![]()
Thanks - got that part working now.
$vbulletin->options['bburl'] $vbulletin->options['homeurl'] |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|