The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I have created a page called links.php (here is the code): <?php // GO TO FORUM DIR chdir('/home/talco/public_html/rv-forum/'); // STANDARD VBULLETIN STUFF define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'links'); require_once('./global.php'); // GENERIC_SHELL VARS $pagetitle = "Resources"; $HTML = ""; // PIECED TOGETHER IN SCRIPT //eval('$HTML = "' . fetch_template('header') . '";'); $navbits = array(); $navbits[$parent] = 'Links'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('GENERIC_SHELL') . '");'); ?> It looks good, however I don't know how to add my html links in between the header and the footer. I now have a page with only the header and footer. Do I need to call a custom template? If so how do I create one and then call it. Thanks for the help David |
#2
|
|||
|
|||
![]()
Once you find the meaning of life, I mean the answer to life... errmm the answer to this question I'd really like to know as well, I want to do a similar thing.
Cheers man |
#3
|
|||
|
|||
![]()
I am getting Close. I have the following code:
<?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') . '");'); ?> However when I guest views this page i.e. not logged in the following error is shown: Unable to add cookies, header already sent. File: /home/mathhelp/public_html/math-help/links.php Line: 2 When I log it then the error is gone and it works great. Any ideas? |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|