Support Forum

Hide Footer (Stats) for Visitors not Logged-in?

MA Mike Adams
Mike Adams
Member

I’m probably missing it somewhere, but is there a way to hide the footer (that includes who’s online, forum stats, etc.) for people who are not logged-in? I only want to show this to people that are logged-in to SP.

I looked in the permissions area, but didn’t see the option to hide this information for those with no access.

I love the forum – about to launch it on my site!

Thanks,
Mike 

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

Lets start in our FAQ:  https://simple-press.com/documentation/codex/faq/how-to/faq-how-to-remove-forum-statistics/

if you want to hide for only visitors, you might put the stats in an ‘if’ statement:

if ($spThisUser->member) {
   # stats code here
}

come on back if you have any further questions…

MA Mike Adams
Mike Adams
Member

Thank you! The ‘if’ statement is what I needed, and it worked perfectly.