The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Settings Table
Edit (let me rephrase):
I have a url ($forumsurl) in the settings table in mysql. I am trying to call this url in certain parts of the forums for links. How do I make it pass this globaly (not sure where to put it). It will call it in the header/footer but not anywhere else. |
#2
|
|||
|
|||
Settings are already in the global scope.
|
#3
|
|||
|
|||
PHP Code:
|
#4
|
||||
|
||||
Use the variable $bburl - that's what its for
- miSt |
#5
|
|||
|
|||
$bburl would give me the directory for that part of the forums not the main forums.
I have 2 forums running sharing the database (one forums, one a file database). I want the certain links (like the profile of that user that posted it) to pull from the main forums profile page. |
#7
|
|||
|
|||
Quote:
This is the code in forumhome_lastpostby: PHP Code:
PHP Code:
PHP Code:
----------------- Its as if it see's the "/" after $forumsurl and goes to the root of the address. Almost as if $forumsurl is not defined but its called everywhere else I have it but here. |
#8
|
|||
|
|||
I just tested $bburl in place of $forumsurl and it still doesnt display path for $bburl, it also goes to root of address.
|
#9
|
|||
|
|||
Make sure you're adding the variable to the options template. vB is dumb and has data redundancy in a lot of places.
|
#10
|
|||
|
|||
I did a little playing because I felt as if it was not passing globaly...
PHP Code:
Where would be a good place to place this to make it global since its a little faulty the current way it is. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|