I don't want the usergroups to be accessible to visitors, I want it to be accessible only to registered members due to the fact I have my members list for registered users only. It kind of defeat the purpose if visitors can still see the member's names via way of the usergroups.
I have a code that I use on the stand alone version that redirect visitors to the login page when they click the Usergroups link. I want to use this same code but have them redirected to the Your Account page when they click the Usergroups link. If I could just edit the code to have the Your Account redirection added that would be lovely. Any insight would be appreciated. Here's the code:
Code:
/ Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.".$phpEx."?redirect=groupcp.".$phpEx, true));
exit;
}
// End 'Restrict Guest Access' MOD
chatserv General
Joined: Jan 12, 2003
Posts: 3128
Location: Puerto Rico
Posted:
Wed Apr 09, 2003 1:07 pm
Since i don't know in what file that code is inserted i can only guess as to the code so try:
Code:
/ Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
{
Header("Location: modules.php?name=Your_Account");
exit;
}
// End 'Restrict Guest Access' MOD
_________________ Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
foxyfemfem Support Staff
Joined: Jan 23, 2003
Posts: 668
Location: USA
Posted:
Wed Apr 09, 2003 1:20 pm
Ops, I'm sorry. The code is inserted in the groupcp.php file
// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
{
Header("Location: modules.php?name=Your_Account");
exit;
}
// End 'Restrict Guest Access' MOD
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum