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.

About: Johnny Novato

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 12 replies - 1 through 12 (of 12 total)
Author Replies
Author Replies
Posted: Friday Jan 25th, 2013 at 1:31 pm #39526

Hi guys: Thanks for the help. Here’s the shortcode. Maybe there’s something missing from it that would allow for it to respond better to these PayPal subscriptions?

[s2Member-PayPal-Button level="4" ccaps="" desc="Annual: $50/year / The even more generous plan." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.peterbcollins.com" ta="0" tp="0" tt="D" ra="50" rp="1" rt="Y" rr="1" rrt="" rra="1" image="default" output="button" /]

What people are ordering is an annual subscription to a radio show podcast. We also have a month-to-month subscription. The monthly one seems to renew just fine. Both plans give you access through a WordPress user account who is assigned a different role based on which plan he or she has subscribed to.

Here, for comparison, is the monthly shortcode.

[s2Member-PayPal-Button level="1" ccaps="" desc="$5/Month Member / The basic plan." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="www.peterbcollins.com" ta="0" tp="0" tt="D" ra="5" rp="1" rt="M" rr="1" rrt="" rra="1" image="default" output="button" /]

Any help much appreciated!

-John

Posted: Tuesday May 29th, 2012 at 8:47 pm #14888

Hi, future Googlers of this subject:

I have gotten around the problem by writing, in MySQL, a kind of user-killing drone for use in the crontab. It searches for users more than 24 hours old and then bounces them, along the following lines:

$querystr ="SELECT *
FROM wp_usermeta
LEFT JOIN wp_users ON wp_users.ID = user_id
WHERE wp_usermeta.meta_value LIKE  '%s2member_level5%'
AND wp_users.user_registered < NOW( ) - INTERVAL 24 HOUR 
LIMIT 0 , 30";

	$watchlist = array();
	
	$result = mysql_query($querystr);
	
	while ($row = mysql_fetch_assoc($result)) {
		$deadbeat = $row['user_id'];
		echo $deadbeat;
		
		$purgeStr = "DELETE from wp_users WHERE ID = " . $deadbeat;
		$purgeAction = mysql_query($purgeStr);
	
		if (!$purgeAction) {
			die ('Cannot purge because ' . mysql_error());
		}
		else {
			echo $purgeAction;
		}
	};
Posted: Tuesday May 29th, 2012 at 12:10 pm #14877

Hi Christian:

Thanks, and I appreciate that, but here’s where Specific Post/Page Access won’t work for our situation, unless I am mistaken. Bear with me here, please.

1. Specific Post/Page Access relies on Content Permissions, right? Doesn’t it require that the post be Protected under the Content Permissions system?

We found that Content Permissions blocked out posts totally from public view, excerpts and all. We needed to provide content that was partially exposed to public view, and then partially blocked. So that’s why we based our system on WordPress shortcodes that censor or redact posts based on whether the user is logged in.

2. Will Specific Post Page/Access

a) simulate the state of being logged in? And thus present the hidden content protected within shortcodes designed to discriminate against users who are not logged into WordPress? (THIS WOULD WORK FOR US.)

b) Or will it merely present raw pages that still have our shortcodes in them, blocking the content from view despite the purchase? (THIS WOULD NOT WORK FOR US.)

Do you see what I am saying, and why I have tried to implement the idea of the expiring 24-hour user, rather than the one-shot URL purchase? The one-shot URL purchase seems like it would be incompatible with our “are you logged in”-based, legacy content protection scheme.

That’s why the idea of the expiring 24-hour WordPress account seems like a worthwhile goal. This user could be told after 24 hours that his access had run out, and might even be persuaded to sign up for the monthly plan.

