PDA

View Full Version : Adding more pages


zyad
11-09-2006, 02:04 AM
Hello,

I remember there was a release for 3.5.4, on how to create an index.php page using all the information, except for the forum display. I was wondering if anyone knew what code to use in 3.6.3, I just need an index.php page with the login form and small functions on how to display limited information.

thanks in advance

legionofangels
10-05-2007, 07:07 AM
THIS!!!

This is what I need!

Where the heck is that thing so we can add one as well.

Sorry for el bumpo of abandoned/necro'd thread.

Need to know where it's at, search is not helping me.

DivisionByZero
10-05-2007, 10:54 AM
Here's a very VERY vErY basic vBulletin dependent page for 3.6.x. create a template called whatever_template and start building from there. This example is for things where you want a custom header or none at all:


<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'whatever');
// ################### 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(
'whatever_template',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = array();
$navbits[$parent] = 'Something Catchy';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('whatever_template') . '");');
?>

That's the VERY basic way to do it without including any elements,

you could include the header, footer, and navbar by using the following example:


<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'whatever');
// ################### 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(
'whatever_template',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
eval('$HTML = "' . fetch_template('whatever_template') . '";');
$navbits = array();
$navbits[$parent] = 'Something Catchy';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
?>