The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Trying out that mod How to create your own vbulletin powerd....
first i coudnt get global to connect until i entered Full http path. then it worked. now im getting error on navbits.. Code:
$navbits = array(); $navbits[$parent] = 'test'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('test') . '");'); for the test purpose.. then i thought proberly some directory issue. but i got test.php in both forums/test.php and in folder under forum same error every time.. Fatal error: Call to undefined function construct_navbits() in URL on line 42 and line 42 is the $navbits = construct_navbits($navbits); Suggestions ? |
#2
|
||||
|
||||
![]()
Can we see your full php code?
|
#3
|
||||
|
||||
![]()
Ofcourse
![]() template is named test in all skins and contain excaktly the same info as mod. Code:
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'test'); // change this depending on your filename // ################### PRE-CACHE TEMPLATES AND DATA ###################### // get special phrase groups $phrasegroups = array( ); // get special data templates from the datastore $specialtemplates = array( ); // pre-cache templates used by all actions $globaltemplates = array( 'test', ); // pre-cache templates used by specific actions $actiontemplates = array( ); // ######################### REQUIRE BACK-END ############################ require_once(' global.php url '); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### $navbits = array(); $navbits[$parent] = 'test'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('test') . '");'); ?> Line 8 - - define('THIS_SCRIPT', 'test'); Line 23 - 'test' Line 32 - Global url Line 40 - $navbits[$parent] = 'test'; Line 44 - eval('print_output("' . fetch_template('test') . '");'); If anything then just a blank page right,, not an error. |
#4
|
|||
|
|||
![]()
Your line
Code:
require_once(' global.php url '); |
#5
|
||||
|
||||
![]() Quote:
im not really sure if im gonna respond to that. i chose not to. Edit : changed my mind, i am.. Ofcourse, no sense in showing internal file links ewen if it is extremely and logical to find out, no reason to tempt fate. and if you read post #1 i said that was working fine. the problem is the navbits. |
#6
|
|||
|
|||
![]()
Was unaware if it was intentional or not. My apologies if it wasn't ;p
|
#7
|
||||
|
||||
![]() Quote:
![]() |
#8
|
||||
|
||||
![]()
The include of global.php should be just "./global.php". You need to change the current working directory first, though. Use chdir() to do this.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|