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.

Free or Pro and client download tailoring.

Home Forums Community Forum Free or Pro and client download tailoring.

This topic contains 7 replies, has 3 voices. Last updated by  Tony Sturgess 4 years, 10 months ago.

Topic Author Topic
Posted: Monday Feb 20th, 2012 at 7:55 pm #5769
Tony Sturgess
Username: TSPTME

Recently installed S2member (free), an excellent system that has worked out of the box, we need to know if we have to go Pro to get the download functions we need. Our site is a Personal Training business offering; PT, Nutrition & Beauty services to clients. We would like to, with S2, offer downloads for exercise, nutrition, how to videos, photos and informative articles related to health and fitness. Inside this we would like these downloads to only be available to the client they are tailored for, i.e. client a’s exercises will be different to client b’s so we would require client a to only be able to download their own exercise program and nutrition. Videos, photos and articles can be available to all clients. Also is it possible to direct a Logged out client (s2member) back to our static PT page(s)?
client downloads will be free as it is part of there PT which is normally paid offline, non PT clients and random visitors need to be charged (paypal is fine here) for anything they wish to download.
So questions are;
1) can we make the downloads available to the associated client ONLY?
2) can we make the Logout screen return to our static web page(s)?
3) can we separate clients that will not be charged for their own downloads, as (1), from the non clients that need to pay for downloads of exercise videos and other material?
4) could our clients update their own progress somewhere or would that need to be another plugin/package?
I’m sure there will be other questions soon, if we need to go Pro to achieve the above functions please advise.

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Tuesday Feb 21st, 2012 at 12:16 am #5824
Staff Member

Hi there. Thanks for your inquiry.

Can we make the downloads available to the associated client ONLY?

This is possible in the free version, using Custom Capability Files.
Video » s2Member® File Downloads (Complete Series)

<Embed Playlist>

can we make the Logout screen return to our static web page(s)?

Yes, a logout link generated with the s2Member Pro Login widget can be customized. Or, you can use this WordPress template tag to generate a logout link of your own, with a custom redirection URL of your choosing. Please see: http://codex.wordpress.org/Function_Reference/wp_logout_url

can we separate clients that will not be charged for their own downloads, as (1), from the non clients that need to pay for downloads of exercise videos and other material?

Again, not something built right into s2Member in this exact way by default. However, s2Member’s Custom Capabilities certainly provide the framework on which to build this type of site. Here is a video that covers Custom Capabilities in much more detail.
Video » s2Member (Custom Capabilities)

4) could our clients update their own progress somewhere or would that need to be another plugin/package?
I’m sure there will be other questions soon, if we need to go Pro to achieve the above functions please advise.

Sorry, I’m not sure I understand this question, or how it pertains to s2Member.
Please feel free to elaborate some more until we understand it :-)

Posted: Tuesday Feb 21st, 2012 at 11:28 am #5876
Tony Sturgess
Username: TSPTME

4) could our clients update their own progress somewhere or would that need to be another plugin/package?
I’m sure there will be other questions soon, if we need to go Pro to achieve the above functions please advise.

Sorry, I’m not sure I understand this question, or how it pertains to s2Member.
Please feel free to elaborate some more until we understand it :-)

To explain further;
When referring to clients, these are our personal training clients that we would like to set up s2m membership area for exclusive content on articles, plans and instructional videos.
From seeing another business member area where they had a generic profile as a clipboard graphic with the ability to upload stats on their progress or a before and after picture. This does seem quite intricate but the question is will this plugin have that capability?
Our ideal scenario is anyone will be able to register and login to a level 0 ability which will ensure only those that are clients or paying new customers will see the full content at level 1, this we can see is achievable with S2M as it is but, We would then like clients to have it free and others to pay for level 1,
So the question here is how do allow clients into level 1 without paying, (because they are already paying for their Personal Training by other means) and charge for level 1 access to the public?

  • This reply was modified 4 years, 10 months ago by  Tony Sturgess.
Posted: Thursday Feb 23rd, 2012 at 3:52 am #6091
Staff Member

Hi there. Thanks for the follow-up.

Well, you could do this a number of ways.

1. Manually through the Dashboard, via the Users menu. Change the Role from Subscriber to s2Member Level #1.
2. Generate either a Modification Checkout Button, or a Modification Checkout Form. This takes care of things automatically, where the Free Subscriber is upgraded to whatever Level they purchase access to.
3. It can also be done via PHP. Please see this KB article.
Knowledge Base » Changing Roles/Capabilities via PHP

Posted: Thursday Feb 23rd, 2012 at 8:05 am #6108
Tony Sturgess
Username: TSPTME

