How to allow blog, files, pages and other modules only for groups?
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.
- Juho Jaakkola@juho.jaakkola
Juho Jaakkola - 1 like
- nikos@nlyberakis
nikos - 1 like
- Angelo Rocha@angelorocha
Angelo Rocha - 1 like
- Angelo Rocha@angelorocha
Angelo Rocha - 1 like
- nikos@nlyberakis
nikos - 1 like
- Angelo Rocha@angelorocha
Angelo Rocha - 1 like
- Rohit Gupta@Rohit_1990_3676
Rohit Gupta - 1 like
- Angelo Rocha@angelorocha
Angelo Rocha - 1 like
- Angelo Rocha@angelorocha
Angelo Rocha - 1 like
You must log in to post replies.That may requite quite a long answer. How familiar are you with Elgg plugin development? Which Elgg version are you developing for?
I had to do the same in an Elgg site. I solved this by using as base the Roles plugin (https://github.com/arckinteractive/Roles).
So in my_plugin_roles_extension I used the following hook:
......
Of course I customized the main menu so the usual main options were not visible any more.
1. Little Experience.
2. Elgg 2.0.2
Nikos, thank you for your help,
this function can be in the file "start.php" my theme?
@Angelo Rocha: yes, it could be there. But you should read and understand how Roles plugin works in order to apply the right rules in the right way. This was just an example.
Hi Nikos, unfortunately for me it is not working, see how I did:
In my theme, in the file "start.php":
But nothing happens, the intention is to make the blog modules, pages, files, etc. Available only for groups, there is another way? Sorry for my bad english.
elgg_register_plugin_hook_handler should be inside the init() function and change_roles_config should be outside the init() function.
So, your start.php will be like this:
Rohit. thanks for help, see my start.php in pastebin: http://pastebin.com/qCzRs892
Nothing happens.
Default users still have access to the modules on the dashboard.
Ooops...
Roles Mod on top.
Work Fine.