Log in

View Full Version : Query table before showing the page


mike095
08-05-2005, 12:01 AM
We'd like to create a table called t_ads with 2 columns
1) Forum_ID
2) htmlAdCode

Before any thread shows, we' like it to lookup the Ad code for that forum and show it in the "postbit" template (after the first post).

How do I select a value from a table and show it in the postbit template for that forum?

Thanks in advance

Andreas
08-05-2005, 12:06 AM
It would be better to keep this in the forum table so you don't need additional queries as it will be automatically available as $foruminfo['htmlAdCode'].

You can even create Plugins to integrate a Textare into Forum Manager for entering/editing the Code.