MyBB Community Forums

Full Version: theader per category
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I wondered if you're able to give a thead design per category. For example on the MyBB site you have a category name with "Support" and "Development". Are you for instance able to give each section it's own "thead"-style?

I hope ya understand what I meanToungue Thanks in advance.

Tankey
There are many ways I can think of. For example:

1. Use XThreads: http://mybbhacks.zingaburga.com/showthread.php?tid=288 It provides many ways to achieve your goal - template prefixes for specific forums etc. It also provides a lot more possiblities, examples here: http://mybbhacks.zingaburga.com/showthread.php?tid=559

2. Export/copy your theme and import under another name, change .thead in it, then in specific forum's settings choose the modified theme as Forum-Specific Style.

3. Use Templates Conditionals: http://mybbhacks.zingaburga.com/showthread.php?tid=464
Then in headerinclude add something like that:
<style type="text/css">
<if $GLOBALS['fid'] == 4 then>
.thead {color: red; background: blue;}
<elseif $GLOBALS['fid'] == 6 then>
.thead {color: green; background: pink;}
</if>
</style>
after {$stylesheets}. It will change .thead for forums with id 4, 6 and keep default for the rest.