Advertisement:

Author Topic: How do i hide/remove moderators in the main forum listing page?  (Read 379 times)

Offline minimono

  • Semi-Newbie
  • *
  • Posts: 23
Iam smf 2.0.15 and Softer theme [nofollow]
How to i hide/remove moderators in this bar.

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
    • i30 Owners Club
Re: How do i hide/remove moderators in the main forum listing page?
« Reply #1 on: June 05, 2018, 08:23:14 AM »
Easiest way it to edit your BoardIndex.template.php file as follows:

Code: (From) [Select]
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
if (!empty($board['moderators']))
echo '
<p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

Code: (To) [Select]
// Show the "Moderators: ". Each has name, href, link, and id. (but we're gonna use link_moderators.)
// if (!empty($board['moderators']))
// echo '
// <p class="moderators">', count($board['moderators']) == 1 ? $txt['moderator'] : $txt['moderators'], ': ', implode(', ', $board['link_moderators']), '</p>';

Offline minimono

  • Semi-Newbie
  • *
  • Posts: 23
Re: How do i hide/remove moderators in the main forum listing page?
« Reply #2 on: June 09, 2018, 03:38:09 AM »
BoardIndex.template.php on this theme not have it to edit. (Attachment)
Iam edit on theme default and theme core. moderators still showing same last post. :(

Offline Sh@mbles

  • SMF Hero
  • ******
  • Posts: 4,907
  • Gender: Male
    • i30 Owners Club
Re: How do i hide/remove moderators in the main forum listing page?
« Reply #3 on: June 09, 2018, 05:48:44 AM »
The file you attached is not the one producing the screenshot you listed.

Offline minimono

  • Semi-Newbie
  • *
  • Posts: 23
Re: How do i hide/remove moderators in the main forum listing page?
« Reply #4 on: June 10, 2018, 11:47:48 PM »
This theme i edit on index.template.php.
Code: [Select]
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
echo '
', ($link_num == count($context['linktree']) - 1) ? '<li class="last"><div class="lt_wrapper"><div class="lt_last"></div><div class="lt_midle">' : '<li><div class="lt_wrapper"><div class="lt_last"></div><div class="lt_midle">', '';

// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];

// Show the link, including a URL if it should have one.
echo $settings['linktree_link'] && isset($tree['url']) ? '
<a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span></a>' : '<span>' . $tree['name'] . '</span>';

// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];

// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo '';

echo '
</div><div class="lt_first"></div></div></li>';
}

Code: (replace) [Select]
// Show something after the link...?
// if (isset($tree['extra_after']))
// echo $tree['extra_after'];


moderators is hide.
What do you think about it?
« Last Edit: June 11, 2018, 12:48:19 AM by minimono »