Pragmatism in code


Waxing lyrical about life the universe and everything tech related since lunchtime 2006.
1 minute reading time (269 words)

Dolphin 6 - Login Redirect MOD

This mod will automatically redirect new members to the profile edit page when logging in for the first time. Every time thereafter members are taken to their profile page





This mod can be downloaded for free from the Boonex marketplace - This might be suitable for those users who have a stock Dolphin installation and do not want to manually modify files - simply download the mod and copy the included files.

If you want to manually install the mod - just follow the instructions below.

Difficulty of installation

Easy - Step by step instructions are included for installation on modded sites, or simply copy the included files.


  • 20/05/2009 Version 1.0 - Initial Version.



/*[MANUAL Installation]=======================================






	$update_res = db_res( "UPDATE `Profiles` SET `DateLastLogin` = NOW() WHERE `ID` = {$member['ID']}" );

--[INSERT BEFORE]---------------------------------------------

            //[START DeeEmm Login Redirect MOD]

            //check if logged in before
            $result = mysql_query("SELECT * FROM `Profiles` WHERE `ID` = {$member['ID']}");
            $value = mysql_fetch_array($result);           

            if ($value['DateLastLogin'] == "0000-00-00 00:00:00"){
                $new_member = TRUE;
            } else {
                $new_member = NULL;
            //[END DeeEmm Login Redirect MOD]


            $_page['name_index'] = 150;
            $_page['css_name'] = '';

--[INSERT AFTER]----------------------------------------------

            //[START DeeEmm Login Redirect MOD]

            //If new member redirect to profile page
            if ($new_member){
                $sUrlRelocate = 'pedit.php';
            } else {
                $sUrlRelocate = getProfileLink($member['ID']);

            //[END DeeEmm Login Redirect MOD]

--[ADDITIONAL INFO]-------------------------------------------

	The redirect will only apply to those users that have
	previously not logged in after joining. To force the 
	redirect you will need to reset the DateLastLogin
	field in the Profiles table to 0000-00-00 00:00:00 

Hosted Exchange 2007
Delete .DS_Store files


No comments made yet. Be the first to submit a comment
Already Registered? Login Here
Tuesday, 14 July 2020
If you'd like to register, please fill in the username, password and name fields.

Captcha Image