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.

Cristián Lávaque


My Latest Replies (From Various Topics)

Viewing 25 replies - 4,376 through 4,400 (of 7,376 total)
Author Replies
Author Replies
Posted: Wednesday Aug 22nd, 2012 at 7:02 am #22703

It’s possible. At least it’s the only thing I found out of place, so there’s a chance it’s related.

Do you have another hosting account where you could test this?

I don’t understand why they’d disable that variable… A ton of people are on shared hosting and don’t have that limitation, we’d hear about it more often if that were the case.

Posted: Wednesday Aug 22nd, 2012 at 6:57 am #22702

I’m waiting for Jason to catch up with his email. He’s been checking his email less often lately, since he’s got his head deep in the new s2Member so we can start beta testing it really soon. I don’t think it’ll be much longer before he gets to this one. Thanks for your patience.

But since I’m back at this, I went and looked at your site again. I find it odd that s2Member would return a 404 in that situation, that’s very unlike how it deals with any other lack of access.

Is /create/ a default page of WordPress multisite? Here’s a quote from [hilite path]WP Admin -> s2Member -> Multisite[/hilite]:

Multisite Networking makes a new Registration Form available ( driven by your theme ); which we refer to as: /wp-signup.php. If, and only if, you’re planning to offer Blogs, you MUST use /wp-signup.php, instead of using the Standard Login/Registration Form. In a Multisite installation, we refer to the Standard Login/Registration Form, as: /wp-login.php?action=register.

It says you must use /wp-signup.php, but you’re using /microsites/create/. I just tried /wp-signup.php now and it redirected to /membership-options/, even though I was logged into the admin account, but that isn’t the right slug so it gives a 404. Same if I try /register/ which BuddyPress adds. Not sure what’s going on there.

Anyway, I went looking for /microsites/create/, but just found the /microsites/ page and saw that it has a listing of the network blogs and there’s a “create” button that links to /microsites/create/. Now, I went to the editor for /microsites/ and it’s an empty page. What is adding that content there? All this seems added by some other plugin.

Could you clarify what plugin is putting that there? If you deactivate all the plugins except s2Member, do you have the blog creation problem? Then start adding the other plugins, when does the problem come back?

I took at look at the form’s HTML in /microsites/create/ and from some googling, found it seems to be BuddyPress’. The form’s action, though, is empty in the HTML I looked at, not sure if that’s right. The PHP files I looked at in BP do have an output there, so I wouldn’t expect it empty. Or is there some JavaScript at work there?

In any case, the s2Member documentation points to using wp-signup.php, which is giving you a 404 because of a /membership-options/ slug that doesn’t exist, but no redirection should happen in the first place if I’m in the admin account. You should fix that and see if it helps with /microsites/create/ problem.

I hope it helps.

Posted: Wednesday Aug 22nd, 2012 at 5:49 am #22695

Hi Andy.

In the hack’s function, could you do echo the user’s ID and the time? I’d like to know if you have a correct value for both.

[hilite pre_code]
' . strtotime('04/04/2013');
exit;
}
?>
[/hilite]

Thanks.

Posted: Wednesday Aug 22nd, 2012 at 5:44 am #22694

Hi Linda.

Sure. Here you can read about s2Member’s current approach to that: [hilite path]Dashboard -› s2Member® -› API / Scripting -› Content Dripping[/hilite]

I hope that helps. :)

Posted: Wednesday Aug 22nd, 2012 at 5:39 am #22693

Hi Kevin.

I believe the Pro add-on doesn’t change that, but I’ll ask Jason to confirm it.

Thanks for your patience. :)

Posted: Tuesday Aug 21st, 2012 at 9:35 pm #22683

That’s great, Andy! Thanks a lot for the update. I’m very glad it’s solved now. :)

Posted: Tuesday Aug 21st, 2012 at 9:30 pm #22682

Hi JC.

I really don’t know if that’s possible, or how it’d be done. I guess you should first check with your card if you can do that kind of authorization for someone else. If it’s all on the card side, then nothing needs changing in s2Member.

