Stanny Posted May 7, 2012 Share Posted May 7, 2012 Really like the way you marked your solved topics May i asked you a question ?......How have you done that,on our own forum we are using the Topic solved modification by author SiNaN And we would like to apply the same way of highlighting the Solved topics. Would someone be so friendly to tell me how to set this Friendly regards Stanny Quote Link to comment https://forums.phpfreaks.com/topic/262192-showing-the-solved-topics-in-green/ Share on other sites More sharing options...
Philip Posted May 7, 2012 Share Posted May 7, 2012 TBH, I'm not sure what the SiNaN mod does differently than the one we brewed up (in fact SMF got their panties in a wad when we tried to submit ours a long time ago.) However, we pretty much just check against the post information in a loop within the template and add a CSS class if it is solved. Quote Link to comment https://forums.phpfreaks.com/topic/262192-showing-the-solved-topics-in-green/#findComment-1343720 Share on other sites More sharing options...
Stanny Posted May 8, 2012 Author Share Posted May 8, 2012 Thanks i guess/suppose that something should be added in the Messageindex.php Quote Link to comment https://forums.phpfreaks.com/topic/262192-showing-the-solved-topics-in-green/#findComment-1343880 Share on other sites More sharing options...
Stanny Posted May 12, 2012 Author Share Posted May 12, 2012 changed in index.css /* Color for background of *topics* requiring approval */.approvetbg /* Sticky topics get a different background */ .stickybg { background: #625349; } .stickybg2 { background: #625349; } /* Solved topics get a different background */ .solvedbg { background: #66FF33; } .solvedbg2 { background: #66FF33; } changed in MessageIndex.template.php 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'; // Solved topics should get a different color, too. elseif ($topic['is_solved']) $color_class = 'solvedbg'; // Locked topics get special treatment as well. elseif ($topic['is_locked']) $color_class = 'lockedbg'; // Last, but not least: regular topics. else $color_class = 'windowbg'; Unfortunately it does not work Quote Link to comment https://forums.phpfreaks.com/topic/262192-showing-the-solved-topics-in-green/#findComment-1345049 Share on other sites More sharing options...
Zane Posted May 15, 2012 Share Posted May 15, 2012 You need to implement the solved background in the following pages - Themes/default/css/index.css - Themes/default/MessageIndex.template.php - Themes/default/Recent.template.php On an added note, you must give a solved both CSS clasess class = 'windowbg solvedbg"; I'm moving this to Third Party software since this is more of a coding question rather than a comment or suggestion. Quote Link to comment https://forums.phpfreaks.com/topic/262192-showing-the-solved-topics-in-green/#findComment-1345671 Share on other sites More sharing options...
Viennajames Posted May 16, 2012 Share Posted May 16, 2012 thank you too! Quote Link to comment https://forums.phpfreaks.com/topic/262192-showing-the-solved-topics-in-green/#findComment-1346024 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.