You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 370 guest(s) and 102 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - phpnukebb usergroups [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Wed Apr 09, 2003 12:33 pm Reply with quoteBack to top

Hello,

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
Find all posts by foxyfemfemView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Wed Apr 09, 2003 1:07 pm Reply with quoteBack to top

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
Find all posts by chatservView user's profileSend private messageVisit poster's website
foxyfemfem
Support Staff
Support Staff


Joined: Jan 23, 2003
Posts: 668

Location: USA

PostPosted: Wed Apr 09, 2003 1:20 pm Reply with quoteBack to top

Ops, I'm sorry. The code is inserted in the groupcp.php file
Code:
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_GROUPCP, $nukeuser);
init_userprefs($userdata);
//
// End session management
//

// Begin 'Restrict Guest Access' MOD
if ( !$userdata['session_logged_in'] )
   {
      Header("Location: modules.php?name=Your_Account");
      exit;
   }
// End 'Restrict Guest Access' MOD
It work perfect. Thanks
Find all posts by foxyfemfemView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by TOGETHER TEAM srl ITALY http://www.togetherteam.it - DONDELEO E-COMMERCE http://www.DonDeLeo.com - TUTTISU E-COMMERCE http://www.tuttisu.it
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.115 Seconds - 442 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::