Quote:
Originally Posted by tamarian
In that case, yes, that is correct. A separate table, and no need for a "join". Just create a new script to return the HTML code for each forum id. This script can be called from the hooks in forumdisplay and showthread, something like, $ThisForumHTMLCode = GetMeMyHTMLCode($forumid); and put $ThisForumHTMLCode in the forum display and showthread templates.
|
I'm not using 3.5 yet, but I will have to keep that in mind when I do upgrade.
Right now, I'm on version 3.0.3
Quote:
Originally Posted by sully02
I'm not using 3.5 yet, but I will have to keep that in mind when I do upgrade.
Right now, I'm on version 3.0.3
|
I think I've got it here...
I've created a table with two fields, one for the forumid, and one for the ad code.
I'll need to add a query to forumdisplay.php (Not sure exactly where in the file) for the following:
PHP Code:
$advertisement = $DB_site->query("
SELECT forumad, forumid
FROM advertisements AS ads
WHERE ads.forumid == $foruminfo[forumid]
");
From there, I should be able to just put $advertisement into the FORUMDISPLAY template, and it'll work, I hope.