MyBB Community Forums

Full Version: Make thredlist in different color
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How to make thredlist in different color.

[Image: mods]

But I want it only in threadlist not in index page.

Thanks...

Any idea ?
Help please....

I make some changes on trow but index page changes too.
Waiting for your replies.

Still waiting your replies.
is it so hard to change topic colors ?
edit the forumdisplay_thread template and set your inline styles there or add a class to the output and then add that to the appropriate CSS file via the theme editor
how will ı edit inline styles in forumdisplay_thread

forumdisplay_thread
<tr>
<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%"><img src="{$theme['imgdir']}/{$folder}.gif" alt="{$folder_label}" title="{$folder_label}" /></td>
<td align="center" class="{$bgcolor}{$thread_type_class}" width="2%">{$icon}</td>
<td class="{$bgcolor}{$thread_type_class}">
{$attachment_count}
<div>
<span>{$prefix} {$gotounread}{$thread['threadprefix']}{$stpre}{$pre}<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>{$sticky_img}{$closed_img}{$thread['multipage']}</span>
<div class="author smalltext">{$thread['profilelink']}</div>
</div>
</td>
<td align="center" class="{$bgcolor}{$thread_type_class}"><a href="javascript:MyBB.whoPosted({$thread['tid']});">{$thread['replies']}</a>{$unapproved_posts}</td>
<td align="center" class="{$bgcolor}{$thread_type_class}">{$thread['views']}</td>
{$rating}
<td class="{$bgcolor}{$thread_type_class}" style="white-space: nowrap; text-align: right;">
<span class="lastpost smalltext">{$lastpostdate} {$lastposttime}<br />
<a href="{$thread['lastpostlink']}">{$lang->lastpost}</a>: {$lastposterlink}</span>
</td>
{$modbit}
</tr>
find

<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}">{$thread['subject']}</a>

and make it

<a href="{$thread['threadlink']}" class="{$inline_edit_class} {$new_class}" id="tid_{$inline_edit_tid}" style="color:red">{$thread['subject']}</a>

and that will make it red text.

otherwise you need to edit the CSS properties for whatever gets put in the second class name attribute in the topic <a> tag where the template says

{$inline_edit_class} {$new_class}

but you need to view your page source to see what class names are actually being output. Then find those in the ACP Themes page (look in the various CSS files) and edit the second name
Thanks pavemen but ı want to change the backgorund color. Like this

[attachment=28309]
next time please be sure you are more clear and have linked images that actually work.

do you want alternating colors or to simply apply the same background to all threads listed? what about sticky or unapproved threads? alter those as well?
Sorry paveman.

I changed the sticky treads color.
I want to change the regular threads background.

[attachment=28310]
replace the {$bgcolor} with a new class name (like 'mythreadrow') then create a new CSS class in global css (or the css file you have associated with forumdisplay) and style accordingly
Pages: 1 2