![]() |
sorry m8 not calling yout hack but when i run vbimenu.php from main root that is when i get the error.
I have done the global in root - and also put #menu in the header so i have folowed it htough with no luck as yet. |
You need $menu in the header not #menu (not sure if that was a typo by you or what you have in your template).
Calling vbimenu.php directly isn't supposed to work, if you added both lines to global.php then it should be included automatically for each page and display the home_menu template wherever $menu is placed, on any page the requires global.php |
yeah is $menu my mistake and will check my global now
// parse css, header & footer ################## eval("\$headinclude = \"".gettemplate('headinclude')."\";"); eval("\$header .= \"".gettemplate('header')."\";"); eval("\$footer .= \"".gettemplate('footer')."\";"); $timediff=''; if ($bbuserinfo['timezoneoffset']!=0) { if (abs($bbuserinfo['timezoneoffset'])==1) { $timediff=" $bbuserinfo[timezoneoffset] hour"; } else { $timediff=" $bbuserinfo[timezoneoffset] hours"; |
This is what the section of global.php should look like for vB 2.2.6:
PHP Code:
|
// End Forumlinks
// parse css, header & footer #########include('./vbimenu.php'); eval("\$menu .= \"".gettemplate('home_menu')."\";");######### eval("\$headinclude = \"".gettemplate('headinclude')."\";"); eval("\$header .= \"".gettemplate('header')."\";"); eval("\$footer .= \"".gettemplate('footer')."\";"); include('./vbimenu.php'); eval("\$menu .= \"".gettemplate('home_menu')."\";"); |
You haven't edited gobal.php correctly, see post 154 above.
|
yeah have m8 its jsut that i have added a hack inbetwwen so misses this bit ov
// parse PHP include ################## eval(gettemplate('phpinclude',0,0)); and thsi bit is further down below // parse other global templates eval("\$gobutton = \"".gettemplate('gobutton')."\";"); |
If you have the added code directly after the parse css comment as shown (https://vborg.vbsupport.ru/showthrea...993#post284993) then it will work, you can't add it after this point like you have in your post above.
|
Do u want to hit me m8 ?
|
Quote:
|
All times are GMT. The time now is 09:17 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|