MyBB Community Forums

Full Version: Changing colour..
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After we add Child forum to a selected forum it will appear with a dot mark with same colour of the Main forum text colour but the question of mine is can we change that child forum or Sub form text colour to other colours like red blue green etc if yes please say the trick
The dot mark is for if it is read or not read.
(2011-05-06, 12:09 AM)Darth Stabro Wrote: [ -> ]The dot mark is for if it is read or not read.
Yes, but he wants to change the color of the text. I am trying to figure this out but I think it can be done with the forumbit_subforums
Ya i want to change the text colour of the Sub forums..
Here's what I use since I have this on my forum:

On the forumbit_depth2_forum template I have:
<tr>
<td class="{$bgcolor}" align="center" valign="top" width="1"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.png" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" class="ajax_mark_read" id="mark_read_{$forum['fid']}" /></td>
<td class="{$bgcolor}" valign="top">
<img src="{$forum['iconlink']}" alt=''/>
<strong><a href="{$forum_url}" style="color:{$forum['forumcolor']}">{$forum['name']}</a></strong>{$forum_viewers_text}<div class="smalltext">{$forum['description']}{$modlist}{$subforums}</div>
</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$forum['threads']}{$unapproved['unapproved_threads']}</td>
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$forum['posts']}{$unapproved['unapproved_posts']}</td>
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
</tr>
I also modified the forums table to have a column called forumcolor. I then had to make a part in the Admin CP to actually change it so I didn't have to do each one through PHPMyAdmin.

I believe you have to modify forumbit_depth3. Right now this is what I use for it:
{$comma}{$statusicon}<a href="{$forum_url}" title="{$forum_viewers_text_plain}" style="color:{$forum['forumcolor']}">{$forum['name']}</a>

You don't need the iconlink part. That was something else I coded so I could have a special image to each forum.
Thanks i try and post the result.,
If you want to be able to change the forum's color in the Admin CP, let me know and I will get you the special file I use.
ya i will do it wait today make it...
(2011-05-06, 12:32 AM)dragonexpert Wrote: [ -> ]If you want to be able to change the forum's color in the Admin CP, let me know and I will get you the special file I use.

tell the function and share the file
http://www.teamdimensional.net/upload/fo...colors.zip . Extract the file there to the /admin/modules/forum directory. When it asks if you want to overwrite management.php, hit yes. You'll need to make sure the column iconlink exists in your forums table or you will get an error on updating a forum.