MyBB Community Forums

Full Version: Use different images per .thead?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I know what you mean - I figured it out yesterday by myself. It doesn't works automatically but it works.

In 5 minutues I can write you how. Wink
Great, thank you!
OK...let's go Wink

Open the theme template "forumdisplay_threadlist" to edit.

Search for:
<td class="thead" colspan="{$colspan}">

Replace with:
<td class="thead fid{$fid}" colspan="{$colspan}">


save changes and open theme template "showthread" to edit.

Search for:
<td class="thead">

Replace with:
<td class="thead fid{$fid}">

and save changes.

~~~~~~~~~~~~~~~~~~~~~

Now you have to figure out the forum IDs which are in category. Open in ACP the Forum Management.

In my example:
[attachment=33582] [attachment=33583]

category "My Category"(forum id 2) contains "My Forum" (forum id 2) and "Forum 2" (forum id 3)

So you have to add the forum IDs to the css3.css rules for the main category.

In my case:
.thead.fid1,
.thead.fid2,
.thead.fid3 {
   background: brown;
}
.......

Repeat this step in css3.css file with all forums in your forum categories.


I hope you understand me.
You my friend, have been an AWESOME help! Thank you! I have just gifted you 1,000 Good Karma Points. Big Grin
My pleasure.... Wink

Here is your matching code for css3.css:
.thead.fid9,.thead.fid27,.thead.fid28,.thead.fid29,.thead.fid11,.thead.fid10,.thead.fid8 {
  background: #0066a2 url(images/tcatplane.png) top left repeat-x;
}
.thead.fid12,.thead.fid32,.thead.fid19,.thead.fid21,.thead.fid22,.thead.fid23,.thead.fid20,.thead.fid30,.thead.fid31 {
  background: #0066a2 url(images/tcatheli2.png) top left repeat-x;
}
.thead.fid13,.thead.fid15,.thead.fid24,.thead.fid17,.thead.fid18,.thead.fid16,.thead.fid14,.thead.fid34,.thead.fid35,.thead.fid33 {
  background: #0066a2 url(images/tcatelec.png) top left repeat-x;
}
.thead.fid3,.thead.fid7,.thead.fid6,.thead.fid4,.thead.fid25,.thead.fid5 {
  background: #0066a2 url(images/tcatgen.png) top left repeat-x;
}
SvePu you are a treasure. I hope you get any help you need whenever you require it!
Pages: 1 2