Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: takds on May 19, 2019, 08:09:26 PM

Title: Separate sticky and locked topics from normal topics
Post by: takds on May 19, 2019, 08:09:26 PM
So I'm rolling around in MessageIndex.template.php and was wondering if there was a way to put these in their own containers, or to drop a line between them to break them off from normal topics?

I imagined I could just edit
if ($topic['quick_mod']['sticky'])
echo '<a href="', $scripturl, '?action=quickmod;board=', $context['current_board'], '.', $context['start'], ';actions%5B', $topic['id'], '%5D=sticky;', $context['session_var'], '=', $context['session_id'], '" class="you_sure"><span class="main_icons sticky" title="', $topic['is_sticky'] ? $txt['set_nonsticky'] : $txt['set_sticky'], '"></span></a>';

and be done with it but it's not very happy with me for tinkering.

Am I way off course?