latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Mailchimp signup before viewing page content

Home Forums Community Forum Mailchimp signup before viewing page content

This topic contains 10 replies, has 2 voices. Last updated by  Raam Dev 4 years, 8 months ago.

Topic Author Topic
Posted: Wednesday Apr 25th, 2012 at 1:07 pm #11845

List Of Topic Replies

Viewing 10 replies - 1 through 10 (of 10 total)
Author Replies
Author Replies
Posted: Wednesday Apr 25th, 2012 at 10:44 pm #11887
Raam Dev
Username: Raam
Staff Member

Hi Malin,

You could use either method, but I would recommend using s2Member to automate the MailChimp subscription. That way, you can redirect them straight to the video page after they login.

If you want to use the second method, you’ll need to find a plugin that creates a popup over the page. Then you’ll add the MailChimp signup box to the popup. However, that might get tricky too because the visitor will probably be directed to another page after signing up. They’ll also need to verify their subscription by clicking the link in the email they receive.

If you sign them up using the free membership option, you can disable the confirmation email that gets sent out and subscribe them silently (see here).

Posted: Thursday Apr 26th, 2012 at 1:06 am #11897

Thanks!
Yes, it seems better the first option.
Just that I already have a redirection after they buy the video class….
I guess I need to do a separate redirection for Level 0 ?

Posted: Thursday Apr 26th, 2012 at 6:49 pm #11992
Raam Dev
Username: Raam
Staff Member

Yes, that would make sense. You can use the current_user_is(“s2member_level1”) to check that with a conditional (see Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals).

Posted: Monday Apr 30th, 2012 at 5:47 am #12210

Hi!

Alright, I managed to have 2 different login welcome pages… IF i named them e.g. my-profile-0 and my-profile-1

I did this in General Options/Login Welcome Page:
http://prkiosken.se/min-profil-%%current_user_level%%/

It works fine… BUT I would love to have 2 completely different names of the Pages…
For level1: http://prkiosken.se/min-profil/
For Level2: http://prkiosken.se/gratis-smakprov/

Mainly because we’ve been tracking “gratis smakprov” and I want it too keep its name.

I read somewhere this could be done with java script redirecting… but I have no clue how to do that.

Anyone who knows?
/Malin

Posted: Monday Apr 30th, 2012 at 5:53 pm #12239
Raam Dev
Username: Raam
Staff Member

Hi Malin,

You could use some code similar to this redirect example for the Membership Options Page. Set a single Login Welcome Page where all users are sent to and then use some code on that page to determine their level and then redirect them to the correct place.

Posted: Wednesday May 2nd, 2012 at 7:23 am #12361

Hi!

Sorry, that’s not working for me, they all end up at the first login welcome page… (which is using a template where I added the code.

Am I doing something wrong?

Here’s where I made changes in the code…
Specific Page/Post ID; i picked the ID of the page where they registered; http://prkiosken.se/gratis-smakprov-registering/.
Purchase page, is in my case my second login welcome page

case "1120": // Specific Page/Post ID
$purchase_page = "http://prkiosken.se/gratis-smakprov-test/ "; // Purchase page
break;
Posted: Wednesday May 2nd, 2012 at 7:24 am #12362

Isn’t there a way to use level 0 instead of page ID?

Posted: Thursday May 3rd, 2012 at 1:02 am #12419
Raam Dev
Username: Raam
Staff Member

Hi Malin,

That code is designed for use on the Membership Options Page; I was suggesting you look there for ideas on how to redirect.

You probably want to do something like this on the Login Welcome Page:

<?php
// Check current user level and set purchase page       
if (current_user_is("s2member_level0")) {
	$purchase_page = "http://prkiosken.se/gratis-smakprov-test/";
}
if (current_user_is("s2member_level1")) {
	$purchase_page = "http://prkiosken.se/some-other-page";
}

// Use JavaScript to redirect to the correct purchase page
?>
<script type="text/javascript">
<!--
window.location = "<?php echo $purchase_page; ?>";
//-->
</script>
Posted: Friday May 4th, 2012 at 3:12 am #12551

Thank you so much, this works perfectly!

Yeah, haha, I’m not a hacker :)

Posted: Saturday May 5th, 2012 at 2:18 pm #12683
Raam Dev
Username: Raam
Staff Member

You’re welcome, Malin! Glad I could help. :)

Viewing 10 replies - 1 through 10 (of 10 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.