The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I'm kind of a newbie b/c I just installed VB on my site, but I need to create a new environment/global variable that I can reference throughout VB much like {picturesfolder} and such... which file do I modify to create a new variable like this? Thanks!
|
#2
|
|||
|
|||
![]()
Those are replacements; you can create them in the Replacements (surprise
![]() |
#3
|
|||
|
|||
![]()
ohhh... so maybe that's NOT what I want... the replacements basically just insert a set of code for the {REPLACEMENT} word? nice feature! VB get's better as I work through it...
OK, well then here's the REAL problem... attached is a PHP file that I want to include (using a PHP include statement ![]() What file do I need to modify to do this?? I was told it was "header" in the templates, so I modified that, inserted a table w/ a <?php include ('myfile.php'); ?> statement in it and it put the banner there, but it put it @ the VERY top of the page... ??? then when I removed the code, it did not remove the banner... I'm getting scared now... Plus, about half the time that you refresh any post or the forum index page, you get this PHP error: Warning: Cannot modify header information - headers already sent by (output started at /home/clubvwof/public_html/forum/banner/banner.php:54) in /home/clubvwof/public_html/forum/admin/functions.php on line 1652 Line 1652 is a setcookie line... ![]() If anyone could be sooooo helpful as to take a look, I'd appreciate it... Our forum is HERE. Thanks again! |
#4
|
|||
|
|||
![]()
anyone?
![]() |
#5
|
|||
|
|||
![]()
It's only been half an hour, please wait much longer before bumping...
|
#6
|
||||
|
||||
![]()
Well I can't really explain how it's done but I will do my best.
First this is not in the header otherwise it will go on every page there is. Second this file need to be added into index.php with a $callname. Third you need to edit forumhome template and put the $callname in it where you want to locate it. Or unless you want it in your header you have to do the file stuff in global.php and template header. I don't really get where you exactly want to put it. |
#7
|
|||
|
|||
![]()
I DO want it to go on every page in the forum... so should I do it in the header??? My problem is that when I edit anything in the header (even if I edit it @ the end of the header) whatever I insert ends up @ the TOP of the page... ???
If I create a variable called $banner in index.php, can I reference $banner in any of the forum php files? For instance, should I create a string variable like this?: $banner = "include ('myfile.php');" or something along those lines and then just add $banner wherever I need the banner script included? I'd just like to insert it pretty much @ the top of the forum but below the title image and the UserCP, Register, etc buttons... somewhere in there... placement isn't ALL that important. I'll play w/ all of the things you mentioned, but I am still kind of new to VB... what exactly do you mean by a $callname? Just creating my own variable? THX! |
#8
|
|||
|
|||
![]()
OK... got it fixed for the most part now... one last problem...
I have the SPOT I want and all and all of the repeats and errors are gone, but now I can't get the banner to come up @ all... :surprised: Is this an illegal statement in the "header" template?: <?php include ('banner/banner.php'); ?> I know it's the right path b/c it worked before, but now it won't. The "header" template IS a part of a PHP file, correct??? Confused... ![]() |
#9
|
||||
|
||||
![]()
Ok first off the templates are html and cannot use php.
Open global.php Find: PHP Code:
PHP Code:
Then in header template put $banner where you want it to come up. |
#10
|
|||
|
|||
![]()
Getting somewhere now, but I have yet another question...
This just creates the VARIABLE between the headinclude and the header, correct? It doesn't actually put the information there or parse any text. I realized this when I did what you suggested above and the banner.php script appeared @ the top of the page. How, now, do I fix THIS issue? Any suggestions? Thanks for your help... we're getting SOMEWHERE... :classic: |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|