News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Separate sticky and locked topics from normal topics

Started by takds, May 19, 2019, 08:09:26 PM

Previous topic - Next topic

takds

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?

Advertisement: