hi i am using elgg 1.8 how to redriect user to dashboard when using custom index please help
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.
Have you tried overriding the url with a url handler?
There's the login_redirector plugin:
http://community.elgg.org/pg/plugins/project/384766/developer/jdalsem/loginredirector
It's for Elgg 1.7, so I don't know if it works for Elgg 1.8 (most likely not without some modifications). But you could use this plugin as a starting point to implement the redirect on your site. If the redirect should always go to the dashboard the plugin code can be simplified anyway.
You need to enable the dashboard plugin, then make a custom plugin that registers for the system, index hook and redirects logged users to /dashboard.
solved by add redirection url in actions/login.php
change
TO:
adding, appeared:
'Sorry. We could not find the requested profile.'
As most developers will say -- better to do a custom plugin for such functions.
The Login Redirector should work pretty well after the 1.8 code fixes.
If you 'insist' on 'hacking' the core code... try this :--
$forward_url='/profile';elgg_get_logged_in_user_entity()->username;
same message:
'Sorry. We could not find the requested profile.'
There is a plugin for this? For elgg 1.8?
Just post your site's url here - so we can try it out ;)
ps: there was a typo in the code i posted ! did you catch it or did you just blindly copy the typo-ed error code ?
I copied. What is wrong in your code?
- Previous
- 1
- 2
- Next
You must log in to post replies.