SleePyCode Forums

Special Site & Other Boards => PasteBin => Topic started by: Guest on Jul 15, 2007, 08:19 AM

Title: Paste-1184487567:v:use_geshi-1:v:type-php
Post by: Guest on Jul 15, 2007, 08:19 AM
I have written a mod to divide a forum into subforums
basically, a subforum is a collection of categories
when a member clicks on a subforum link, only the categories assigned to that subforum appear in the board index

now I want to set up, say, an ad box in the templates
or a banner
but I want to code it so that SMF will display a different banner for each subforum
meaning, each subforum will have its own banner
in other words, what is a good/best way to make SMF display an item (from a set of items) depending on a variable value (from a set of values)?
store the items and variable values in two database tables and linking them together?
do you know of a mod or SMF feature that does something like this?
tbat's it :)
what do you think?
Title: Paste-1184489905:v:use_geshi-0:v:type-php
Post by: Guest on Jul 15, 2007, 08:58 AM
123