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.
|
|
|
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 deano92964 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;
|
I will try this out. How do you comment out stuff in PHP? |
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.
|
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 deano92964 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;
|
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 |
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 |