Now, wouldn’t it be simpler to ask the person what he wants up to a certain amount, and just give it to him?

Posted: Tuesday Aug 21st, 2012 at 8:41 am #22637

I am just unable to figure out how the syntax would look like. I see snippets with user_can , user_is, and such that are simple true or false conditions.

You need a bit of PHP to first get all the ccaps he has, to then compare against the required ccap for the content he’s trying to view.

That PHP is not in the documentation, not sure there’s a function that does it either. http://www.s2member.com/codex/stable/s2member/api_functions/package-summary/

You may need to do a database query to get them. http://codex.wordpress.org/Class_Reference/WP_Query

Posted: Tuesday Aug 21st, 2012 at 8:36 am #22636

That’s probably what happened. Thanks for the update! I’m very glad you sorted it out. :)

Posted: Tuesday Aug 21st, 2012 at 8:35 am #22635

I’m really sorry, I’m not taking freelance jobs, haven’t for almost two years now. :/

I’m sure there’s someone in one of the freelancers websites that can do this for you (e.g. elance.com, odesk.com, jobs.wordpress.net). My other post should help orient him/her with what to do, you could post a link to it in your job description.

Posted: Tuesday Aug 21st, 2012 at 8:31 am #22634

Hi Kim.

If you use the PayPal button, the user would be returned to a confirmation page with a link to the usual WP registration page. /wp-login?action=register

If you’re using the pro-form with Express Checkout, then the user would be registering right there. [hilite path]Dashboard -› s2Member® -› PayPal® Pro Forms -› Membership Level # Forms[/hilite]

Does that help? :)

Posted: Tuesday Aug 21st, 2012 at 8:27 am #22633

Hi Ken.

* If the user flushes thier browser cache, that seems to usually correct the issue for a short while, but the issue almost always returns within a day or two.

I agree that if it were a server thing, it’d be more general, but I’m not sure. It’s likely to have something to do with their browsers’ caching, since they seem to have solved the problem temporarily with it.

Are they being redirected to the Membership Options page? If so, could you have then copy the URL with all the MOP vars and send them to you so you can see better what restriction is being applied?

Could you ask one of them for his login info so you login to his account and browse the site when he reports having the access problem again?

Also, are they sure they’re still logged in when they get that access problem or if they were logged out for some reason? I’m starting to think this may have something to do with it…

Some have their browsers remove all cookies/sessions, and they may come back to the site expecting to still be in their account and browse the protected content, when they’re actually now logged out.

Posted: Tuesday Aug 21st, 2012 at 8:14 am #22631

Hi Luis.

Not from that bucket. The bucket will expect the signature and other vars s2 sets in the URL for the file, but s2 can only do that for files served in the pages served by WP where s2 is.

If you want to share a video publicly, you should just put a copy of it in another, unprotected bucket and give that link away.

I hope that helps. :)

Posted: Tuesday Aug 21st, 2012 at 8:06 am #22629

Hi Skip.

track the ecommerce transactions that happen in S2 back to the mailchimp email campaigns that are sent out

What do you mean exactly? I want to be sure I understand what you’re requesting. :)

If you mean have the user be moved between lists when he changes his Level, that is already possible. [hilite path]Dashboard -› s2Member® -› API / List Servers -› Automate Unsubscribes/Opt-Outs[/hilite]

Posted: Tuesday Aug 21st, 2012 at 8:02 am #22627

Hi TB.

No, that should be enough…

Could you tell me what role and ccaps he has? And what level or ccap did you use to protect the content he couldn’t access?

Thanks!

Posted: Tuesday Aug 21st, 2012 at 7:50 am #22626

Hi Aaron.

Another user had asked about disabling those fields in the pro-form. This was Jason’s response, which may be useful in your case: http://www.s2member.com/forums/topic/authorize-net-proforms-can-i-disable-fields/#post-20569

I hope it helps. :)

Posted: Tuesday Aug 21st, 2012 at 7:29 am #22625

Hi Kevin.

