To change from dashboard to profile
In actions/login.php, change
forward("pg/dashboard/") to forward("pg/profile/$username");
:)
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.
for ver 1.8
edit /public_html/members/actions/login.php
i tried it and it works
Hi,
I'm working with Elgg 1.8.3, and I think the following may work for you:
1) Open the file:
[elgg]/actions/login.php
2) Go to the last two lines:
system_message(elgg_echo('loginok'));
forward($forward_url);
3) Change the last one like this:
system_message(elgg_echo('loginok'));
forward('profile/' . $username);
Hope it helps :-)
What about 1.8.4? Also, is there a way to change the profile urls from /profile/786 to /profile/username? The links on my members page points back to the dashboard and displays "Sorry, we could not find the requested profile".
@mrunlimited : there are plugins available for that here in the community. Just search for login redirector
@diane007
@Sachin: see
Change this -->
global $SESSION;
$SESSION['forward_link'] = "profile/".$user->username;
return true;
To -->
forward('profile/".$user->username); // might need to fetch the logged_in user obj
exit();
- Previous
- 1
- 2
- Next
You must log in to post replies.