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.

Confused about Drip

Home Forums Community Forum Confused about Drip

This topic contains 29 replies, has 2 voices. Last updated by  Dean Clark 3 years, 8 months ago.

Topic Author Topic
Posted: Friday Apr 19th, 2013 at 2:46 pm #47889
Dean Clark
Username: clarkdcad

I have put the following code into my pages that I want to have dripped 10 days after the member has paid for their membership:

= 10){ ?>
Drip content to Members that started paying you at least 10 days ago.

(This is abbreviating the code I used. Not sure what to put here to show the actual code used.)

I set-up a paid membership for myself for Level 1 (which is my paid member level). I set it for .01 payment so I could test what my paid customers would be getting and be able to get into. I pasted the above code into the html area of each page I want my paid members to have dripped to them in 10 days. Everything looks good on the visual page but when I try to get into the dripped pages ahead of the 10 day drip … it ALLOWS me access when it should not.

I’m been reading and trying everything that makes sense but I’m a bit frustrated at this point since I know it should be easy.

Dean

List Of Topic Replies

Viewing 25 replies - 1 through 25 (of 29 total)
Author Replies
Author Replies
Posted: Saturday Apr 20th, 2013 at 7:31 am #47984

Hi Dean.

Everything looks good on the visual page but

If you’re using PHP code, then using the Visual editor will corrupt it. Just use the Text editor if you have PHP in your content.

And you’ll need a PHP execution plugin for the code to work too. Knowledge Base » ezPHP Plugin for WordPress®

(This is abbreviating the code I used. Not sure what to put here to show the actual code used.)

Put your code inside HTML code tags, please. [hilite mono]<code></code>[/hilite]

Posted: Saturday Apr 20th, 2013 at 10:27 am #47997
Dean Clark
Username: clarkdcad

Hi Cristian …

I’m using the PHP Execution Plugin and I’m only pasting the PHP code (below) into the text area on each page that I want to drip once the paid member at Level 1 has registered. I actually have 4 Modules – Module 2 drips after 10 days, Module 3 drips after 20 days and Module 4 drips after 30 days.

<?php if(S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS >= 10){ ?>
Drip content to Members that started paying you at least 10 days ago.
<?php } ?>

I’m wondering if I may have a Plugin conflict because I thought I had it working before.

Let me know what you think.

Thanks.

Dean

Posted: Saturday Apr 20th, 2013 at 6:10 pm #48017

The plugin and code you’re using should be fine.

Everything looks good on the visual page but when I try to get into the dripped pages ahead of the 10 day drip … it ALLOWS me access when it should not.

Are you sure you logged out of your admin account? I’d use a separate browser to view the content, that way you can remain logged in to your main browser as the admin to make changes as needed.

If that doesn’t help, maybe it’s the caching? If you have caching enabled, disable it and see if it helps.

Other than that, there are these things you can try: Knowledge Base » Common Troubleshooting Tips

Posted: Sunday Apr 21st, 2013 at 4:37 pm #48056
Dean Clark
Username: clarkdcad

I’ve done everything above and still no luck. I guess I’ll move to the Common Troubleshooting Tips and see what I can find.

Thanks.

Posted: Monday Apr 22nd, 2013 at 7:24 am #48083

Okay, let us know how it goes.

Also, are you sure the account you’re testing with, is newer than 10 days? If it’s older, then the condition will be true and you’ll be shown the content.

Posted: Monday Apr 22nd, 2013 at 12:48 pm #48100
Dean Clark
Username: clarkdcad

I’m sure. I also went into the area that’s suppose to get dripped in 20 days and in 30 days after the paid membership date, and I’m still getting access.

Good thing to make sure of though.

Thanks.

Posted: Monday Apr 22nd, 2013 at 1:01 pm #48102
Dean Clark
Username: clarkdcad

I should be able to do this myself but I am running up against a tight deadline for a training we are currently pre-selling … is there anyone I can hire to help with S2Member?

Thanks.

Dean

Posted: Monday Apr 22nd, 2013 at 1:15 pm #48103
Dean Clark
Username: clarkdcad

Went through deactivating all the active plugins one-by-one and re-checking … still no luck. I’m using the Optimized Press theme so I’m pretty sure I’m good on the theme since I learned about you guys via their Membership page integration videos. I also own WishList Member but you guys had better payment options ….

Any other ideas?

Dean

Posted: Tuesday Apr 23rd, 2013 at 7:27 am #48171

Could you submit your site’s info? I’ll take a look at it. Let me know once you sent it, please. s2Member® » Private Contact Form

Also, is the site live already or still under development and would I be allowed to change something if I need to test while investigating it?

Did you try every tip in the troubleshooting article? Knowledge Base » Common Troubleshooting Tips

About hiring someone, we don’t have a board for that here, but you can try a freelancers site like jobs.wordpress.net, odesk.com or elance.com.

Posted: Tuesday Apr 23rd, 2013 at 5:15 pm #48217
Dean Clark
Username: clarkdcad

Thanks Cristian. I just sent over the Private Contact Form. This site is live but we are still in Pre-Release so the Members that are there are in there are not on very often (due to the fact that they came in about 4 months ago) and they are close clients (which means they are cool about us tweaking the site, etc.) so feel free to do whatever is needed.

I did go through the Trouble Shooting Article and I think I covered my bases pretty much there too … with no luck. Also note that I would consider myself at an intermediate level with doing all the tasks required for creating and maintaining a Membership site with S2Member.

The ftp access I gave will get you into the main admin area. SingingBowlTraining.com is the last site on the list of sites you come to once you are logged in.

I’ll give elance.com a shot as needed.

Thanks again.

Dean

Posted: Tuesday Apr 23rd, 2013 at 6:55 pm #48220

Thanks Dean. I’ll take a look now.

By the way, what’s the name of the page where you tried the above code?

Posted: Tuesday Apr 23rd, 2013 at 7:07 pm #48222

I created a test page and when I tried previewing it, it sent me to another address. The preview link is:

http://yoursite.com/?page_id=2127&preview=true

And I got sent to

http://www.yoursite.com/free-training-materials?page_id=2127&preview=true

Notice the added “www.” and “free-training-materials”. The page didn’t load, by the way, but I didn’t get a 404 either. Firefox says “The page isn’t redirecting properly”.

You may want to look into this.

See also: Knowledge Base » Don't Mix www, — and Without!

I’ll try an existing draft, maybe I can preview there.

Posted: Tuesday Apr 23rd, 2013 at 7:14 pm #48225

No, preview doesn’t work for other drafts I tried either.

I looked in your .htaccess file and found these lines at the end (I replaced the domain name with “yoursite”):

RewriteCond %{HTTP_HOST} ^yoursite\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.yoursite\.com$
RewriteRule ^/?$ "http\:\/\/www\.yoursite\.com\/free\-training\-materials" [R=301,L]

You may want to edit those a bit.

Let me know when the preview works so I can test the PHP code. Thanks!

Posted: Tuesday Apr 23rd, 2013 at 7:49 pm #48233
Dean Clark
Username: clarkdcad

i just load a new Squeeze Page Plugin called Epic Squeeze Pro and the page that ends /free-training-materials is using that Plugin.

Also …
I had a re-redirect on http://www.SingingBowlTraining.com to redirect to http://www.SingingBowlTraining.com/free-training-materials that I took off. I must of thought I had to have that to make sure that anyone who went to the main site name would go thru the squeeze. It works fine without the redirect. Perhaps that was the problem?

I think I really screw the site up. I changed the site up based on Knowledge Base » Don’t Mix www, — and Without!

and now I cannot get into the admin or to the site AT ALL … I changed the site name in the general settings in WP from http://singingbowltraining.com to http://www.singingbowltraining.com and the setting right below it I changed from http://singingbowltraining.com to http://www.singingbowltraining.com/free-training-materials

I really freaking out right now since we have traffic going to the sqeeze and we are getting ready to close our Pre-Registration payment window.

HELP PLEASE!

Posted: Tuesday Apr 23rd, 2013 at 8:03 pm #48237

I see, but you had the whole site working without the www, it was only in that redirection that you used the www.

Hmm… Can you login to the admin area? If so, just remove the www you added to those settings…

I just tried logging in and got redirected to http://.singingbowltraining.com/wp-login.php which is wrong because it has a dot before the domain name, but without a subdomain.

You will need to look in the database to find and edit them. If you have cPanel, go to phpMyAdmin and use that to do it.

Posted: Tuesday Apr 23rd, 2013 at 8:04 pm #48238
Dean Clark
Username: clarkdcad

I do have a site back up from April 18th if I need it. I know I’m losing business every hour this is down and I’m just not knowledgeable enough to know what to do from here. I guess I’ll just keep google-ing ideas and see if I can fix this ….

Posted: Tuesday Apr 23rd, 2013 at 8:12 pm #48239

I didn’t want you freaking out for too long. With the info you had sent I managed to get to your database and fixed one of the addresses for you. Then was able to login to the dashboard and fixed the other one. :)

