Home › Forums › Glyn Davidson
About: Glyn Davidson
Sorry, I've not written a description yet. I'll get to it soon!
My Favorite Topics
Topic | Count | Last Reply |
---|---|---|
Is ONEALL's SOCIAL LOGIN plugin compatible wi
By: Jim Sutton in: Community Forum |
voices: 1 replies: 2 |
Topics I'm Subscribed To
Topic | Count | Last Reply |
---|---|---|
Is ONEALL's SOCIAL LOGIN plugin compatible wi
By: Jim Sutton in: Community Forum |
voices: 1 replies: 2 |
|
Currency symbol in welcome email
By: Robin Miller in: Community Forum |
voices: 3 replies: 4 |
|
Need help with conditionals
By: Peggy Duncan in: Community Forum |
voices: 2 replies: 14 |
|
Way to Show Something to Expired Members?
By: Chelle in: Community Forum |
voices: 2 replies: 2 |
|
MOP Vars shortcodes. Y/N?
By: Glyn Davidson in: Community Forum |
voices: 1 replies: 4 |
|
Custom capabilities and End of Term (EOT)
By: Glyn Davidson in: Community Forum |
voices: 2 replies: 8 |
|
Change Selected item on Multiple Pro Forms
By: Glyn Davidson in: Community Forum |
voices: 3 replies: 3 |
|
s2Pro – Change number of levels / multisite
By: Glyn Davidson in: Community Forum |
voices: 1 replies: 0 |
Topics I've Started
Topic | Count | Last Reply |
---|---|---|
MOP Vars shortcodes. Y/N?
By: Glyn Davidson in: Community Forum |
voices: 1 replies: 4 |
|
Custom capabilities and End of Term (EOT)
By: Glyn Davidson in: Community Forum |
voices: 2 replies: 8 |
|
Change Selected item on Multiple Pro Forms
By: Glyn Davidson in: Community Forum |
voices: 3 replies: 3 |
|
s2Pro – Change number of levels / multisite
By: Glyn Davidson in: Community Forum |
voices: 1 replies: 0 |
My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Wednesday Jan 1st, 2014 at 6:20 pm #62359 | |
|
|
Glad you got it working. Happy new year :) |
|
Posted: Wednesday Jan 1st, 2014 at 4:26 pm #62349 | |
|
|
Replace ‘OR’ with ‘AND’ :D |
|
Posted: Wednesday Jan 1st, 2014 at 10:01 am #62341 | |
|
|
Both of those will work, but Robin wants it to automatically change to USD, GBP or EUR based on the customer’s location. I haven’t watched it but have you tried @Bruce’s video on Advanced Email Editing? That might have your answer? |
|
Posted: Wednesday Jan 1st, 2014 at 6:39 am #62337 | |
|
|
Hello again Peggy. Just after posting I gave it some more thought and although the “correct” way to do it would be with:
You could also just extend the shortcode you already have with: “OR current_user_is(administrator)]”
|
|
Posted: Wednesday Jan 1st, 2014 at 6:28 am #62335 | |
|
|
Hi Peggy Forgive me if I’m wrong, but as far as I can tell, you haven’t yet quite understood something that is fundamental to s2member. Just like with WordPress default roles, roles in s2Member are incremental. The default roles in WordPress are:
A subscriber has read-only access to a wordpress site. Or to put it a better way:
s2Member is exactly the same:
So just like in your scenario, the following shortcode would give level 1, 2, 3, and 4 users access to some content:
However, a much better way, which would achieve exactly the same thing, is this:
In this statement, your checking if the current user can access level 1. Yes, level 1, 2, 3 and 4 users can access level 1, and so can admin :) Recommend you get to grips with all of the following before you go any further. P.S. I have a sneaky suspicion that actually, as far s2member is concerned, all of your users will be level 1 and you should be using custom capabilities instead. Suggest you do a batabase backup before going any further.
|
|
Posted: Tuesday Dec 31st, 2013 at 5:52 pm #62330 | |
|
|
Glad you got it working Peggy. Now add this to the bottom of your level 4 page: [s2If current_user_is_not(s2member_level4)]If you would like to purchase access to this content, please click here. [/s2If] |
|
Posted: Tuesday Dec 31st, 2013 at 2:46 pm #62307 | |
|
|
[s2Get constant="S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME" /] would be my bet:
|
|
Posted: Tuesday Dec 31st, 2013 at 2:42 pm #62306 | |
|
|
Yep :) Then do the same again for each of your other levels/pages. Get that working first and then I’ll tell you how you can improve upon it. |
|
Posted: Tuesday Dec 31st, 2013 at 7:10 am #62296 | |
|
|
And a working example:
|
|
Posted: Tuesday Dec 31st, 2013 at 6:44 am #62295 | |
|
|
Here’s my final (and much better) solution: The shortcode:
To get this to work requires some hacks to s2Member php files: I added this to /plugins/s2Member/includes/functions/api-functions.inc.php
And modified line 63 in /plugins/s2Member/includes/classes/sc-if-conds-in.inc.php:
|
|
Posted: Tuesday Dec 31st, 2013 at 5:51 am #62293 | |
|
|
Here’s what I wanted to achieve: I have buddypress installed and URI restricted to level 1 users. However, I want level 0 users to be able to access a similar, non buddypress page. When a level 0 tries to access the buddypress page, they get redirected to the membership options page. What I was hoping to do was query the URI and if they had tried to access the buddypress page, then redirect them from the MOP to the non buddypress equivalent. This works by putting this shortcode in the MOP.
This works but it’s a really dirty hack because it means the Membership Options Page has to load before it redirects. |
|
Posted: Tuesday Dec 31st, 2013 at 5:31 am #62292 | |
|
|
The $ symbol is set in s2Member > PayPal Options > Signup Confirmation Email: Subscr. ID: %%subscr_id%% I haven’t yet found a way to change it on-the-fly so the easiest option would be to remove the currency symbol all together. |
|
Posted: Tuesday Dec 31st, 2013 at 5:18 am #62291 | |
|
|
Made my own:
|
|
Posted: Tuesday Dec 31st, 2013 at 4:27 am #62287 | |
|
|
Try this:
|
|
Posted: Monday Dec 30th, 2013 at 4:15 pm #62253 | |
|
|
I’ve renamed the topic title so that it reflects the content |
|
Posted: Monday Dec 30th, 2013 at 4:13 pm #62252 | |
|
|
Duh!!! Like you said Bruce, everything appears to be working fine. I just issued a refund via paypal and the account was demoted to free subscriber. I’d pulled everything apart for nothing!!! Oh well, at least I learnt a few things in the process. The problem was caused by my understanding of what the phrase “End of term” meant. In my mind it meant when the next payment was due. Once I (eventually) realised that it doesn’t mean the end of this payment period, everything became clear. An amazing plugin guys, congratulations to all who have been involved in its creation. |
|
Posted: Sunday Dec 29th, 2013 at 6:47 pm #62246 | |
|
|
Don’t apologies Bruce, I’d be in real bother if I wasn’t able to realise that Custom Capabilities were stored in Custom Capabilities (Packages)! As I said, I was looking at s2Member in a child blog which (in my installation) doesn’t have Custom Capabilities (Packages). Custom Capabilities are restricted to the parent blog only. Similarly, all ccap shortcodes in ProForms etc aren’t visible in child blogs. Getting ccaps working was straight forward enough though so not an issue and I completely understand why they should be hidden from child blogs, in fact I’m glad that they are.
If my understanding of what I read in
is correct, that’s because you get better customer satisfaction by allowing a grace period right? I changed the grace period to 300. Once the site goes live I’ll up the grace period to 1 week, but during dev, I thought 5 mins would be sufficient for s2 and PayPal to talk to each other?
WOAH!!! Ahah! Duh! If that is right, that’s cool, I get that, but… forgive me if I’m being stupid here, after a level-1-user registers (with a 1 year recurring membership), do I have a mechanism to show them when their next (i.e. the first recurring payment) is due? Shouldn’t the EOT be populated as soon as the first payment is made?
What if I cancel (refund) a subscription via PayPal, should s2Member get notification almost immediately then? And if it does, I presume it will honor the grace period, but not the EOT right? |
|
Posted: Sunday Dec 29th, 2013 at 4:08 pm #62233 | |
|
|
Sigh… I’ve been banging my head against this all day and not made any progress whatsoever :( Further to my previous post, I found that the reason I wasn’t seeing anything related to custom capabilities is because I was working in a child blog. All the custom capability stuff is only available to the primary blog. Anyway, that’s not my problem, the problem is that I can’t get the EOT to work. Or more specifically, the field is always empty. I’ve tried deleting all my PayPal options and copying them from paypal again. P.S. It works fine for one off payments, but not for recurring payments. Although that’s most likely because s2Member calculates EOT for one-off payments itself and doesn’t rely on IPN. I’m at a loss what else to try, any pointers very much appreciated. |
|
Posted: Sunday Dec 29th, 2013 at 12:07 pm #62229 | |
|
|
Wow, thanks Bruce. Really appreciate your taking the time to give me a full response. Your solution seems to be working perfectly and I’m able to access all of the custom capabilities:
However… Before diving right in I thought I’d follow your advice and read up about ccaps in the Dashboard but found that
Doesn’t exist. Most of the PayPal ProForm shortcodes are explained here, but not ccaps:
As I said, it seems to be working for me though. My only problem now is that I no longer seem to be receiving the EOT from PayPal. And, when a level-1-user cancels their subscription, their recurring payment is cancelled in PayPal, but nothing appears to happen on site. Q1) Is this likely to be a configuration error, or should I allow more time for communication between s2member and PayPal? P.S. For anybody else who arrives at this topic, you can also find out which Pro Form was used during checkout by looking at your PayPal account.
|
|
Posted: Saturday Dec 28th, 2013 at 6:08 pm #62217 | |
|
|
In s2Member > PayPal Pro Forms > Wrapping Multiple Shortcodes, you’ll find this solution: It is also possible to link to a Pro Form and pre-select a specific Checkout Option that appears in the list. Starting from the first Checkout Option in the list (we call this Checkout Option 1) you can choose which Checkout Option number you want to have selected by default. This is accomplished by linking to any Post/Page on your site which contains a Pro Form Shortcode; and then adding the ?s2p-option= variable onto the end of that URL (as seen below). This example would pre-select option 2.
The absolute default Checkout Option is always the first one (Checkout Option 1).
|