Community Support Forums — WordPress® ( Users Helping Users ) — 2012-01-26T03:55:06-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=608 2012-01-26T03:55:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=61597#p61597 <![CDATA[Re: Using S2Member for Donations/Supporter system]]>
let me point out an issue with the _s2member-bbpress-bridge.zip file above. I was just having some issues using it, so I thought I'll share my experience. It does not work with iPad.

The issue is that it's using 301 redirections. And iPad likes to cache that. So here is what happens when you try to open forums on iPad:
1. you open the site
2. you click "Forum" or similar link
3. you are redirected to "subscribe" page - iPad will cache that, as it was a 301 redirection
4. you realize you are not logged in, so you log in
5. you click "Forum" again
6. iPad will show what is cached - will load the "subscribe" page right away. So there is no way to refresh.
7. you have to go to settings and clear Safari cache.
8. then it loads.

The fix is simple - you need to change all the 301 codes to 302. It took me a bit to figure it out, but now it work. iPad won't cache 302 redirection. There might be more devices working like this.

I hope you find this fix useful.

Thanks,
Martin

Statistics: Posted by foliovision — January 26th, 2012, 3:55 am


]]>
2012-01-25T18:40:22-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=61568#p61568 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> http://downloads.wordpress.org/plugin/s ... 110815.zip

Inside the ZIP, grab this file:
/s2member/includes/dropins/bridges/_s2member-bbpress-bridge.php
(copy this into your bbPress plugins directory, and edit the configuration section of this file at the top)

I'm also attaching this file for you.
_s2member-bbpress-bridge.zip
* But please note. We no longer support bbPress v1.x. I don't think you'll have any trouble. But if you do, please upgrade to bbPress v2.x (i.e. the new plugin version of bbPress for WordPress).

Statistics: Posted by Jason Caldwell — January 25th, 2012, 6:40 pm


]]>
2012-01-25T18:22:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=61567#p61567 <![CDATA[Re: Using S2Member for Donations/Supporter system]]>
I hope that helps. :)

Statistics: Posted by Cristián Lávaque — January 25th, 2012, 6:22 pm


]]>
2012-01-24T14:19:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=61424#p61424 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Thanks for the heads up on this thread.

This will work with bbPress 2.0+, but s2Member no longer supports the stand-alone version of bbPress 1.x. That being said, yes, bbPress stand-alone (when/if integrated with WordPress via the older s2Member Bridge plugin) will support this as well. So yes.

The older s2Member -> bbPress Bridge is no longer supported though.
We recommend using the plugin version of bbPress v2.0+.

Statistics: Posted by Jason Caldwell — January 24th, 2012, 2:19 pm


]]>
2012-01-20T15:30:07-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=61126#p61126 <![CDATA[Re: Using S2Member for Donations/Supporter system]]>
Thanks!

Statistics: Posted by colinjones — January 20th, 2012, 3:30 pm


]]>
2010-09-07T20:40:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=3008#p3008 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Awesome guys. ~ Thanks for posting those great code samples.
~ Much appreciated.

Just thought I would throw this out there as well.
s2Member v3.2.4+ adds a new function to WordPress® as well:
current_user_is()

So for instance, you could do this:
Code:
if(current_user_is("administrator")){
    // do something here
} else if(current_user_is("s2member_level0")) {
    // do something here
} 

Another option is this method:
Code:
$user = new WP_User($user_id);
// Or:  new WP_User($username);

if($user->has_cap("administrator")){
    // do something here
} else if($user->has_cap("s2member_level0")){
    // do something here
} 

In other words, the ->has_cap() method will accept either a Capability, or also a specific Role ID.

Here are the different Role IDs.
Code:
administrator
editor
author
contributor
subscriber
s2member_level0
s2member_level1
s2member_level2
s2member_level3
s2member_level4

And here are the different s2Member Capabilities.
Code:
access_s2member_level0
access_s2member_level1
access_s2member_level2
access_s2member_level3
access_s2member_level4

also see: http://codex.wordpress.org/Roles_and_Capabilities

Statistics: Posted by Jason Caldwell — September 7th, 2010, 8:40 pm


]]>
2010-09-05T13:45:50-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2921#p2921 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Statistics: Posted by BoweFrankema — September 5th, 2010, 1:45 pm


]]>
2010-09-04T08:07:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2910#p2910 <![CDATA[Re: Using S2Member for Donations/Supporter system]]>
Code:
function my_user_role(){
$ID=bp_displayed_user_id();;
$user = new WP_User($ID);

if ($user->wp_capabilities['administrator']==1)
echo '<p>Admin Badge Code</p>';
else if ($user->wp_capabilities['author']==1)
echo '<p>Author Badge Code</p>';
else if ($user->wp_capabilities['s2member_level0']==1)
echo '<p>WOW</p>';
else if ($user->wp_capabilities['s2member_level2']==1)
echo '<p>WOW1</p>';
else if ($user->wp_capabilities['s2member_level3']==1)
echo '<p>WOW2</p>';
else if ($user->wp_capabilities['s2member_level4']==1)
echo '<p>WOW3</p>';
else
echo '<p>Regular User</p>';
}


It works. Is it a good way to go?

