The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Integrated header and navigation across website
I have a php logo and nav that I want to incorporate across the entire site - including in the forums. I'm very new at this and pretty clueless, but I do have the header.php file that seems to work ok: www.3pixelchicks.com/header.php
I've searched the forums, and I think I need to add to add this code to a global start plugin: ob_start(); include('home/www3pix/public_html/header.php'); $includedphp = ob_get_contents(); ob_end_clean(); I've activated the plugins, but now I'm stuck. I tried adding: $includedphp in the header template, but I'm not sure if that's right. It gives me an error message in the forum. Here's the error: Warning: include() [function.include]: Failed opening 'home/www3pix/public_html/header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in [path]/global.php(383) : eval()'d code on line 2 If someone could let me know what I'm doing wrong, and which template (header? header includes? something else altogether??) I need to add $includedphp in, I would very much appreciate it! I apologize for being a total newbie here - it seems like the more I learn, the less I know. |
#2
|
||||
|
||||
PHP Code:
|
#3
|
|||
|
|||
Thanks Dismounted - I think that's the exact code I already added into the global start plug in. But I don't know what to do next! Putting $includedphp in the header template gives me an error in the forums: www.3pixelchicks.com/henhouse . I don't know if I'm putting it in the right place in the header (or if you can put it anywhere), or if it maybe belongs somewhere else, of if there is something else in the admin cp I need to do. Thanks for any help!
|
#4
|
||||
|
||||
Look closely .
|
#5
|
|||
|
|||
Dang - that little slash! I copied and pasted your code and now it works!!!! YAY!!! Thank you sooo much. Now off to see if the the photopost gallery is integrated too... You rock!
--------------- Added [DATE]1210424934[/DATE] at [TIME]1210424934[/TIME] --------------- Ok - I knew it was too good to be true! It worked once, and now when I refresh, I ONLY see the header - no vbulletin content!! Any clue what I've done wrong now??? |
#6
|
||||
|
||||
Try using this:
PHP Code:
|
#7
|
|||
|
|||
That works the same way - still nothing after the header. I think there must be something wrong with my header.php file...what I can't figure out is how I got it to work right once, and now - nothing!
|
#8
|
||||
|
||||
Can you post that file?
|
#9
|
|||
|
|||
Here you go:
PHP Code:
PHP Code:
PHP Code:
|
#10
|
||||
|
||||
Where are you putting the variable?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|