Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 01:29 pm EST

Geeklog Forums

Restrict all content to loged in users?


Status: offline

mgiampapa

Forum User
Newbie
Registered: 06/20/03
Posts: 2
I would think that this isn't too hard to do, but I havn't found it mentioned anywhere in the archives. (doesn't mean it's not there, I just can't find it) Anyway, I want to turn on the new users queue and force users to log in with a seperate page before getting anywhere in the site. If they have a valid session cookie already, it should just take them to the regular index page. At the moment, I am just forcing users to enter a login/password via a .htaccess file, but this would be a much better solution. As I'm not all that framiliar with GL yet, any sugestions on how to go about doing this would be great.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Just set the permissions on all Geeklog objects (stories, topics, blocks, etc.) such that anonymous users can't see them (uncheck the "Anonymous R" checkbox). Leave the "User Functions" block visible for anonymous Users, though, since it's used as the login form when you're not logged in. You can also prevent access to the calender, links section, search, etc. by setting the $_CONF['loginrequired'] flags (in config.php) accordingly. The only problem is what to display to anonymous users. With the above, they will only see the login form and a note saying that they don't have permission to view stories. With Geeklog 1.3.8 and Static Pages 1.3 you would be able to create a static page to be displayed to anonymous users. Not sure if that's possible with Static Pages 1.2 ... bye, Dirk
 Quote

Status: offline

mgiampapa

Forum User
Newbie
Registered: 06/20/03
Posts: 2
Dirk, Thanks, I'll do that. Also, is the aformentioned capability already in CVS? Thanks
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes, it's in CVS. Another idea I just had is to create a topic that only anonymous users can see and then post a "welcome" story to that topic. If you set permissions correctly on both that topic and that story, your users won't see them any more once they log in. bye, Dirk
 Quote

All times are EST. The time is now 01:29 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content