The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Problem adding a links section in vb - Almost there
Hello,
I am trying to add a link section to my forum: www.mathhelpforum.com it seems to only work when the viewer is logged in. When viewing as a guest i get this error: Unable to add cookies, header already sent. File: /home/mathhelp/public_html/math-help/links.php Line: 2 I made a custom template called links: $stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude </head> <body> $header $navbar <h3>Link to www.mathhelpforum.com</h3> <h3>Resources</h3> <P> $footer </body> </html> The code that I use in my links.php page is: <title>RV Forum - RVing Tips for RVers</title><?php // ####################### SET PHP ENVIRONMENT ########################### error_reporting(E_ALL & ~E_NOTICE); // #################### DEFINE IMPORTANT CONSTANTS ####################### define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'Links'); // 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( 'index', ); // pre-cache templates used by specific actions $actiontemplates = array( ); // ######################### REQUIRE BACK-END ############################ require_once('./global.php'); // ################################################## ##################### // ######################## START MAIN SCRIPT ############################ // ################################################## ##################### $navbits = array(); $navbits[$parent] = 'Links'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('links') . '");'); ?> Any help is greaty appreciated. Thanks, Dave |
#2
|
||||
|
||||
Try removing the :
Code:
<title>RV Forum - RVing Tips for RVers</title> PHP Code:
|
#3
|
|||
|
|||
That worked!!
Thank you very much, I would have never realised that. Dave |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|