News:

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

Main Menu

Can I remove info center

Started by totaltutankoll, October 04, 2009, 09:06:49 PM

Previous topic - Next topic

totaltutankoll

I've been "googling" around the community  here and at the back office of my forum but can not find what I'm looking for. If possible I'd like to remove/swithc off my info center from my 2.0 RC1-1. How do I proceed, please help  :)
Started out with a SMF-forum a couple of years ago went on to Dynamic web (read dynamic crap) and am now back in the land of Simple Machines.

Non, je ne regrette rien!

busterone

This is found in your /themes/default/ BoardIndex.template.php file
If you have a custom theme with a custom board index, it may be slightly different.
The code to remove from the default BoardIndex.template.php is
// Show statistical style information...
if ($settings['show_stats_index'])
{
echo '
<div class="infocenter_section">
<h4 class="headerpadding titlebg">', $txt['forum_stats'], '</h4>
<div class="windowbg">
<p class="section">
<a href="', $scripturl, '?action=stats"><img src="', $settings['images_url'], '/icons/info.gif" alt="', $txt['forum_stats'], '" /></a>
</p>
<div class="windowbg2 sectionbody middletext">
', $context['common_stats']['total_posts'], ' ', $txt['posts_made'], ' ', $txt['in'], ' ', $context['common_stats']['total_topics'], ' ', $txt['topics'], ' ', $txt['by'], ' ', $context['common_stats']['total_members'], ' ', $txt['members'], '. ', !empty($settings['show_latest_member']) ? $txt['latest_member'] . ': <b> ' . $context['common_stats']['latest_member']['link'] . '</b>' : '', '<br />
', (!empty($context['latest_post']) ? $txt['latest_post'] . ': <b>&quot;' . $context['latest_post']['link'] . '&quot;</b>  ( ' . $context['latest_post']['time'] . ' )<br />' : ''), '
<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '
</div>
</div>
</div>';
}


Aleksi "Lex" Kilpinen

Hi totaltutankoll, did you get this done? Do you still need assistance with this? :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: