searched FAQ with not much luck but, is there an easy way to hide "members" from non logged in users?? , So a Non member/logged in user can not see members?? TIA
Getting there, THANKS FOR THE AWESOME SUPPORT
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.
Hi,
Restrict pages only to logged in users. Here's a quick guide to do that:
http://blog.arvixe.com/how-to-make-everything-private-in-elgg-1-8/
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
Thanks for the fast reply.. I understand how to make the whole network private but, I really dont want to completly close it down. I am happy with the current toggles in Elgg. and I really want to keep areas open to public viewers. At this point I just dont want a 'NON-LOGGED" to be able to see current members or members without logging in or creating an account....
TIA
Try using the gatekeeper() function to do that. More info here:
http://docs.elgg.org/wiki/Gatekeeper
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
Simply unregister the members page handler and reregister it with a gatekeeper()
OK Sounds easy enuff but, PLEASE keep in mind I am really a noob when it comes to code. this http://docs.elgg.org/wiki/Gatekeeper pretty vague for me..
Sorry for being a pain but, thanks for the help
Ok,start with your first elgg plugin development
Code to add in start.php
OK, did exactly what you said above,, this is what I get in my plugin list>>>
my_new_members
my_new_members is not a valid Elgg plugin. Check the Elgg documentation for troubleshooting tips.
Location: /home1/infoweas/public_html/marketplace/mod/my_new_members/
Error parsing manifest with API version 1.7 in plugin my_new_members.
You've copied from a plugin written for 1.7.x and are using it on an elgg 1.8.x environment. The manifest files are a little different.
A suitable manifest file should look something like the following:
So can I just change my current manifest or do I need to delete the other mess off my server and start from scratch.. IF I can just change the manifest, do I need to run upgrade.php again?? THANK YOU
well that didnt work opps
elgg_register_event_handler('init', 'system', 'my_new_members_init'); function my_new_members_init() { elgg_unregister_page_handler('members'); elgg_register_page_handler('members', 'my_new_members_page_handler'); } function members_page_handler($page) { gatekeeper(); $base = elgg_get_plugins_path() . 'members/pages/members'; if (!isset($page[0])) { $page[0] = 'newest'; } $vars = array(); $vars['page'] = $page[0]; if ($page[0] == 'search') { $vars['search_type'] = $page[1]; require_once "$base/search.php"; } else { require_once "$base/index.php"; } return true; }
Fatal Error.
Redirect could not be issued due to headers already being sent. Halting execution for security. Search http://docs.elgg.org/ for more information.
- Previous
- 1
- 2
- Next
You must log in to post replies.