General Community > Site Comments, Issues and Concerns
Little Topic Solved improvement
Yoshi:
--- Quote from: Arantor on May 03, 2012, 08:53:47 PM ---The one here IIRC is a modified version of Sinan's.
--- End quote ---
Right. Might check for a quick edit for that mod tomorrow/today (it's 3:00 AM here), I'm pretty tired now.
French:
Any progress on how to showing the Solved topics in green Yoshi2889 ;)
Just don´t know how to add this line in Message index.pp
Yoshi:
--- Quote from: French on May 11, 2012, 12:21:28 PM ---Any progress on how to showing the Solved topics in green Yoshi2889 ;)
Just don´t know how to add this line in Message index.pp
--- End quote ---
Woops, totally forgot about this.
I'll check on this later today or tomorrow :)
French:
MessageIndex.template.php
Is it possible to add a line this is an example elseif ($topic['is_solved']) $color_class = 'solvedbg'; The same way as Sticky topics
Just don't know how you determined the color green
--- Code: --- foreach ($context['topics'] as $topic)
{
// Is this topic pending approval, or does it have any posts pending approval?
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';
--- End code ---
Yoshi:
Oh, thanks for looking into this French :)
In index.css define this:
--- Code: ---.solvedbg
{
background-color: rgb(205, 233, 199);
}
.solvedbg2
{
background-color: rgb(205, 233, 199);
}
--- End code ---
I guess.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version