News:

Please note these forums are mostly a testing ground for my SMF work and I don't really use them otherwise.

Main Menu

Paste-1184487567:v:use_geshi-1:v:type-php

Started by Guest, Jul 15, 2007, 08:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Guest

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?