View Steve Clay'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.
white page death after enabling this plugin?
Check your error log with something like this:
tail -n 10000 /var/log/apache2/error.log | fgrep Fatal | fgrep ufcoe_roles
there has been much discussion lately over user roles, thanks for this, I'm sure it'll make some people very happy.
can anyone elaborate the role of this plugin......i m not able to get it......
@Steve, looks very interesting. I am about to digg into the code. Have you considered an option of autogenerating the role based on user entity subtype?
Me likes very much. Interesting concept and great implementation. If I could make a suggestion:
It would be awesome if we could define a metadata name that describes the role in the plugin's settings (e.g. "user_role", "subtype" or "profile_type"). fetchRoles() in UFCOE_RoleProvider_Elgg could then take that metadata ($user->user_role) and return the value (currently, you only support admin and there is no way to extend).
If that's against your concept, I would appreciate you adding a plugin hook handler to that function.
This was made primarily for making roles from other systems available in Elgg, but you can create provider classes to define roles by any criteria.
Auto-adding the Elgg provider was a mistake, but there's no need to extend it: you can just add a different provider object under the "elgg" key and it will be replaced. There should also be a way to specify a context (container_guid) when asking for roles. You could have a "moderator" role in some groups but not in others.
Ok, cool. I will play with it when I get a chance
sounds good
hello
i have installed this plugin on elgg 1.8
but my administration not working i was remove this plugin via ftp but also my administration blank.. please solve this issue
@aalishan Put the plugin code back on the server, then load an admin page and check your server's error log. Look for a fatal error. If I don't know the error I can't help you. In general, don't remove plugin files before you disable a plugin.
Hello,
I have the same problem that somes comments, that I can see the page when I active de plugin. The error log is:
PHP WARNING: 2012-07-06 10:45:07 (CEST): "require_once(__DIR__/lib/UFCOE/RoleProvider.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory" in file /home/elirsec/domains/elirsec.com/private_html/numismatica/mod/ufcoe_roles/start.php (line 6), referer: https://www.elirsec.com/numismatica/admin/plugins
PHP WARNING: 2012-07-06 10:45:18 (CEST): "require_once(__DIR__/lib/UFCOE/RoleProvider.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory" in file /home/elirsec/domains/elirsec.com/private_html/numismatica/mod/ufcoe_roles/start.php (line 6)
PHP WARNING: 2012-07-06 10:45:29 (CEST): "require_once(__DIR__/lib/UFCOE/RoleProvider.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory" in file /home/elirsec/domains/elirsec.com/private_html/numismatica/mod/ufcoe_roles/start.php (line 6)
PHP WARNING: 2012-07-06 10:45:31 (CEST): "require_once(__DIR__/lib/UFCOE/RoleProvider.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory" in file /home/elirsec/domains/elirsec.com/private_html/numismatica/mod/ufcoe_roles/start.php (line 6)
PHP WARNING: 2012-07-06 10:45:43 (CEST): "require_once(__DIR__/lib/UFCOE/RoleProvider.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory" in file /home/elirsec/domains/elirsec.com/private_html/numismatica/mod/ufcoe_roles/start.php (line 6)
File does not exist: /home/elirsec/domains/elirsec.com/private_html/favicon.ico [Fri Jul 06 10:45:44 2012] [error] [client 195.57.146.46] File does not exist: /home/elirsec/domains/elirsec.com/private_html/404.shtml [Fri Jul 06 10:45:44 2012] [error]
File does not exist: /home/elirsec/domains/elirsec.com/private_html/favicon.ico [Fri Jul 06 10:45:44 2012] [error] [client 195.57.146.46] File does not exist: /home/elirsec/domains/elirsec.com/private_html/404.shtml [Fri Jul 06 10:45:57 2012] [error]
PHP WARNING: 2012-07-06 10:45:57 (CEST): "require_once(__DIR__/lib/UFCOE/RoleProvider.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory" in file /home/elirsec/domains/elirsec.com/private_html/numismatica/mod/ufcoe_roles/start.php (line 6)
PHP 5.3 required. I'm sorry I didn't mention that in the description.
I would try to upgrade PHP. Thanks