Customizing SMF > Graphics and Templates

Remove Info Center. How to do it?

<< < (4/4)

Raffaele1977:

--- Quote from: Talarath on June 11, 2010, 10:17:18 AM ---
--- Quote from: humbleworld on June 01, 2010, 08:02:09 AM ---Hi,

I want the info center be shown to members only, but not to guests. Would that be possible?

--- End quote ---


--- Code: ---if ($context['user']['is_logged'])
--- End code ---

Need that before the echos for the info center.

--- End quote ---

do you mean to add this line for about 50 times? because there are 50 echos...

cyberdyne:
To hide the InfoCenter from guests, for myself, using v.1.1.13, I added the following:

BoardIndex.template.php
Add:

--- Code: --- if ($context['user']['is_logged'])
--- End code ---
After:

--- Code: --- // "Users online" - in order of activity.
--- End code ---
After:

--- Code: --- // Here's where the "Info Center" starts...
--- End code ---
After:

--- Code: --- // This is the "Recent Posts" bar.
--- End code ---
Before:

--- Code: --- echo '
', $context['show_who'] ? '<a href="' . $scripturl . '?action=who">' : '', $context['num_guests'], ' ', $context['num_guests'] == 1 ? $txt['guest'] : $txt['guests'], ', ' . $context['num_users_online'], ' ', $context['num_users_online'] == 1 ? $txt['user'] : $txt['users'];
--- End code ---

treeby:
I hope this will be a standard option for the future. I have tried to copy en paste some of these codes from here and even replaced the complete BoardIndex.php template but the board returned a lot of errors.
and yes the best option is to show this info only to members

Navigation

[0] Message Index

[*] Previous page

Go to full version