Advertisement:

Author Topic: Separate sticky and locked topics from normal topics  (Read 207 times)

Offline takds

  • Newbie
  • *
  • Posts: 3
Separate sticky and locked topics from normal topics
« 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
Code: [Select]
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?