MyBB Community Forums

Full Version: Different Column Colors ??
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Please can someone explain that, how can i make it different colors ?

[Image: 46798.jpeg]

Thanks...
Go to inc/functions_forumlist.php
find:
$bgcolor = alt_trow();
add under:
$bgcolor2 = ($bgcolor2 == "alttrow1") ? "alttrow2" : "alttrow1";
Then go to Admin CP -> Templates -> Modify / Delete -> *your templateset* -> Forum Bit Templates -> forumbit_depth2_forum
Find:
<td class="{$bgcolor}" align="center" valign="top"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
and change to:
<td class="{$bgcolor2}" align="center" valign="top"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
Then find:
<td class="{$bgcolor}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
and change to:
<td class="{$bgcolor2}" valign="top" align="center" style="white-space: nowrap">{$threads}{$unapproved['unapproved_threads']}</td>
Then find:
<td class="{$bgcolor}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>
And change to:
<td class="{$bgcolor2}" valign="top" align="right" style="white-space: nowrap">{$lastpost}</td>

Then you go to Admin CP -> Themes -> Modify / Delete -> *your themeset*
Go to the end and add into Additional CSS:
.alttrow1 {
	background-color: #f5f5f5;
}
.alttrow2 {
	background-color: #EFEFEF;
}
Change the background-color to another color if you want.
Thats Coool...

Thanks!
Owh strange....

I havent any inc/functions_forumlist.php this file...

ANYBODY HAVE THAT ???
You still on MyBB 1.1.x?
If so go to your index.php file.
find:
					if($bgcolor == "trow2")
					{
						$bgcolor = "trow1";
					}
					else
					{
						$bgcolor = "trow2";
					}
add:
$bgcolor2 = ($bgcolor2 == "alttrow1") ? "alttrow2" : "alttrow1"; 
under.
Ok thanks... Sorry for pm, i saw you offline, so i pm'ed you...
Ok, but i can't find something that you said in forumbit_dept2_forum

My code is this

<tr>
<td class="$bgcolor" align="center" valign="center"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
<td class="$bgcolor" valign="center">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong> $viewscount <br /><div class="smalltext">$forum[description]$subforums</div>
</td>
<td class="$bgcolor" valign="center" align="left" nowrap="nowrap"><b>»</b> $lastpost<br /><font style="font-size: 8pt" color="#FFFFFF"></font></font></td></td>
<td class="$bgcolor" valign="center" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor" valign="center" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="center" align="center" nowrap="nowrap">$moderators</td>
</tr>


I cannot find

<td class="{$bgcolor}" align="center" valign="top"><img src="{$theme['imgdir']}/{$lightbulb['folder']}.gif" alt="{$lightbulb['altonoff']}" title="{$lightbulb['altonoff']}" /></td>
and some codes...

Any Help ?
I only have 1.2
try this:
<tr>
<td class="$bgcolor2" align="center" valign="center"><img src="$theme[imgdir]/$folder.gif" alt="" /></td>
<td class="$bgcolor" valign="center">
<strong><a href="forumdisplay.php?fid=$forum[fid]">$forum[name]</a></strong> $viewscount <br /><div class="smalltext">$forum[description]$subforums</div>
</td>
<td class="$bgcolor2" valign="center" align="left" nowrap="nowrap"><b>»</b> $lastpost<br /><font style="font-size: 8pt" color="#FFFFFF"></font></font></td></td>
<td class="$bgcolor" valign="center" align="center" nowrap="nowrap">$threads</td>
<td class="$bgcolor2" valign="center" align="center" nowrap="nowrap">$posts</td>
<td class="$bgcolor" valign="center" align="center" nowrap="nowrap">$moderators</td>
</tr> 
Thanks, it seems very well.. But should i add this to css settings ??
.alttrow1 {
    background-color: #f5f5f5;
}
.alttrow2 {
    background-color: #EFEFEF;
}
Or how can i change trow color ?
Pages: 1 2