DeeEmm

  • Increase font size
  • Default font size
  • Decrease font size
DeeEmm Web Technologies

Dolphin 6 - Login Redirect MOD

E-mail Print PDF

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

 

DEMO

http://dolphin6.deeemm.com/

 

Information

This mod can be downloaded for free from the Boonex marketplace -  http://www.boonex.com/unity/extensions/entry/DeeEmm_Login_Redirect_MOD 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.


Changelog

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

 


 

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

	FOR NON-STOCK / MODIFIED INSTALLATIONS


--[PRE_REQUISITES]--------------------------------------------

	N/A
	
--[EDIT]------------------------------------------------------

 	member.php

--[FIND]------------------------------------------------------

	$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]


--[FIND]------------------------------------------------------

            $_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 

==[FINISHED]=========================[http://www.deeemm.com]*/
 

Latest News

Sitemap Generator Updated
The DeeEmm Dolphin 7 Sitemap generator has just been updated. The update addresses an issue where multiple URLS are included within the sitemap. Some configuration parameters have also been added to make it easier to customise the output. Links from each module can now be easily enabled / disabled from appearing in the sitemap. Updating is ...
More
 

Who's Online

We have 3 guests online

Twitter

DmWebTech
DmWebTech: Why is it every time Xmarks has an update available, it fails to load? It does not breed confidence in thier product, to say the least.

2 week(s) ago from Twidget

DmWebTech
DmWebTech: Script kiddies took down a few sites at the weekend. Surely they've got something more constructive to do. I hear Boonex need some coders :)

2 week(s) ago from web

DmWebTech
DmWebTech: Don't you just hate it when people complain about code not working when it's down to their own inability to install it.

3 week(s) ago from web



powered by TweetXT!
 

DMCMS

DMCMS is a simple and easy to use content management system for small to medium websites.

dmodmcms.jpg

 

Forum

Re:DeeEmm Record user...
DukeURL 6.9.2010 19:27
Re:DeeEmm Record user...
DukeURL 6.9.2010 19:05
Re:DeeEmm Record user...
DeeEmm 6.9.2010 17:44
Re:DeeEmm Record user...
DukeURL 2.9.2010 2:34
Re:DeeEmm Record user...
DeeEmm 1.9.2010 21:08
More...

Latest Comments


Newsflash

Did you know that we offer hosted exchange packages for mail handling? Why not take the hassle out of running your corporate mail servers by using our hosted exchange packages. All of our packages come complete with push email and all exchange 2007 features - Perfect for OSX Mail users, and for those who wish to save time and money by outsourcing server management. Call or email us today to discuss your requirements.