Jason,
Many thanks for the detailed replies to date.
My son, (the founder and owner of his personal training brand) wants this function to be automatic, but he is totally not web aware, on the other hand I\’m from a computing (formally IBM mainframe) background and can create websites etc… still learning the internals of wordpress and now your excellent S2Member package.
So I think your option 1 is a task for me when my son tells me which clients to change. Alternatively I could create an upgrade button that is password protected so that the people that just want the downloads cannot upgrade to the clients material level, I think its best if I just have information about downloads on level 0 then a paypal upgrade to level 1 for the public access and download then the password protected button for the clients to upgrade to level 2 where their own information will be. Once again many thanks for your replies. Tony

Posted: Saturday Feb 25th, 2012 at 5:57 am #6403
Tony Sturgess
Username: TSPTME

Jason, or anyone else that can answer this one,

I will be using option 2 above on 1 of 2 pages that give upgrade buttons,
page 1 will have paypal buttons to upgrade to level 1
page 2 is already secret password protected before it is displayed and then it will have an upgrade button to level 2 as a non charge for existing personal training clients to upgrade.
so the questions are ;
1. Can I code shortcode for the button action on page 2?
2. What would that shortcode be, (upgrade from level 0 to level 2) ?
3. Can I see a full list of shortcodes somewhere?

Many thanks
Tony

Posted: Saturday Feb 25th, 2012 at 11:17 pm #6435

Hello Tony.

You can look at most shortcodes in the free version of s2Member. The ones missing there would be the pro-form ones, but they go very much along the lines of the button ones.

You can use PHP variables in the shortcode attributes, too, if you needed to modify the form/button dynamically. http://www.primothemes.com/forums/viewtopic.php?t=1604

By the way, for the existing members you’d like to give a free upgrade to, you can just go to their profile page and change their Level manually from there.

Actually (and I think I’m not mistaken, Jason will correct me if so), you can use a regular button for Level 2 and whatever leve the user has, as long as he’s logged in to his account when he clicks the button and pays, his account will be upgraded.

I hope that helps. :)

Posted: Sunday Feb 26th, 2012 at 7:39 pm #6474
Tony Sturgess
Username: TSPTME

Just to keep you guys and whoever else following this thread up to date;
I have more or less achieved the desired result by the following means:-
First I downloaded a piece of php script called password_protect.php from zubrag.com/scripts
this was tailored with our own password and uploaded to our root directory of our website.
Then you run this script, i.e. http://www.yourdomain.com/password_protect.php?help
which gives the protection code to include into your web page you want to password protect.
In our case the link to upgrade an s2member is for our clients that don’t need to pay and has a £0.01 payment generated with s2member paypal buttons for level2. the protection code was placed in the page for level 2 access.
All we need to do is inform our paying PT clients of this password to get to the upgrade page. If non clients use the link they can only exit the password screen via a “exit this screen’ link that redirects (logs out) to the other upgrade page that has a charge for downloads for one day only or whatever we decide to charge at a later date, the paypal button on this page was/is generated with s2member paypal buttons for level1.
It is not possible to run the level2 upgrade page any other way so the password must be entered correctly to get to level2. So we have managed to achieve our desired result.
As paypal will not accept a zero payment we had to make the charge of £0.01 for PT clients to go to level2.
If anybody can tell me the code to do this without going via paypal then please notify me.
Also the sidebar menu which lists the member options of login register or logout, update client access level, modify profile plus the downloads are all coded with [s2if …] statements;
i.e. ( { = in the following a a href’s)

    [s2If is_user_not_logged_in()]

  • {a href=”/wp-login.php”}Login{/a}
  • {a href=”/wp-login.php?action=register”}Register{/a}
  • [/s2If]
    [/s2If]
    [s2If is_user_logged_in()]

  • {a href=/wp-login.php?action=logout}Logout{/a}
  • {a href=”/clients/upgrade-silver”}Upgrade Client Access Level{/a}
  • {a href=”#” onclick=”window.open(‘http://yourdomain.com/?s2member_profile=1&#8217;, ‘_popup’, ‘width=600,height=400,left=100,screenX=100,top=100,screenY=100,location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1’); return false;”}Modify Profile{/a}
  • [/s2If]
    [s2If current_user_can(access_s2member_level1)]

  • {a href=”/?s2member_file_download=exercise/training1.pdf”}Training Program 1{/a}
  • [/s2If]

We will also place level2 s2if statements in this menu as well.
With these s2if statements level 0 can only see the first 3 member actions and no downloads.
Hope this proves useful to others.

  • This reply was modified 4 years, 10 months ago by  Tony Sturgess.
  • This reply was modified 4 years, 10 months ago by  Tony Sturgess.
  • This reply was modified 4 years, 10 months ago by  Tony Sturgess.
  • This reply was modified 4 years, 10 months ago by  Tony Sturgess.
  • This reply was modified 4 years, 10 months ago by  Tony Sturgess.
Viewing 7 replies - 1 through 7 (of 7 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.