The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
i want to creat a customized page. I made this one: PHP Code:
when i enter RULES page, it shows nothing in the navbar. when at DONATE page it shows i'm in RULES page when at LIVE SCORE page it shows i'm in DOANTE page i cant understand the problem. plz help me |
#2
|
||||
|
||||
![]()
You're placing $navbits after processing them. Secondly your titles are pretending to be constants, instead of a string:
Code:
$navbits[''] = Donate; Code:
$navbits[''] = 'Donate'; Code:
<?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'others'); // 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( 'rules', 'donate', 'livescore', ); // pre-cache templates used by specific actions $actiontemplates = array( ); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); // ####################################################################### // ######################## START MAIN SCRIPT ############################ // ####################################################################### // ############################### Process Page ############################### $valid_pages = array( 'rules' => 'Rules', 'donate' => 'Donate', 'livescore' => 'Live Score', ); if ($page = $valid_pages[$_REQUEST['do']]) { $navbits[''] = $page; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template($_REQUEST['do']) . '");'); } // ############################################################################# // ############################################################################# // ############################################################################# ?> Code:
$valid_pages = array( 'rules' => 'Rules', 'donate' => 'Donate', 'livescore' => 'Live Score', ); Code:
$valid_pages = array( 'rules' => 'Rules', 'donate' => 'Donate', 'livescore' => 'Live Score', 'information' => 'Information', ); ![]() |
#3
|
|||
|
|||
![]()
tnx deceptor
![]() i'll try it now --------------- Added [DATE]1230094611[/DATE] at [TIME]1230094611[/TIME] --------------- worked fine |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|