vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vBindex v2.1 (https://vborg.vbsupport.ru/showthread.php?t=41916)

Mr_P 08-14-2002 04:19 PM

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.

NTLDR 08-14-2002 05:06 PM

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

Mr_P 08-14-2002 07:02 PM

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";

NTLDR 08-14-2002 07:04 PM

This is what the section of global.php should look like for vB 2.2.6:

PHP Code:

// parse PHP include ##################
eval(gettemplate('phpinclude',0,0));

// parse css, header & footer ##################
include('./vbimenu.php');
eval(
"\$menu .= \"".gettemplate('home_menu')."\";");
eval(
"\$headinclude = \"".gettemplate('headinclude')."\";");
eval(
"\$header .= \"".gettemplate('header')."\";");
eval(
"\$footer .= \"".gettemplate('footer')."\";");

// parse other global templates

eval("\$gobutton = \"".gettemplate('gobutton')."\";"); 


Mr_P 08-14-2002 07:06 PM

// 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')."\";");

NTLDR 08-14-2002 07:10 PM

You haven't edited gobal.php correctly, see post 154 above.

Mr_P 08-14-2002 07:13 PM

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')."\";");

NTLDR 08-14-2002 07:17 PM

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.

Mr_P 08-14-2002 07:22 PM

Do u want to hit me m8 ?

NTLDR 08-14-2002 07:26 PM

Quote:

Originally posted by Mr_P
Do u want to hit me m8 ?
If you want to talk like that then don't expect any more support on this hack. All I am trying to do is help.


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
  • Page Generation 0.02103 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete