If you are not a member please take a minute and consider registering on the site for all member benefits.
Please click here to register an account
Something will be put here soon.
As your membergroup gets higher, you get more permissions here on SMF Helper. Be sure to check out your profile for more options.
0 Members and 2 Guests are viewing this topic.
if ($context['can_approve_posts'] && $topic['unapproved_posts']) $color_class = !$topic['approved'] ? 'approvetbg' : 'approvebg'; // We start with locked and sticky topics. elseif ($topic['is_sticky'] && $topic['is_locked']) $color_class = 'stickybg locked_sticky'; // Sticky topics should get a different color, too. elseif ($topic['is_sticky']) $color_class = 'stickybg'; // Locked topics get special treatment as well. elseif ($topic['is_locked']) $color_class = 'lockedbg'; // Last, but not least: regular topics. else $color_class = 'windowbg'; // Some columns require a different shade of the color class. $alternate_class = $color_class . '2'
/* Alternating backgrounds for posts, and several other sections of the forum. */.windowbg, #preview_body{ color: #000000; background-color: #e7eaef;}.windowbg2{ color: #000000; background-color: #f0f4f7;}
<?xml version="1.0"?><!DOCTYPE modification SYSTEM "http://www.simplemachines.org/xml/modification"><modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/"> <id>butchas:Diff_Last_Post</id> <version>1.0</version><file name="$themedir/MessageIndex.template.php"><operation> <search position="replace"><![CDATA[// Some columns require a different shade of the color class. $alternate_class = $color_class . '2';]]></search> <add><![CDATA[// Some columns require a different shade of the color class. $alternate_class = $color_class . '2'; $alternate_class_last = $color_class . '4';]></add></operation><operation> <search position="replace"><![CDATA[<td class="lastpost ', $alternate_class, '">]]></search> <add><![CDATA[<td class="lastpost ', $alternate_class_last, '">]></add></operation></file><file name="$themedir/css/index.css"><operation> <search position="replace"><![CDATA[.windowbg3{ color: #000000; background-color: #cacdd3;}]]></search> <add><![CDATA[.windowbg3{ color: #000000; background-color: #cacdd3;}.windowbg4{ color: #000000; background-color: #7b8184;}.lockedbg4{ background-color: #90999b; font-style: italic;}.stickybg4{ background-color: #a19f99;}.topic_table td.locked_sticky4{ background-image: url(../images/icons/quick_sticky_lock.gif); background-color: #a19f99; background-repeat: no-repeat; background-position: 98% 4px;}.approvebg4{ color: #000000; background-color: #fff2f2;}.approvetbg4{ color: #000000; background-color: #f3bd9f;}]></add></operation></file></modification>
So do I add that to index.css or messageindex.