Quote:
Originally Posted by sully02
1] Generate the HTML for each flash button
2] Add a field to the table of forums in the database for the ads (We'll call it forumad for now).
3] Store the HTML for the flash button in forumad.
4] Add forumad to the list of fields retrieved in forumdisplay.php
5] In the FORUMDISPLAY template, add a line $foruminfo[forumad] to retrieve the ad.
If I'm doing this right, this should call the advertisement assigned to the forum in question. Am I doing anything wrong here?
|
Not wrong, but you can accomplish this without altering your forum table. You can either create a separate table for the ads which you can "join", or better yet, just pass the forum id to your ad server software, this can be done in the template, without any code changes. If you are running phpAdsNew, you can restrict the ads served in each forum to ads made for that specific forum id.