Have you adjusted your Alternative Views protection settings? What are they set to? [hilite path]Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection[/hilite]

Posted: Tuesday Aug 21st, 2012 at 7:25 am #22624

Hi Ken.

I haven’t used those yet, or had feedback on one that has been used together with s2Member.

I’m not sure how they don’t work together, though. Could you explain in what way?

Thanks! :)

Posted: Tuesday Aug 21st, 2012 at 7:24 am #22623

Right, as Cassel correctly suggested, you can use the MailChimp integration to schedule an email for day 30, for example.

Or, if you had the free registration at Level 3 set for 1 month, then the account would be demoted to Level 0 after that (based on your EOT behavior), and you can have a conditional in the Login Welcome that’ll show to Level 0 users a message asking him to upgrade, including a button/pro-form to pay.

Video » s2Member (API List Servers)
[hilite path]Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior[/hilite]
[hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]

I hope that helps. :)

Posted: Tuesday Aug 21st, 2012 at 7:15 am #22622

Got it, I’ll wait for Jason then.

I’m not sure when he’ll check in, but I’ll let you know as soon as I hear back from him.

Thanks for your patience. :)

Posted: Tuesday Aug 21st, 2012 at 7:12 am #22621

Yes? :)

Posted: Tuesday Aug 21st, 2012 at 7:06 am #22619

Thanks Kevin. I emailed Jason letting him know what you replied. I’ll let you know as soon as I hear back from him, or he may just reply here directly.

Posted: Tuesday Aug 21st, 2012 at 7:00 am #22618

I think it does help. I see i can set ccaps there. Can this form be used if the member is already registered or does that work only for “first registration”?

I never tried using the free registration pro-form for upgrading existing accounts, but I’m pretty sure it doesn’t work for that, since those aren’t registrations… Right, just tested to confirm that, it’s still a registration form. The Levels pro-form would work for the upgrade, but with a payment.

To do it without charging, you can create a script that’ll upgrade users that load a certain page and meet a certain condition, to add the ccap to his account using PHP. Knowledge Base » Changing Roles/Capabilities via PHP

Posted: Tuesday Aug 21st, 2012 at 6:47 am #22616

Hi Synergy.

I have posts that need to be access by everyone, even non-logged in viewers. However, for category XYZ, the the_content() needs to only display for level #2. The rest of the single.php template that I’ve coded needs to display, i.e. the_excerpt(). It’s there for teaser content/seo reasons.

If you’re talking about the excerpt being displayed to everyone in the Category archive, then you can just protect the posts in it with the Category restriction and adjust your Alternative Views protection to achieve that.

[hilite path]Dashboard -› s2Member® -› Restriction Options -› Category Access Restrictions[/hilite]
[hilite path]Dashboard -› s2Member® -› Restriction Options -› Alternative View Protection[/hilite]

If you’re talking about showing just the excerpt in the post itself, and not the rest, then you do need to work with the template using conditionals, as Eduán mentioned above. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals[/hilite]

I hope it helps. :)

Posted: Tuesday Aug 21st, 2012 at 6:42 am #22614

– question 1: is that possible (and logical)?

Yeah, you could do something like that. I haven’t thought out all the details, but the concept is seems fine.

So, today, the shortcode would have a ccaps=”201208″ (i would change it every month)

You can have it update automatically with PHP in the shortcode. http://www.primothemes.com/forums/viewtopic.php?f=36&t=1604

http://php.net/date
[hilite pre_code]

[/hilite]

The [hilite mono]wjan2012[/hilite] format would be tough to compare with higher/lower than. I suggest just [hilite mono]201208[/hilite], [hilite mono]w201208[/hilite] at most.

– question 2: what is the syntax needed to check if the user has a ccap >= than (something)?

[hilite mono]>=[/hilite] is fine, you first need to figure out the dates you’re comparing, though. You need to get all the ccaps the user has, first, and then do the comparison to find one higher than the one required by the page.

Viewing 25 replies - 4,376 through 4,400 (of 7,376 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.