Require logged in user for all pages except for:
Offers a hook to add more public URL's for developers.
View Khaled Afiouni's plugins
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
intewesting code ;-)
i can recreate the whole plugin from yr code snippet ;;)
but...
why don't you just post yr plugin anyway ?
if you not want to.. understood ;-)
thx
a new twist on "walled garden"
;-)
I had a peek into yr code.. rather very interesting coding and extensibility style ! I hope more people download and check this out -- even though a little bit of coding may be required to extend the functionality, I believe that this will help people cure some headaches they are having with the other, heavier plugins.
Thank you for this nice plugin. works great on elgg 1.7
I added 2 lines to allow jscript and css after line 36 (on the start.php)
$allow[] = $CONFIG->url . '_css/js.php';
$allow[] = $CONFIG->url . '_css/css.css';
I used it with version 1.7 with site access and seems to be working great. Did not want to enable walled garden on site access due to the trouble having to approve everyone. This is just what the doctor ordered. Thanks. You get another recommendation.
@Fred
I have the same setup :)
Hello. It will be much attractive when user get system message: "You must be logged in to view that page." How can I enable something like this?
There's a problem if both this plugin and izap_videos (latest release) are being used in Elgg 1.7.1 together. The conversion jobs of uploaded videos won't finish completely in izap_videos. The problem might be caused due to the notification message that izap_videos sends after the conversion getting blocked by "Log in required". But I'm not sure if the notification message is the reason for the problem or if some other tasks that izap_videos tries to do is blocked by "Log in required" and the missing notification message is just another consequence of that.
Other plugins don't seem to have problems with sending notification messages if "Log in required" is used. I'm not sure if the solution of this issue involves adjustments in "Log in required" or in izap_videos. Has anyone else made similar observations? Any advice how to use both plugins together?
Found a nice (very big) bug! When a user does a password reset on my site, the email sent to the user for resetting the password has a link (/pg/passwordreset...), and when the user follows this email, it gives the "please log in" thing.
I added the line to the "//Allow should have pages" (line 32):
"$allow[] = $CONFIG->url . 'pg/resetpassword';
How can I create a link to a page with login and registration?
work with riverdashboard ?
Wow! It took me awhile to discover the same problem that Grizwald found. The user could not reset his password. Made the change suggested by Grizwald and all is well again. Thanks Grizwald. Looks like this should be put into an update soon. This is a big bug.
@Khaled:- Thanks for this wonderful plugin
Excelent plug in, works in version 1.7.6, thanks
Hi, this plugin is awesome.
I have one little problem with it, and siteaccess though. When I send a conformation email and the person clicks on it... it says they need to link in to confirm..
I can't seem to find the correct "$allow[] = $CONFIG->url . '*********'; to enter.
If anyone could kindly let me know how I can fix it so people can confirm I'd really appreicate it. Thank you.
try this codes
Thanks. I'd also like to add I had success with this line for the uservalidationbyemail.
$allow[] = $CONFIG->url . 'action/confirmlink';
How do you allow access to groups only?
Hi all! How do you allow access to blog only. My site www.zoneprivacy.com
any update for elgg 1.8?
@Mike : Elgg 1.8 comes with these feature inbuilt. Go to the settings page and turn on the walled garden.
@Mike: in case you need a 1.8 compatible version you can use my Elgg 1.8 port of the login required plugin:
http://community.elgg.org/pg/plugins/project/804349/developer/iionly/elgg-181-login-required
Though the walled-garden option built in to Elgg 1.8 might be enough for you as Team Webgalli suggested.