Statistics: Posted by chrisk2020 — September 4th, 2010, 8:07 am


]]>
2010-09-04T04:25:57-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2907#p2907 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Statistics: Posted by chrisk2020 — September 4th, 2010, 4:25 am


]]>
2010-09-03T19:06:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2903#p2903 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Statistics: Posted by BoweFrankema — September 3rd, 2010, 7:06 pm


]]>
2010-09-03T11:57:05-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2899#p2899 <![CDATA[Re: Using S2Member for Donations/Supporter system]]>
I'd like to do something similar to this:

Level 2: Supporter! about $2,99 per month and gives the user a Badge on his avatar (should be possible using S2Member conditionals I think?)


Show a different badge for the user depending on their subscription level. Can you expand a little on how to achieve this. I've looked at the conditionals, but I can only see how to show the user level of the Viewing user. Not the user whose profile is being viewed.

Thanks,
appreciate any help.

Statistics: Posted by chrisk2020 — September 3rd, 2010, 11:57 am


]]>
2010-09-01T03:21:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2832#p2832 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Thanks Bowe.

Statistics: Posted by Jason Caldwell — September 1st, 2010, 3:21 am


]]>
2010-08-31T18:27:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2798#p2798 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> ).

Thanks :D

Statistics: Posted by BoweFrankema — August 31st, 2010, 6:27 pm


]]>
2010-08-29T23:38:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2654#p2654 <![CDATA[Re: Using S2Member for Donations/Supporter system]]> Great to hear from you again.
~ Thanks for your support.


Level 1: Free. Access to all the regular stuff including Blog creation etc.

Gotchya. Yes, s2Member is fully compatible with Multisite Networking now * yea!


Level 2: Supporter! about $2,99 per month and gives the user a Badge on his avatar (should be possible using S2Member conditionals I think?)

Correct. Requires some minor tweaks to your BuddyPress theme.


and access to a VIP forum,

What forum are you using? BuddyPress forums? bbPress? phpBB?


and hopefully to some cool widgets/plugins for their blog (hopefully that will be added to the WP Multisite features in the future?).

s2Member Pro includes a new Login Widget + Profile Summary ( very cool ),
~ but I'm not sure what you mean exactly on this topic?


Level 3: Sponsor: This is for companies/organizations and is a bigger donation on a monthly basis. This means that they are listed on a special thank you page, and they'll receive some goodies like a t-shirt or something, and are mentioned in a newsletter.

Right. So you'll need some custom theme work here to pull a members list and it sounds like you may also want to use s2Member's Custom Capabilities for parts of this functionality.

The most important thing is that it's easy to sign up, you don't need a PayPal account and it should all be easy to manage from both sides (user and admin). So S2Member Pro is absolutely great for this, but I need some help with setting everything up. Do you think the above can be achieved with S2Member?

Yes, s2Member Pro can definitely handle this. You'll need a PayPal® Pro account first, and then if you need help getting s2Member configured to deal with all of your requirements here, please send an email through this page; and please include a link referencing this thread. ~ Thanks.

Statistics: Posted by Jason Caldwell — August 29th, 2010, 11:38 pm


]]>
2010-08-24T17:02:49-05:00 http://www.primothemes.com/forums/viewtopic.php?t=608&p=2563#p2563 <![CDATA[Using S2Member for Donations/Supporter system]]>
I've been following S2Member from the first public release, and you might remember me from some BuddyPress related comments I placed in the comment section of the plugin page (which is now closed down, and replaced by a forum). You said that I could email you if I'd have ideas or suggestion for S2Member and/or had questions. I've been working on a non-profit project for quite some time now, and basically I would like to use S2member differently then the standard "paywall". Sadly I lost your email, so I thought I'd post on the forum instead, since you're here all the time :shock:

I'm working on a social network (BuddyPress/WordPress powered) for people with Cystic Fibrosis (http://en.wikipedia.org/wiki/Cystic_fibrosis) and would like to use S2Member for donations and a "supporter" system.

I would like to use the different user levels in S2Member as "donation" levels. Which means that I would like to allow individuals AND companies to become subscribers to our cause; A social network for people with Cystic Fibrosis.

I've thought of setting it up like this:

Level 1: Free. Access to all the regular stuff including Blog creation etc.

Level 2: Supporter! about $2,99 per month and gives the user a Badge on his avatar (should be possible using S2Member conditionals I think?) and access to a VIP forum, and hopefully to some cool widgets/plugins for their blog (hopefully that will be added to the WP Multisite features in the future?).

Level 3: Sponsor: This is for companies/organizations and is a bigger donation on a monthly basis. This means that they are listed on a special thank you page, and they'll receive some goodies like a t-shirt or something, and are mentioned in a newsletter.

The most important thing is that it's easy to sign up, you don't need a PayPal account and it should all be easy to manage from both sides (user and admin). So S2Member Pro is absolutely great for this, but I need some help with setting everything up. Do you think the above can be achieved with S2Member?

I'm happy to pay something for setting this up, and I've emailed to the support team, but they did not really respond to my email (only the price and that there was a new version available) and I would like to know first if S2Member can do the above, and it's very important for my project.

Looking forward to a reply and keep up the great work with S2Member!

Greetings,
Bowe

Statistics: Posted by BoweFrankema — August 24th, 2010, 5:02 pm


]]>