If we can’t make this work through S2Member it seems like I am going to have to write a crontab solution… :(

Thanks for your attention and I hope you understand what I am trying to explain here…

Posted: Friday May 25th, 2012 at 3:31 pm #14627

Edited my question because I wrote it while sleepy. Hoping someone can help me figure out what the best shortcode is for this. Bear with me, I just can’t do it using the other methods. :( Could this be the magic recipe?

[s2Member-PayPal-Button level="5" ccaps="" desc="24-hour pass / Your one-day ticket to PBC." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="peterbcollins.com" ta="0" tp="0" tt="D" ra="1" rp="1" rt="D" rr="0" rrt="" rra="1" image="default" output="button" /]
  • This reply was modified 4 years, 7 months ago by  Johnny Novato.
Posted: Friday May 25th, 2012 at 10:27 am #14601

Agh, no, apologies, but I’ve been trying to get the right answer on this for weeks, and going in circles, but I should have added:

I don’t think I can use

One Time

because it doesn’t create a WordPress user account but rather creates some sort of URL scheme based on Content Restriction, right? Doesn’t work for my setup, and I’ll explain why.

See, I was going to use Content Restriction and the typical one-shot access. But then I found out on this board that it wouldn’t work for me. That’s because I needed to use Partial Protection. We break up posts into segments, shortcoded public and private.

So our scheme is based on using S2Member to manage regular WordPress accounts, and the idea is that if you’re logged in, you can see the stuff. If you aren’t logged in, you can’t.

So what I need is a button that creates a regular WordPress account for a buck. That WP account should self-destruct in one day. Maybe I should just be using some cron-tab thing instead of trying to figure this out?

Maybe I can make it work by adjusting the shortcodes? Can I make the shortcodes do what I need?

  • This reply was modified 4 years, 7 months ago by  Johnny Novato.
  • This reply was modified 4 years, 7 months ago by  Johnny Novato.
Posted: Thursday May 24th, 2012 at 2:28 pm #14498

Okay, thanks for this. So do you mean that this strictly happens under Pro Forms, as opposed to regular PayPal buttons?

Because when I tried this with a regular PayPal button for a 24-hour pass, the EOT didn’t seem to happen, or the user didn’t seem to get deleted the way I wanted.

I’m gonna try again with a Pro Form. Can you tell me if I’m doing this wrong? Here’s the shortcode:

[s2Member-Pro-PayPal-Form level="5" ccaps="" desc="24-hour pass / Description and pricing details here." ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="peterbcollins.com" ta="0" tp="0" tt="D" ra="0.01" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]

Any help much appreciated,

John

Posted: Friday May 18th, 2012 at 5:37 pm #13910

Hi —

I think this would help. Except, wait. Can I use this and still charge $1?

Posted: Thursday May 3rd, 2012 at 7:43 pm #12529

That may not work for me because we’re trying to set up Buy Specific Post and from what I understand, that only works when the entire post is under Content Restriction. Right?

And also I’d rather not force members to go through a More link every time they want to listen to their show.

Is there some other way that the preview could sneak around Content Restriction. Maybe as Custom Field data? Does that stuff get restricted too?

Any help much appreciated,

John

Posted: Wednesday May 2nd, 2012 at 5:04 pm #12399

That’s interesting but that will not work for me here. Thanks, though!

Posted: Friday Apr 27th, 2012 at 3:37 pm #12080

Ahh yeah. So you’re saying, unless the entire post is restricted, it can’t be sold individually. My idea was to generate some kind of temporary, expiring link that lets the user buy the file sandwiched between the shortcodes. Maybe this is a job for more advanced custom scripting and not for Buy Specific Post then, if I understand right.

Posted: Friday Apr 27th, 2012 at 3:26 pm #12075

Oh OK, so those shortcode conditionals will work with Specific Post purchase? Confused about how to do that… (I wrote my own shortcode conditional because I wasn’t sure about how S2Members’s worked.)

Update: Looking at the S2Member PayPal Buttons. So if I create one of those buttons and sell a post, does the user get sold a version of the post that acts like it is being viewed by a paying member?

  • This reply was modified 4 years, 8 months ago by  Johnny Novato.
  • This reply was modified 4 years, 8 months ago by  Johnny Novato.
Posted: Friday Apr 27th, 2012 at 12:15 pm #12056

Thanks for the quick reply. The way we’ve been doing posts is to make them part free, part premium, like this pseudocode:

“On today’s episode, I interview Ryan Gosling.

[IF USER IS LOGGED IN]

[podcast audio]

[/IF USER IS LOGGED IN]

So my concept is that there would be a $1 payment allowing the user to see a special version of this page as if he’s a member, showing that [podcast audio] content that otherwise would be restricted.

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

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.