News:

Wondering if this will always be free?  See why free is better.

Main Menu

How to hide recent status

Started by shubha, July 17, 2011, 03:39:29 AM

Previous topic - Next topic

shubha

Hello ,
How to hide the RECENT STATUS that the members are not able  to see.


Kermit

What do you mean with recent status ? You mean online list ?
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

shubha

I am talking about post

http://www.simplemachines.org/community/index.php?action=status


Joker™

Is it status or stats? as the link you have provided is not taking me anywhere except SMF community home page.
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

shubha

#4
Sorry its stats

http://www.simplemachines.org/community/index.php?action=stats
or

http://www.simplemachines.org/community/index.php?action=recent


Kermit

#5
in BoardIndex.template.php

Code (find) Select

<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />


Code (replace) Select

<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] && $context['user']['is_admin'] ? '<br />


After this that link will be only visible to admins

and this will only hide the link which means they can call it by action=stats and for preventing this,you can do this

Stats.template.php

Code (find) Select

?>


Code (replace with) Select

global $context;
if(!$context['user']['is_admin'])
redirectexit('/index.php');

?>
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

shubha

And what about the

http://www.simplemachines.org/community/index.php?action=recent


Kermit

Try this then

BoardIndex.template.php

Code (find) Select

<a href="', $scripturl, '?action=recent">', $txt['recent_view'], '</a>', $context['show_stats'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '


Code (replace with) Select

', $context['is_admin'] ? '<a href="'. $scripturl. '?action=recent">'. $txt['recent_view']. '</a>' : '' ,'', $context['show_stats'] && $context['is_admin'] ? '<br />
<a href="' . $scripturl . '?action=stats">' . $txt['more_stats'] . '</a>' : '', '



and next time please better tell your requests completely in 1 message,also not one by one
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Advertisement: