Log in

View Full Version : Weird problem with vbulletin powerd page!


nnkkayak
08-27-2008, 11:34 PM
Hi all,

I have had 2 vbulletin powered pages running on my vbulletin forum sucessfully for some time.

They are http://northernneckforums.com/test.php

and http://northernneckforums.com/links.php

tonight I have created a new page, and I have checked over the code way too many times, but for some ungodly reason even though all the code is correct in my ad.php file I uploaded and I have a new template called advertising which ad.php is supposed to call, when you go to http://northernneckforums.com/ad.php

it brings up my links.php file - even though the web address still reads ad.php!!

here is the code for my ad.php file

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'ad.php'); // 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(
'Advertising',
);

// pre-cache templates used by specific actions
$actiontemplates = array(

);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################

$navbits = array();
$navbits[$parent] = 'Advertising';

$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('Links') . '");');

?>


I have no idea :confused:

nexialys
08-28-2008, 12:20 AM
did you at least read the last line of code ?! (it's written in english though... easy to understand!)

nnkkayak
08-28-2008, 12:42 AM
Dangit. Copy and pasting got me. Thanks