In my ubbthreads.tmpl file.... above this line:
for($c=0;$c<$catsize;$c++) { //UBBTREMARK
I put this:
code:
$thispath = "/home/measurection/htdocs/forums";
include "{$thispath}/pals/banneradmainindexpal.php";
$thispath is the Path to my threads directory
Then in my pals directory.... I put a file named banneradmainindexpal.php which looked like this:
code:
<?
$palspath = "/home/measurection/htdocs/forums";
include "{$palspath}/pals/languagepal.php";
include "{$palspath}/pals/configpal.php";
include "{$palspath}/pals/tablewrappers.tmpl";
require_once "$palspath/main.inc.php";
echo "{$wrapper[$wrapnum]['table_header']}"; // Table Start
echo "<div align="center"><b>Support Our Site - Visit Our Sponsors this Holiday Season!</b>"; // Table Heading
echo "{$wrapper[$wrapnum]['table_center']}"; // Close Header and Open Content
echo "PUT THE CODE FOR YOUR BANNER HERE";
echo "{$wrapper[$wrapnum]['table_footer']}</div>"; // Close Content and End Table
?>
$palspath is the path to my threads directory.

Hope that helps.
