Elgg 1.0 Social Networking
Auto Define Default Widgets on User Profiles and Dashboards in Elgg 1.0
The plugin is here and the plugin works!
Per Ben's advice I have finally managed to code the modification as a plugin, using and elgg event.
Per Ben's advice I have finally managed to code the modification as a plugin, using and elgg event.
Much credit also goes to Chad @ NCR from the elgg-developement google group. Chad helped me solve a problem I could not figure out, which is why it took me so long. It seemed the add_widgets function required a logged-in user to check permissions against to see if the user was even allowed to add_widgets.
How do you add widgets when a user is created, if when the user is created, he needs to validate his email before he logs in, and upon log in, the widgets NEED to be already included!? (the whole point of default widgets)The answer?
LOG THE USER IN!
Thanks Chad!
Thanks Chad!
Download default_widgets plugin
(supports both profile and dashboard widgets)

Default Widgets on User Profiles/Dashboard in Elgg 1.0
See default_widgets plugin In Action
My elgg test site is at www.pathly.com.
To see it work:
- Register for account
- Confirm email
- Login


Greyed out topics indicate content coming soon
Discuss This Article