Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Hide Footer (Stats) for Visitors not Logged-in?
Avatar
Mike Adams
Nashville, TN
Member
sp_UserOfflineSmall Offline
Jun 3, 2016 - 6:07 pm

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 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 3, 2016 - 6:39 pm

Lets start in our FAQ:  https://simple-press.com/docum.....tatistics/

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...

Avatar
Mike Adams
Nashville, TN
Member
sp_UserOfflineSmall Offline
Jun 3, 2016 - 8:04 pm

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jun 3, 2016 - 11:19 pm

thanks for the update..

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625