2013-01-10, 09:40 AM
Pages: 1 2
2013-01-11, 11:29 PM
Help please....
I make some changes on trow but index page changes too.
Waiting for your replies.
Still waiting your replies.
I make some changes on trow but index page changes too.
Waiting for your replies.
Still waiting your replies.
2013-01-13, 09:44 PM
is it so hard to change topic colors ?
2013-01-14, 12:11 AM
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
2013-01-14, 06:04 PM
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>
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>
2013-01-14, 06:54 PM
find
and make it
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
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
<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
2013-01-14, 07:46 PM
2013-01-14, 07:52 PM
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?
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?
2013-01-14, 08:02 PM
Sorry paveman.
I changed the sticky treads color.
I want to change the regular threads background.
[attachment=28310]
I changed the sticky treads color.
I want to change the regular threads background.
[attachment=28310]
2013-01-14, 09:27 PM
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