Help With Redirect Please

After a new member joins, they are taken to the Avatar page, I am finding many of them get confused there and basically leave as they seem to see nothing of substance.

Can anyone please help me modify the code (simple instructions please) to have them go into the Account page please; where I have the IBDW News Feed, which at least gives them something to do.

Thank You.

Quote · 13 Mar 2012

Check the forum post related to this:  

http://www.boonex.com/forums/topic/Redirect-after-join-to-member-php-not-to-Avatar.htm

Quote · 13 Mar 2012

That is the wrong link.

Quote · 13 Mar 2012

Edit inc/classes/BxDolJoinProcessor.php

Near the end of the file look for this.

        if ('EXIT' == BxDolService::call('avatar', 'join', array ($iMemID, $sStatusText))) {
            exit;
        }

Thank for the solution below.


Comment out those lines and/or replace with this.

        bx_login ((int)$iMemID);
        header("Location: " . BX_DOL_URL_ROOT . getNickName($iMemID));
        exit;


If you prefer to redirect to the dashboard then use this.

        bx_login ((int)$iMemID);
        header("Location: " . BX_DOL_URL_ROOT . "member.php");
        exit;

Quote · 13 Mar 2012

I will try this out. How do you comment out stuff in PHP?

Quote · 13 Mar 2012

There are 2 ways  slashes  and  slash  with asterisk

//phpcode

 

or

 /*phpcodes*/



// bx_login ((int)$iMemID);
       //header("Location: " . BX_DOL_URL_ROOT . getNickName($iMemID));
        //exit;


or


/* if ('EXIT' == BxDolService::call('avatar', 'join', array ($iMemID, $sStatusText))) {
            exit;
        }*/


Just a sample when you like to comment PHP code.

Quote · 13 Mar 2012

 Tried redirecting to the dashboard for a New Signup, screen went blank. Member was registered but staring at a blank screen.

Any ideas?

 

Edit inc/classes/BxDolJoinProcessor.php

Near the end of the file look for this.

        if ('EXIT' == BxDolService::call('avatar', 'join', array ($iMemID, $sStatusText))) {
            exit;
        }

Thank for the solution below.


Comment out those lines and/or replace with this.

        bx_login ((int)$iMemID);
        header("Location: " . BX_DOL_URL_ROOT . getNickName($iMemID));
        exit;


If you prefer to redirect to the dashboard then use this.

        bx_login ((int)$iMemID);
        header("Location: " . BX_DOL_URL_ROOT . "member.php");
        exit;

 

Quote · 22 Apr 2012

Sorry, but the code looks fine.

Double check it. It should be this. Exactly

bx_login ((int)$iMemID);
header("Location: " . BX_DOL_URL_ROOT . "member.php");
exit;


Also, a blank page means an error occurred. Turn on error reporting in PHP.INI

Without errors it's pretty much impossible to debug.

The most common problem is people's editors adding white space at the end of the files when it saves, so check to make sure nothing is after the closing ?> php tag at the bottom of the file.



https://www.deanbassett.com
Quote · 22 Apr 2012

 deano, 

have you got a collection of your snippets. would like to share those, in an organized enivronment if you have some you can pass to me? 

 

 

Sorry, but the code looks fine.

Double check it. It should be this. Exactly

bx_login ((int)$iMemID);
header("Location: " . BX_DOL_URL_ROOT . "member.php");
exit;


Also, a blank page means an error occurred. Turn on error reporting in PHP.INI

Without errors it's pretty much impossible to debug.

The most common problem is people's editors adding white space at the end of the files when it saves, so check to make sure nothing is after the closing ?> php tag at the bottom of the file.



 

When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support
Quote · 23 Apr 2012
 
 
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.