Redirect to Purchase Page on Join

Is there a way to redirect those who join to m/membership/index/ instead of the avatar directory?

Quote · 25 Oct 2010

take a look on this http://www.boonex.com/unity/extensions/entry/Redirect_to_any_page_after_logon_

Quote · 25 Oct 2010

My mod only does redirects on logon, not on join as was requested.

https://www.deanbassett.com
Quote · 25 Oct 2010

Deano, I took your mod and implimented it with the join too,and since I don't own it I must do it with your permmision. it's doable!

Quote · 25 Oct 2010

As written it doesn't. So you would need to post your changes to it as well so they know what to do.

https://www.deanbassett.com
Quote · 25 Oct 2010

ok..

At: BxDolJoinProcessor.php

Look for   function showFinishPage( $iMemID, $sStatus ) {

$sPwd = db_value("SELECT `Password` FROM `Profiles` WHERE `ID` = '".(int)$iMemID."' LIMIT 1");
if ($sPwd) {
bx_login ((int)$iMemID); // autologin here
bx_import('BxDolPermalinks');
$o = new BxDolPermalinks();
// header('Location: ' . BX_DOL_URL_ROOT . $o->permalink('modules/?r=news/'));
header('Location: ' . BX_DOL_URL_ROOT . $o->permalink('pedit.php?ID='.$iMemID));

I changes it to go to profile edit but you can point it to any page after the join like Deano did for Login

I own it to Deano

Quote · 25 Oct 2010

You'll find the BxDolJoinProcessor.php  in /inc/classes

Quote · 25 Oct 2010

BxDolJoinProcessor.php doesn't have any of that code.

Quote · 25 Oct 2010

I'm using V 7.0.3...in any case follow the Join.php include programs and look for the calling to Avatar module in your case. Than change it to any page you want.

I just din't want to touch Deano's mod therefore I changed it in my code.

Quote · 25 Oct 2010

My BxDolJoinProcessor.php has the code below between likes 538 and 580 and it gets called each join. I've removed it and inserted your code but it didn't work. It just gave me a status message that the join was successful without automatically logging the member in.

 

//--- upload profile photo

if(isset($aProfile1['ProfilePhoto']) && !empty($aProfile1['ProfilePhoto'])) {

$sPass1 = getPassword($iId1);

bx_login($iId1);



check_logged();



BxDolService::call('avatar', 'set_image_for_cropping', array ($iId1, $GLOBALS['dir']['tmp'] . $aProfile1['ProfilePhoto']));



if (BxDolRequest::serviceExists('photos', 'perform_photo_upload', 'Uploader')) {

$aFileInfo = array (

'medTitle' => _t('_bx_ava_avatar'),

'medDesc' => _t('_bx_ava_avatar'),

'medTags' => _t('_ProfilePhotos'),

'Categories' => array(_t('_ProfilePhotos')),

'album' => str_replace('{nickname}', getNickName($iId1), getParam('bx_photos_profile_album_name')),

);

BxDolService::call('photos', 'perform_photo_upload', array($GLOBALS['dir']['tmp'] . $aProfile1['ProfilePhoto'], $aFileInfo, false), 'Uploader');

}

}

Quote · 27 Oct 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.