Posted on: 06/20/03 07:59pm
By: mgiampapa
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.
Restrict all content to loged in users?
Posted on: 06/21/03 03:55am
By: Dirk
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
Restrict all content to loged in users?
Posted on: 06/21/03 07:47am
By: mgiampapa
Dirk,
Thanks, I'll do that.
Also, is the aformentioned capability already in CVS?
Thanks
Restrict all content to loged in users?
Posted on: 06/21/03 08:31am
By: Dirk
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