PDA

View Full Version : How to make VB Code Enabled on non-vb pages


hurrican
03-26-2006, 10:43 PM
Hi all,
I got everything working perfectly in terms of getting the rules displayed on a seperate PHP page (it's actually a thread, but i'm making it where it doesn't look like a thread, rather, text only). The problem i'm running into is that the vB code that was used in the actual thread is not converting on the new php page I created.. I would like to make it so that what the original thread looks like, the seperate php page will look like.. Here is what I have thus far.

The actual thread:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Mission Statement:

---- has been established to provide a forum for the discussion of ---- topics as deemed acceptable by the site administrators and moderators. Our prime objective ..................... site you’ve ever visited.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
The UBB Color on THAT thread works great, because it's actually a real thread using showthread.php

my rules.php page shows all of that just jumbled up with no markup, all white text, and you can actually see the [ b ] [ color = skyblue ] stuff.


My rules.php consists of:

<?php
error_reporting(7);
require("./global.php");

$rules=$DB_site->query_first("SELECT pagetext,threadid FROM post WHERE threadid='21025'");
eval("dooutput(\"".gettemplate('rules')."\");");
?>


In my rules template, I have copied the header table, and inserted Rules here ==> $rules[0] <=== Rules Here so that my rules are displayed.


Long story short, I need to find out how to enable vbcode in that template/file so that the markup language is there :)


Help would be greatly appreciated!