2
2007
MOD: Redirect Member To Profile Page After Login
Tested on version 6.0.0003 build.
I wanted members to login to my site and taken directly to their profile page, rather than the "my account" page that Dolphin redirects users to.
Here is the MOD that does exactly this.
Backup member.php just in case you screw things up.
Open member.php and find:
line 78: if( !$sUrlRelocate = $_POST['relocate'] or basename( $_POST['relocate'] ) == 'index.php' or basename( $_POST['relocate'] ) == 'join_form.php' )
line 79: $sUrlRelocate = $_SERVER['PHP_SELF'];
Insert this code after line 79 (line 80 would be OK :))
$sUrlRelocate = '/profile.php?ID='.$member['ID'];
What this does is that it forces the redirection to yoursite.com/profile.php?ID=x after a successful login, where x is the user ID of the member.
Now, if you have friendly profile URL turned ON, then obviously this MOD will still work.
If you like this MOD, then please rate it at:
http://www.expertzzz.com/Downloadz/view/1484
Be sure to subscribe to my blog feed if you want more MODs in the future!
RELATED POSTS
WordPress database error: [Can't find FULLTEXT index matching the column list]
SELECT ID, post_title, post_content,MATCH (post_name, post_content) AGAINST ('redirect to profile mod') AS score FROM wp_posts WHERE MATCH (post_name, post_content) AGAINST ('redirect to profile mod') AND post_date <= '2008-08-20 05:07:44' AND (post_status IN ( 'publish', 'static' ) && ID != '11') AND post_password ='' ORDER BY score DESC LIMIT 5


Great work, thank you for the mod
You're very welcome. Would appreciate a rating on expertzzz website. Nice translated site you have.
Thanks for this mod am lovin' it
Thanks, your mods are always each to install, great for the beginners like myself!
Great MOD….Works like a charm….Keep 'em coming.
Great MOD….Works like a charm! Keep 'em coming.
likeing your mods great job
good site with lot of information and uses. keep this work….
Worked really well.. although I change it to redirect my users back to the home (index.php) page, where the shout box and other info is available to logged in users.