Which file to look at to remove stats from board index

Started by Kai Summers, August 10, 2009, 11:41:28 AM

Previous topic - Next topic

Kai Summers

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

Kays

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] : '');



If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods


harrisonlatour

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] : '');

Arantor

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.
Holder of controversial views, all of which my own.


Kays

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.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Urbanite

#6
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!
Just when you finally get it idiot proof ...along comes a bigger idiot!

Advertisement: