Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: destalk - tammikuu 05, 2005, 04:24:15 AP

Otsikko: Hiding 'Latest member'
Kirjoitti: destalk - tammikuu 05, 2005, 04:24:15 AP
I feel like I should know this and I'm probably being a bit of a muppet (I have tried searching these forums). But, how do I hide the 'Key Stat's panel in the SMF template;

Xxxx Posts in Xxxx Topics by Xxx Members
Latest Member: Members Name

Or, if that's not possible, can I at least hide the number of members?

Thanks
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: Midgard - tammikuu 05, 2005, 05:15:39 AP
You will goto Admin => Current Theme\'s Settings => off this option => 'Show latest member on board index'
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: A.M.A - tammikuu 05, 2005, 05:21:12 AP
-to remove the whole stats box .. find and delete in index.template.php :
// The "key stats" box.
echo '
<div class="headertitles" style="width: 260px;"><img src="', $settings['images_url'], '/blank.gif" height="12" alt="" /></div>
<div class="headerbodies" style="width: 260px; position: relative; background-image: url(', $settings['images_url'], '/box_bg.gif);">
<img src="', $settings['images_url'], '/', $context['user']['language'], '/keystats.gif" style="position: absolute; left: -1px; top: -16px;" alt="" />
<div style="height: 35px; padding: 5px;" class="smalltext">
<b>', $modSettings['totalMessages'], '</b> ', $txt[95], ' ', $txt['smf88'], ' <b>', $modSettings['totalTopics'], '</b> ', $txt[64], ' ', $txt[525], ' <b>', $modSettings['memberCount'], '</b> ', $txt[19], '<br />
', $txt[656], ': <b> <a href="', $scripturl, '?action=profile;u=', $modSettings['latestMember'], '">', $modSettings['latestRealName'], '</a></b>
</div>
</div>';
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: destalk - tammikuu 05, 2005, 07:11:21 AP
Lainaus käyttäjältä: Midgard - tammikuu 05, 2005, 05:15:39 AP
You will goto Admin => Current Theme\'s Settings => off this option => 'Show latest member on board index'

Interestingly this is already unchecked, but the latest member still shows up. Is this a bug???
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: destalk - tammikuu 05, 2005, 07:11:57 AP
Thanks A.M.A, I'll try that.  :)
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: destalk - tammikuu 05, 2005, 07:32:28 AP
Yep, that works. Thanks.

Now I'm just left with an ugly white space.... hmmmm. What can I put in its place?   :-\
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: Kirby - tammikuu 07, 2005, 05:16:06 IP
Why not just adjust the width of the big box? :P
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: destalk - tammikuu 07, 2005, 09:11:23 IP
Yep, that's an option  ::)

Seems like a lot of grey not doing much then...
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: pboehi - tammikuu 14, 2005, 05:41:51 AP
Another piece of advice: First duplicate the default theme, rename it and then change the code from within the admin center. So in case you mess up you still have a working default theme (that's the reason the default theme is not editable).
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: Xenomorph - tammikuu 15, 2005, 04:18:44 AP
Lainaus käyttäjältä: destalk - tammikuu 05, 2005, 07:11:21 AP
Lainaus käyttäjältä: Midgard - tammikuu 05, 2005, 05:15:39 AP
You will goto Admin => Current Theme\'s Settings => off this option => 'Show latest member on board index'

Interestingly this is already unchecked, but the latest member still shows up. Is this a bug???

i unchecked it as well, and it still shows the latest member.

i at least figured out how to make it stop listing non activated members.
Otsikko: Re: Hiding 'Latest member'
Kirjoitti: destalk - maaliskuu 17, 2005, 05:29:43 AP
Strange, still doesn't work on my forums under version 1.0.2. Very odd. I have to edit it out by hand in index.template.php