Hide profiles to members only
-----
| Author | Message | |
|---|---|---|
|
assiejack |
||
| Tue Apr 17, 2007 12:15 pm Post subject: Hide profiles to members only | ||
|
I,ve had a search around and can not find what i,m looking for.
I,m running a football site for a local team, now on the forum we have all ages on there running from the under 11,s upwards. I was wondering if there is a way of hiding all members profile until you are logged in, at the moment if you click there name in newest member or whosonline or last post anyone can see their profile. Now kids being kids love to share msn etc and its a nightmare tying to police this, so the easy option would be a <begin switch user- logged in but where would i need to place that to solve my problem . thanks in advance |
||
|
Thoul |
||
| Tue Apr 17, 2007 3:59 pm Post subject: Re: Hide profiles to members only | ||
|
In includes/usercp_viewprofile.php, find:
Code: if ( !defined('IN_PHPBB') )
{ die("Hacking attempt"); exit; } After it, add: Code: if( !$userdata['session_logged_in'] )
{ redirect(append_sid("login.$phpEx?redirect=profile.$phpEx&mode=viewprofile&" . POST_USERS_URL . "=" . $HTTP_GET_VARS[POST_USERS_URL], true)); } That will show a login box when a logged out person tries to view a profile. |
||
|
assiejack |
||
| Tue Apr 17, 2007 4:20 pm Post subject: | ||
|
Once again i thank you for your speedy reply and for solving yet another problem.
|
||
Page 1 of 1