The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
add vb navbar on non vb page
|
#2
|
||||
|
||||
add this code in hotornot/index2.php file
find: PHP Code:
PHP Code:
Example... PHP Code:
|
#3
|
|||
|
|||
didnt seem to work :S
i dont no weather to edit the template index file or the php index2.php file because i put it on the template one but didnt work |
#4
|
|||
|
|||
anyone help me more
|
#5
|
||||
|
||||
Quote:
but it should be: add this to your hotornot file, preferably at the top of the file after <?PHP PHP Code:
then where you echo/print each page, place this before it: PHP Code:
|
#6
|
|||
|
|||
i must be realy dumb seriously
ok i kinda get it but do i make a new file to add PHP Code:
and where do i add PHP Code:
|
#7
|
||||
|
||||
you add the chdir etc. to the top of index2.php after the <? or <?PHP.
the navbar thing you add where ever you print/echo a page, i.e. where you are finished compiling and now print/echo the index page of your hotornot. |
#8
|
|||
|
|||
i dont get the echo bit sorry mate
ok so i put the code at top of index2.php and then the 2nd code where |
#9
|
||||
|
||||
Thanks to all-the-vb and AN-net for the info above as I'm trying to integrate another script with vB myself. I realize most have moved on to vB 3.5+ so I'm hoping that someone may still see this post perhaps point me in the right direction regardless.
I have the navbar working fine on the new script however, the navbar portion (only) seems to be aligned to the right... tight against the browser window creating a side scroll bar and I can't figure out why. I have completely removed the script and uploaded a test file with just the header and footer in it and the problem is the same. I have also noticed alignment is fine in Firefox... it's just IE that is not rendering the navbar centered. The test file can be viewed at http://www.asocommunity.com/forum/magic8ball/test.php? ... and the code I've used to create it is; PHP Code:
EDIT: For what it's worth... I think I have the problem tracked down to a missing or misplaced <head> tag and should be able to sort it out from there. |
#10
|
|||
|
|||
Would these instructions apply to 3.6.8? Or has the code base changed? I'm trying to add my vB header, headinclude, navbar, and footer to some pages in another script outside the forums directory.
I tried the suggestions in the posts above with no luck. I keep getting this error: "Unable to add cookies, header already sent." |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|