Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Kai Summers on August 10, 2009, 11:41:28 AM

Title: Which file to look at to remove stats from board index
Post by: Kai Summers on August 10, 2009, 11:41:28 AM
How do I remove from the main forum index the right aligned div that displays "Members: x  •  Posts: x  •  Topics: x", where x is the number of. If you copy the link below and put it in the address bar you will see it directly under the forum search field and button.

vextor.tv/forum/index.php

Thank you in advance for your time.


Kai
Title: Re: Which file to look at to remove stats from board index
Post by: Kays on August 10, 2009, 01:15:36 PM
Hi, It's there because you disabled the info box at the bottom.

BoardIndex.template.php in the theme you are using or in the default theme if not there. Right at the top, find and comment out or remove the folowing.

if (!$settings['show_sp1_info'])
echo '
', $txt[19], ': ', $context['common_stats']['total_members'], '  •  ', $txt[95], ': ', $context['common_stats']['total_posts'], '  •  ', $txt[64], ': ', $context['common_stats']['total_topics'], '
', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');


Title: Re: Which file to look at to remove stats from board index
Post by: Kai Summers on August 10, 2009, 01:34:29 PM
Thanks Kays, worked a charm!
Title: Re: Which file to look at to remove stats from board index
Post by: harrisonlatour on August 16, 2009, 06:56:48 PM
Trying to remove stats information


Hello,

I am tring to remove the stats information from the main forum index the right aligned div that displays "Members: x  •  Posts: x  •  Topics: x", where x is the number of. If you copy the link below and put it in the address bar you will see it directly under the forum search field and button.


I am using the following version, set in the default theme.

Version Information:
Forum version: SMF 1.1.6
Current SMF version: SMF 1.1.10


I have removed the following information, but it did not remove the stats.


   if (!$settings['show_sp1_info'])
      echo '
            ', $txt[19], ': ', $context['common_stats']['total_members'], ' &nbsp;•&nbsp; ', $txt[95], ': ', $context['common_stats']['total_posts'], ' &nbsp;•&nbsp; ', $txt[64], ': ', $context['common_stats']['total_topics'], '
            ', ($settings['show_latest_member'] ? '<br />' . $txt[201] . ' <b>' . $context['common_stats']['latest_member']['link'] . '</b>' . $txt[581] : '');
Title: Re: Which file to look at to remove stats from board index
Post by: Arantor on August 16, 2009, 07:05:12 PM
Are you using a custom theme? I note you've said you've edited that, but if you edited the default theme but are using a custom theme you'll have to edit the custom theme.
Title: Re: Which file to look at to remove stats from board index
Post by: Kays on August 16, 2009, 07:16:34 PM
That section is what displays that info at the top if the info box is turned off.

Look further down near the bottom of the page.
Title: Re: Which file to look at to remove stats from board index
Post by: Urbanite on September 25, 2009, 01:49:34 AM
Quote from: Kays on August 10, 2009, 01:15:36 PM
Hi, It's there because you disabled the info box at the bottom.


Crazy that when we turn it off at the bottom its for a reason, only to find that it appears at the top instead, why does off not mean off!

Its very off putting on fledgling forums when prospective members see a mere handful of members, needless to say they would go elsewhere.

// commented out on 4 forums so far!