I've made a custom page by making a new template called "TEST" then using the following PHP code:
PHP Code:
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE & ~8192);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'test'); // change this depending on this files name
// ################### 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('TEST',);
// pre-cache templates used by specific actions
$actiontemplates = array();
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################
eval('print_output("' . fetch_template('TEST') . '");');
?>
Saved it as "test.php",.. then view it to see whatever I put into the "TEST" template. Right now I have it pulling the most recent threads, posters name, date posted, and the contents of the post itself. Everything is working fine except the BBCode isn't being formatted after being pulled from the DB, can anybody help me figure this out, ??