I’ll look at the PHP thing now.

Posted: Tuesday Apr 23rd, 2013 at 8:13 pm #48240
Dean Clark
Username: clarkdcad

I’m getting back into the site admin now and the names have already been changed to reflect no www in from of them. I’m a bit sleep deprived so I guess I need to pay closed attention. Let me check some things and come back here and give you an update. Thanks Cristian!

Posted: Tuesday Apr 23rd, 2013 at 8:22 pm #48241

PHP worked for me, but in the Text editor, not the Visual one.

I noticed that you have the PHP Execution plugin which says in the description that you don’t need to disable the Visual editor, but that doesn’t mean you should use it when you have PHP code in your post/page. The visual editor will change some of the characters in the code to HTML entities so they are displayed in the page, but then it’s not valid PHP code anymore so it doesn’t work.

I just tried

[hilite pre_code]
= 10){ ?>
Drip content to Members that started paying you at least 10 days ago.

[/hilite]

and nothing was shown to me, because the value of [hilite mono]S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS[/hilite] for me was 0.

Posted: Tuesday Apr 23rd, 2013 at 8:23 pm #48242
Dean Clark
Username: clarkdcad

Sorry … I’ve been in the admin area messing with the General settings to get the main site URL to land on my Squeeze page URL. I’ll stop and wait for you to post.

Posted: Tuesday Apr 23rd, 2013 at 8:26 pm #48243
Dean Clark
Username: clarkdcad

Also …

I noticed that I am having a problem with the permalinks for my Sales Page and my Squeeze Page. They keep doing weird things … that’s why I did the re-direct in the first place so when someone enters in the main site it would re-direct them to the Squeeze Page. That way it did not matter what the permalink was … is there a better way to do this?

Sales Page (page): Singing Bowl Shaman Training Overview
Squeeze Page (page): Free Singing Bowl Shaman Training Materials

Posted: Tuesday Apr 23rd, 2013 at 8:26 pm #48244

Sorry … I’ve been in the admin area messing with the General settings to get the main site URL to land on my Squeeze page URL. I’ll stop and wait for you to post.

Yeah, I noticed, but I edited the address back to the domain name. That setting you were changing to the landing page, is going to affect every URL that the setting is used for. Even the preview and every other page had the squeeze page’s slug prefixed, even the paid member ones.

If you want to send people to the squeeze page when they don’t have the access to the s2Member protected content, you may want to set it as your Membership Options page. [hilite path]Dashboard -› s2Member® -› General Options -› Membership Options Page[/hilite]

By the way, my last two posts happened almost at the same time you posted. You may want to go back up a bit and check if you had missed them because of that.

Posted: Tuesday Apr 23rd, 2013 at 8:30 pm #48245
Dean Clark
Username: clarkdcad

When you say “Text” editor you mean the right had tap next to the “Visual” tab at the top of each page where you input copy, etc. right? If so, I have been putting the PHP code in the Text editor because that’s where html and php code is suppose to go in a page. I got that right?

I’m going to give it a shot on my end and see if it works based on what I’m doing.

Thanks again.

Posted: Tuesday Apr 23rd, 2013 at 8:33 pm #48246
Dean Clark
Username: clarkdcad

I see …. that makes sense as the why my permalinks are going a bit nutty (as I see it). I’ll also back up a bit and read everything you sent again.

You ROCK Man!

Posted: Tuesday Apr 23rd, 2013 at 8:50 pm #48248
Dean Clark
Username: clarkdcad

QUESTION: If I set the Squeeze Page as my Member’s Option Page then where would existing Free Members go if they wanted to buy the full paid Membership? Also, where would the full Paid Members go if they try to access part of the training that has not dripped yet?

I was planning on doing a Members Option Page that addresses all of these areas. It would say something like ….

You have landed on this page for one of the following reasons:

1. You a currently a paid Member and are trying to access content that is not yet available. (read this)
2. You are Free Member and wish to become a full paid Member. (read this)

This would not work for the Squeeze Page. The re-direct from my cpanel seem to mess the drip up … right?

Let me know your thoughts.

Thanks.

Viewing 25 replies - 1 through 25 (of 29 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.