I found a bug in default_widgets and I do two patch for solution this bug.
The bug explanation:
When you create a new user in admin interface ,the plugin break the program flow and the entity don't be mark as admin created.
Solutions:
You can see a dirty solution posted as patch "default_widgets_1_1.patch". (Only add admin_created metadata).
And the other patch "default_widgets_1_1_load_on_login.patch", is more clean and change the event handler function form create user event, to login user event.
After this change the plugin load default widgets disposition in login time, only when user don't have any widget loaded (allways in first login).
You can select only one patch, and remember, the default_widgets_1_1_load_on_login patch, is more clean, but do a hard change in plugin functionality.
Elgg - Release - 1.2, Version - 2008120901
Default_widgets, Version 1.1
Sorry for my bad english :-)
Bye.
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.
Great contribution. I will give a check later a give you comments.
Thanks a lot
Hi Jordi. Thanks for this. Previously I had stopped using Default widgets due to an incompatability with derralph's 'invitations' plugin(ie invitations + walledgarden plugin), which is central to my closed community . Do you have any knowledge if 'Default widgets' still breaks this? I will try it myself, just thought you might be able to give me a heads up.
Maybe Diego can answer this.
Many thanks guys, you're great.
If you want try this, please use default_widgets_1_1_load_on_login.patch, and I think you don't will have any issues.
Thanks.
Can you pass along patch installation instructions. Thanks!
It's very easy. Only need download default_widgets package and patch file. Then only need execute patch command. (exists in all linux distro, may be exists some aplication in windows with same functionality, but I don't know,or you can use cygwin).
And run this command:
patch -b start.php default_widgets_1_1_load_on_login.patch
This is all.
What functionality is affected by marking/not marking admin-created users?
The problem not is the admin-created mark, the problem appear becouse this plugin break the program flow and produce malfunctions in another plugins registed in same event.