Redirect on Join

I am looking for a way to have the Join form redirect to:

m/membership/index

after the person Joins, instead of to:

m/avatar/&join_text=_USER_ACTIVATION_SUCCEEDED page

(although having the User_ACTIVATION_SUCCEEDED text would still be nice.

Also, is there anyway when someone adds the membership level to Cart, it takes them right to the cart, instead of just saying "Item Added to Your Cart" and then stays on that page. Having the user click on the cart icon, and having to figure out to click on the Shopping Cart title because if they click on the item, it takes them to the homepage???

Boonex, I love Dolphin, but this is the worst process to pay for membership I have ever seen. Hopefully the "Paypal on Join" mod by browserweb actually does get updated for 7 as promised.

Thanks all.

Cory

Quote · 13 Jan 2010

Hi dpi

I´m not sure, but once I read something like this about your question.

Make a copy of inc/admin.inc.php file

about line 757 will see:

      $mem     = 'member';
      $login_page = BX_DOL_URL_ROOT . "member.php";
            $iRole      = BX_DOL_ROLE_MEMBER;

 

change member.php with member_subscriptions.php or php file you want. Repeat, I am not sure if this is the way for do this. Good luck

Quote · 14 Jan 2010

No good. Still automatically takes you to the Avatar cropping page. Probably on the right trac though.

Quote · 14 Jan 2010

Anyone have any ideas here? Just need a work around until the Paypal on Join module is updated, hopefully by the end of the month.

Quote · 15 Jan 2010

Figured it out for anyone interested. Just remove or change the avatar text in join.php in:


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

Then change the Join Success Text to something custom; I put in a link to go to the member subscription page.

Cory

Quote · 13 Feb 2010

Although the Shopping Cart, add to Cart, then Having to click on the cart in the bottom menu, know to click on the shopping cart title, then finally being able to check out is a ridiculous way for someone to pay for site membership.

Seriously Boonex, fix this!!  Or everyone just pay Browserweb for his Paypal on Join mod hopefully due for 7 next week!!

Cory

Quote · 13 Feb 2010

This is exactly what I want to do too.  Once they join they get redirected to the m/membership/index page instead of the avatar page.

 

However, I found

 

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

 

in BxDolJoinProcessor.php and not Join.php

 

I'm using 7.0.2.  Could you provide me with your exact edits so I can redirect new joins to the m/membership/index page too?

 

Quote · 28 Aug 2010

I think this will work. I cannot test it because I am running Dolphin Subs not Boonex membership, but I think this will do what you want.

In modules/boonex/avatar/classes, open the file BxAvaModule.php  Copy the whole function serviceJoin. You will do nothing else to this file.

In modules/boonex/membership/classes, open the file BxMbpModule.php and paste the serviceJoin function into it. Continue by editing this function.

In this line:

 

header('Location: ' . BX_DOL_URL_ROOT . $o->permalink('modules/?r=avatar/') . '&join_text=' . $sStatusText); // redirect to upload avatar page

 

replace r=avatar with r=membership

Save the BxMbpModule.php file.

In inc/classes, edit the file BxDolJoinProcessor.php.   In the function showFinishPage, find the line:

 

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

 

replace avatar with membership and save the file.

I think that will do what you want.  I'll be interested to see if this works for you.

Geri

Quote · 3 Sep 2010

Because I have dolphin subs and cannot edit it, I did a simple but really ugly patch to get this to work for me.

In modules/boonex/avatar/classes, open the file BxAvaModule.php  In the function serviceJoin, find this line:

header('Location: ' . BX_DOL_URL_ROOT . $o->permalink('modules/?r=avatar/') . '&join_text=' . $sStatusText); // redirect to upload avatar page

 

Change the work avatar to dolphin_subs

 

You can also do this for the regular membership module by just changing avatar to membership.

 

This works, but is not a nice solution because you are having avatar redirect to something else.  So the first approach I listed is much better programming style. The approach I just outlined here is the quick and dirty approach.

 

Geri

Quote · 3 Sep 2010

Thank you!  Worked perfect.  Confirmation email sent and everything.  No problems spotted at the moment.

 

For reference I used the post below.  Awesome job, you are the first person I've seen actually post the solution to this.

 

I think this will work. I cannot test it because I am running Dolphin Subs not Boonex membership, but I think this will do what you want.

In modules/boonex/avatar/classes, open the file BxAvaModule.php  Copy the whole function serviceJoin. You will do nothing else to this file.

In modules/boonex/membership/classes, open the file BxMbpModule.php and paste the serviceJoin function into it. Continue by editing this function.

In this line:

 

header('Location: ' . BX_DOL_URL_ROOT . $o->permalink('modules/?r=avatar/') . '&join_text=' . $sStatusText); // redirect to upload avatar page

 

replace r=avatar with r=membership

Save the BxMbpModule.php file.

In inc/classes, edit the file BxDolJoinProcessor.php.   In the function showFinishPage, find the line:

 

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

 

replace avatar with membership and save the file.

I think that will do what you want.  I'll be interested to see if this works for you.

Geri

 

Quote · 3 Sep 2010

I have written a module that will handle this without touching any core code or risking an errors on your site.  It uses Dolphins built-in alert system and installs with one click:

http://www.boonex.com/unity/extensions/entry/Simple_Redirect_Control_7_0_3

This isn't a just a sales pitch :)

This module could help alot of people.

 

 

 

sup
Quote · 17 Oct 2010

This little mod worked great for me. I had purchased the memlock mod but it does not work with ccBill and not getting any response on help with the memlock mod so I started searching for another solution.

 

I put the steps listed in my site V7.0.6 and bam...exactly where I wanted to be.

 

Thanks geriwinters and PravoNetwork for putting this together.

 

Steve

Quote · 27 Apr 2011

All; I have come up with a solution to getting the users directed to the cart to check out after they click on the "Add to Cart" button..

 

This was added to the bottom of the existing code at the bottom of the /modules/payment/templates/base/add_to_cart.html

<html>
<head>
<script language="javascript" type="text/javascript">
<!--
function delayer(){
window.location = "/m/payment/cart"
}
-->
</script>
<body onclick="setTimeout('delayer()', 5000)">

</body>
</html>

Quote · 5 May 2011

We have attempted this several times this week and still won't work for us in a 7.0.7 site.
 Should the "function serviceJoin" be removed from the BxAvaModule.php???

 Is there a particular place to paste the code into the BxDolJoinProcessor.php script, or is it okay to paste it at the bottom as we have done?

When we follow the directions here it just stays on join.php except without the join form showing. ie: no redirect at all and it does not log you in either.
 I am sure it's going to be something really stupid on our part and I apologize...

Bill and Deb
Quote · 13 Jan 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.