redirect after join form

After a new member clicks JOIN NOW and then completes the join form, they are taken to a "join page" page that gives them a congratulations message, and then they have to log in before they can use the site.  Is there a way to set it up so that after they complete the join form, they are redirected to the edit profile page?  I've tried editing the relocate url's in all 4 login files I could find (including the ajax) and I can't seem to get it right.

 

Thanks in advance! 

Quote · 7 Sep 2009

Well, you could keep relocating that URL and perhaps it will take them back to Kansas, but the rest of us tend to stay away from redirecting the URL for this and instead we like to hop over to the join.php file and look for this part:

 


function showFinishPage( $iMemID, $sStatus ) {
  switch( $sStatus ) {
   case 'Active':      $sStatusText = ('_USER_ACTIVATION_SUCCEEDED'); break; //activated automatically
   case 'Approval':    $sStatusText = ('_USER_CONF_SUCCEEDED');       break; //automatically confirmed
   case 'Unconfirmed': $sStatusText = ('_EMAIL_CONF_SENT');           break; //conf mail succesfully sent
   case 'NotSent':     $sStatusText = ('_EMAIL_CONF_NOT_SENT');       break; //failed to send conf mail
  }
  
  echo _t( '_Join complete' );
  echo '<br />';
  echo _t( $sStatusText );
 }

 

 


 

 

Then we have a tendency to replace it like this:

 


 

 

function showFinishPage( $iMemID, $sStatus ) {
  switch( $sStatus ) {
   case 'Active':      $sStatusText = ('_USER_ACTIVATION_SUCCEEDED'); break; //activated automatically
   case 'Approval':    $sStatusText = ('_USER_CONF_SUCCEEDED');       break; //automatically confirmed
   case 'Unconfirmed': $sStatusText = ('_EMAIL_CONF_SENT');           break; //conf mail succesfully sent
   case 'NotSent':     $sStatusText = ('_EMAIL_CONF_NOT_SENT');       break; //failed to send conf mail
  }

  global $member;
  global $logged;

  $member['ID'] = $iMemID;
  $member['Password'] = md5($_POST['Password'][0]);

  if ( check_login( $member['ID'], $member['Password'] ) )
  {
   setcookie( "memberID", $_COOKIE['memberID'], time() - 24*60*60, '/' );
   setcookie( "memberPassword", $_COOKIE['memberPassword'], time() - 24*60*60, '/' );
   setcookie( "memberID", $member['ID'], 0, '/' );
   setcookie( "memberPassword", $member['Password'], 0, '/' );

   $_COOKIE['memberID'] = $member['ID'];
   $_COOKIE['memberPassword'] = $member['Password'];

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

   check_logged();
  }

  echo _t( '_Join complete' );
  echo '<br />';
  echo _t( $sStatusText );
 }

 


 

 

Of course, that's just us.  But you can go ahead and keep playing with the Login URL if you like.  (Hint:  Submit buttons are a great place to look for things)

 

Quote · 7 Sep 2009

Not quite what I was going for, but I like it!  Thanks!

 

1 more question...

 

I've set up my site so when a guest or a member that is not logged in clicks on a thumbnail photo of a profile, they  are forced to login first.  However, after the member logs in, they are directed to a page that says

 

"PROFILE NOT AVAILABLE FOR VIEW"

 

then they have to click back in the browser to view the profile they were trying to view.  How can they skip over the "profiel not available for view message and just view the profile they were trying to see without clicking back in the browser?

Quote · 7 Sep 2009

Not quite what I was going for, but I like it!  Thanks!

1 more question...

I've set up my site so when a guest or a member that is not logged in clicks on a thumbnail photo of a profile, they  are forced to login first.  However, after the member logs in, they are directed to a page that says

"PROFILE NOT AVAILABLE FOR VIEW"

then they have to click back in the browser to view the profile they were trying to view.  How can they skip over the "profiel not available for view message and just view the profile they were trying to see without clicking back in the browser?

its related to the variable $sUrlRelocate in inc/admin.inc.php, it only saves the script filename but not the url paramater.

so instead of "profile.php?ID=3" it saves only the "profile.php" not including "ID=3"

so its a bug I think

Live Support http://dolphinbugfixing.com
Quote · 8 Sep 2009

I'm trying to redirect after join to pedit.php and using the suggestion code bring me to login form. Does it works in V7 too?

The original join, automatically login users to avatar page

Quote · 1 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.