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.

Home Forums Bruce

Bruce

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 151 through 175 (of 2,703 total)
Author Replies
Author Replies
Posted: Thursday Aug 8th, 2013 at 11:03 pm #55466
Bruce
Username: Bruce
Staff Member

1. The club’s membership ends on a set date, regardless of when a member joins. Can s2 allow for a defined membership end date?

s2Member makes it possible to change the term of the membership, which makes this possible. However you have to make your own system to handle telling s2Member what the subscription term is if you want to do this. There are examples of how you can accomplish this in these threads from the old s2Member forums:

http://www.primothemes.com/forums/viewtopic.php?f=4&t=15619&p=48791#p48791
http://www.primothemes.com/forums/viewtopic.php?f=4&t=6437&p=15261#p15139

2. Members need to be auto-assigned to BuddyPress groups based on their self-selected pace groups. Can s2 auto-assign users to BuddyPress groups?

s2Member doesn’t have a way to do this automatically. I’m not familiar with the procedure for this but I know that Users in the past have achieved this.

3. The club gives discounts when families join the club together. I’m open to suggestions, but my immediate solution would be to use coupon codes to allow subsequent family members to register at a discount. Only thing is that, to prevent abuse, the coupon codes need to be either unique or somehow linked to a full-price member. Does s2 have a way to link memberships?

No s2Member does not offer the capability to link multiple accounts, but you can have multiple pricing options with Pro Forms.

4. This is more for me than for them, but after suffering through a crap database design, I need to be sure s2 stores all member data (in addition to name, address, email, and phone, there’s stuff like t-shirt size, emergency contact information, pace group, etc.) in something resembling a normalized database. I know I’ll have to build custom queries for some other features outside the membership plugin’s scope, and I need to know that I’ll be working with a sane database design.

s2Member stores all of these values in a single Usermeta value in a serialized array in your usermeta table in your database. While this is not ideal for your uses, it is pretty simple to access. You can get all of the information as an array like this:

$custom_fields = get_user_option('s2member_custom_fields');

Updating a custom field value would look like this:

$custom_fields = get_user_option('s2member_custom_fields');
$custom_fields['country'] = $newcountry;
update_user_option($user->ID, 's2member_custom_fields', $custom_fields);
Posted: Thursday Aug 8th, 2013 at 10:58 pm #55464
Bruce
Username: Bruce
Staff Member

Surely it must be possible to do a more sophisticated solution. When I’m not logged in WP only returns the unprotected posts but when logged in it returns both unprotected and S2 protected posts. Why is it not possible for the get_posts or WP_Query to only return S2 protected posts? Logically it must be possible to set the $args parameters for this, surely?

WordPress’s post queries do not take into account custom Post meta values (which is what s2Member uses to decide on if a Post/Page is protected) as far as I know. If you wanted to achieve that you’d need to create a custom SQL query using Regex, because s2Member stores its protections in a serialized array string, to accomplish this by looking at s2Member’s fields in your postmeta table, and that would be far more complicated than my above solution, as well as (probably) slower.

Posted: Thursday Aug 8th, 2013 at 10:52 pm #55463
Bruce
Username: Bruce
Staff Member

I can see the correct fields when viewing /wp-login.php?action=register but the problem is that I cannot edit it anymore in s2Member > General Options > Registration/Profile Fields & Options.

Sorry to hear you’re having problems. Could you screenshot this portion of your Dashboard so we can see what it looks like? I can confirm that it’s working correctly in a default installation of WordPress.

See: Dashboard -› s2Member® -› General Options -› Registration/Profile Fields

Posted: Thursday Aug 8th, 2013 at 10:50 pm #55462
Bruce
Username: Bruce
Staff Member

i guess somehow something might have gotten corrupted somehow. The issue seems to have been resolved.

Thanks for the update. I’m unsure what could have caused this, other than s2Member Pro not loading properly. Perhaps a file did not get uploaded properly when you uploaded s2Member, assuming that you updated via FTP.

Were you able to update s2Member and s2Member Pro when you rolled back your server?

Posted: Thursday Aug 8th, 2013 at 10:34 pm #55459
Bruce
Username: Bruce
Staff Member

… So my original question may better have been, “How can I isolate that single div to be dynamic, whilst retaining the rest of the page as static and, therefore, caching? Using fragment caching, perhaps?”

I’m not familiar with fragment caching myself, but I support this might work, in theory. I’m not totally sure how this works as I’ve never worked with it, but it may cause issues with the way s2Member’s Pro Forms work. I would suggest you ask W3 Total Cache’s team about doing this, maybe they have more information on it.

Posted: Thursday Aug 8th, 2013 at 10:31 pm #55458
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

The customer logs in to what I have been calling a “User Dashboard” where they can finish their user profile, view the services they selected, complete a Job History and Education form, submit tickets as a means for communication and file transferring between admin and customer, as well as change their own password. All this while keeping the user’s personal data, their Dashboard, secure and private from others.

It sounds like you may be able to use s2Member’s Login Welcome Page in conjunction with some custom code to accomplish this with s2Member.

s2Member is capable of providing this information to a User on the Login Welcome Page, which is one of two Pages that you need to create to use s2Member. This page can be customized however you’d like, and you can use custom code or anything you’d like to make your Login Welcome Page work the way you’d like.

s2Member provides some PHP Constants with information for the User that can be access with the s2Member Shortcode, s2Get, as well as the ability to provide Users with a pre-created form for editing their Profiles with the Profile Modification Pro Forms. Both of these things can be useful for creating a “User Dashboard” as you’d like.

Some things that you’ll need your developers to set up even with s2Member:

  • The ability to submit tickets has to be done custom, or with something like a contact form plugin. This plugin is one that I heard good things about and I’ve seen it used alongside s2Member in the past:

    http://wordpress.org/plugins/contact-form-7/

  • The “Job History and Education” portion of your Dashboard may or may not be able to be accomplished with s2Member’s Custom Registration Profile Fields, available here:

    Dashboard -› s2Member® -› General Options -› Registration/Profile Fields

    If you only want basic functionality here, s2Member should be able to handle this. However, if you’re looking for something similar to forms on sites such at elance.com or other freelance sites, where there are fancy checks and JavaScript that makes this section very intuitive, s2Member is not designed to make this possible.

All this while keeping the user’s personal data, their Dashboard, secure and private from others.

s2Member will always protect the Login Welcome Page, and because this Page will change based on which User is accessing it, using the Constants I mentioned earlier, it will be totally secure.

I hope that clears things up a little, let me know if you have any further questions. :-)

Posted: Thursday Aug 8th, 2013 at 8:26 pm #55455
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

s2Member sets this DONOTCACHEPAGE any time that a Shortcode is used and in all processes that are User-specific or may be dynamic. It’s important that this happens because a Page that’s cached may prevent a User from doing something like edit their profile, or check out via Pro Form.

While caching can speed up your site, you don’t want to cache any Post/Page that has dynamically-generated data in it. That’s why this constant is set.

This is required also for Users that are logged-out because you wouldn’t want to cache Post/Page data that was generated when a User was logged in which is possible.

Posted: Thursday Aug 8th, 2013 at 8:22 pm #55454
Bruce
Username: Bruce
Staff Member

Thanks for your inquiry.

Sorry, but we can’t do this. It’s a WordPress limitation. Values related to your account reference your username, so it’s not possible to change your Username after signup on any installation of WordPress without some other Plugin to achieve it, which can be risky to use.

Sorry about that.

Posted: Thursday Aug 8th, 2013 at 8:20 pm #55453
Bruce
Username: Bruce
Staff Member

I recently upgraded to 130802 and now can’t see any authorize.net options…. also, my registration form which was previously authorize.net is no longer working as well. HELP PLEASE!!!!

Sorry to hear that you’re having trouble. Is the Authorize.Net menu not showing up at all, or is it just not possible to see any of the options? Can you show us a screenshot of the problem?

Also, did you have Deactivation Safeguards enabled?

See: Dashboard -› s2Member® -› General Options -› Deactivation Safeguards

Posted: Thursday Aug 8th, 2013 at 6:25 pm #55452
Bruce
Username: Bruce
Staff Member

It’s really strange. My wordpress already has french translation. When I open the .po file I find the translations of labels.

Hm, I’m not sure what might cause this. If you look into the WordPress file wp-login.php, you can see that the Username and Passwords are translatable. I’d recommend taking this over to the WordPress.org Forums:

http://wordpress.org/support/

Posted: Thursday Aug 8th, 2013 at 5:07 am #55407
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

I’m sorry could you be a bit more specific? What Shortcode are you using? Are you using PayPal Pro or PayPal Standard? Do you know if you’re using a Payflow-style account or a regular account?

Check out this Knowledge Base article for info on Payflow vs non-Payflow: Knowledge Base » PayPal® Compatibility (Account Types)

Do you have logging enabled already?

Posted: Thursday Aug 8th, 2013 at 5:01 am #55406
Bruce
Username: Bruce
Staff Member

Is this possible? If so, how do I go about achieving this?

Yes, this is possible but you’ll need to use some fancy custom code. You can use this function to find out if a Post is protected by s2Member in PHP:

http://www.s2member.com/codex/stable/s2member/api_functions/package-functions/#src_doc_is_protected_by_s2member()

You’ll have to get your Posts, and only show the first 3 Posts that aren’t protected by s2Member that way.

That’s about as far as we can go with custom code. If you need further assistance, we recommend http://jobs.wordpress.net, or another freelance web site where WordPress® experts are offering their expertise through a bid on your project.
Posted: Thursday Aug 8th, 2013 at 4:57 am #55405
Bruce
Username: Bruce
Staff Member

I don’t know if this means that the code was less than wonderfully formed in the first place – I had to do this to the html code, obviously, as the shortcode would not have given me the opp to tweak the tag.

The reason you had to do this (probably) was due to an inconsistency in your Theme’s CSS code. In other words your theme’s styles weren’t playing nice with s2Member’s, and it caused an issue. You could’ve done this by editing your theme’s CSS as well, but this solution works just as well. :-)

Thanks for the information.

Posted: Thursday Aug 8th, 2013 at 4:49 am #55404
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

We don’t take jobs integrating payment gateways, so you’ll have to get a freelancer to set this up for you on a site such as http://elance.com/.

I couldn’t say how much a freelancer might charge for this. It would depend on how much functionality you want out of the integration and what developers you talk to, sorry.

Posted: Thursday Aug 8th, 2013 at 4:45 am #55403
Bruce
Username: Bruce
Staff Member

Sorry about the delay.

For anyone else wondering about how to accomplish this, you could use this hook:

ws_plugin__s2member_during_profile_before_table

And check to see if this global variable is set:

$GLOBALS["ws_plugin__s2member_profile_saved"]

See: Knowledge Base » Hacking s2Member® Via Hooks/Filters

Posted: Thursday Aug 8th, 2013 at 4:40 am #55402
Bruce
Username: Bruce
Staff Member

Update: fixed both problems by tweaking the settings on my security plugin. Thanks!

Cool. Let us know if you have any other problems. :-)

Posted: Thursday Aug 8th, 2013 at 4:38 am #55401
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

All you need to accomplish this is make the Shortcode create a download key for the file. You can do that by making sure this is in the Shortcode:

download_key="yes"

See: Dashboard -› s2Member® -› Download Options -› Shortcode Attributes & API Functions

Posted: Thursday Aug 8th, 2013 at 4:36 am #55400
Bruce
Username: Bruce
Staff Member

I need S2 to hide page titles from those members not permitted to see the content.
i.e. i don’t want the titles of protected pages showing up anywhere for those without suitable access level.

Thank you for your inquiry.

The way to accomplish this is with custom menus in WordPress. I actually just did this yesterday for a test site, so I can tell you that it’s not too complicated.

If you check out this section of the Dashboard, you’ll see that you can make custom menus:

Dashboard -› Appearance -› Menus

What you’ll have to do is edit your theme’s header.php file (probably) and look for the call to wp_nav_menu(). You can then use s2Member’s Advanced PHP Conditionals to decide which navigation menu to show based on if the User is logged in or their membership level. Here’s some documentation on these things:

http://codex.wordpress.org/Function_Reference/wp_nav_menu
Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals


I’m sorry if that’s not clear enough. If it’s not, there’s some sample for code in this thread:

http://www.s2member.com/forums/topic/doing-things-with-menus-based-on-member-level/#lead-topic-7626

Posted: Thursday Aug 8th, 2013 at 4:30 am #55399
Bruce
Username: Bruce
Staff Member

Cheers Bruce, have made the relevant changes, will now wait and see if it all works!

Cool. If that doesn’t work we’ll need to contact iDevAffiliate about this. So let us know! :-)

Posted: Thursday Aug 8th, 2013 at 4:29 am #55398
Bruce
Username: Bruce
Staff Member

Resolved!

I deactivated all the plugins which I thought may be interfering – I believe it was this one at fault:
WP HTTP Compression

Cool. I reviewed this thread and if that wasn’t the problem I will be happy to help you debug this further. Let us know if you need any further help. :-)

Posted: Thursday Aug 8th, 2013 at 4:27 am #55397
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

Yes. There are player_width and player_height attributes for this shortcode. You can check them out here:

Dashboard -› s2Member® -› Download Options -› Shortcode Attributes & API Functions -› Additional Shortcode Attributes

Here’s a screenshot of that section:

Posted: Thursday Aug 8th, 2013 at 4:24 am #55394
Bruce
Username: Bruce
Staff Member

Thank you for reporting this important issue.

Can you please first run this server scanner to rule out the possibility of something wrong with your server configuration?

See: Knowledge Base » s2Member® Server Scanner

This morning a client received an error message “Error #1. User authentication failed: 11452-Merchant not enabled for reference transactions…” I contacted PayPal and my account is fine. Then when I tested a transaction I got this message: “Error. Please contact Support for assistance.” Any suggestions?

Reference transactions are now required for s2Member to work with recurring payments. Try creating a Buy-Now Pro Form and test checkout that way. If it goes through and your recurring Pro Form does not, you will need to contact PayPal and have them enable reference transactions. :-)

Posted: Thursday Aug 8th, 2013 at 4:21 am #55393
Bruce
Username: Bruce
Staff Member

I don’t where I have to go to translate it. The s2member-fr_FR.mo contain the right translation.

The Username and Password labels are created within WordPress. To change these values, you have to create a WordPress translation. I believe there is already a French translation for WordPress.

Posted: Thursday Aug 8th, 2013 at 4:15 am #55391
Bruce
Username: Bruce
Staff Member

The problem is, pointing my Paypal account’s default IPN url to this script is gets ignored completely, as I’m using paypal buttons generated by s2member (using the shortcodes) which override the default IPN set in Paypal.

If you’re using buttons, then PayPal will allow you to override the IPN URL, effectively overriding the need for the central IPN script. The reason for the central IPN script is because PayPal does not make this possible with Pro Forms. I’m not sure why you need to accomplish this. Could you specify why that is, and maybe I can help you find a solution.

Posted: Thursday Aug 8th, 2013 at 4:11 am #55390
Bruce
Username: Bruce
Staff Member

Thank you for your inquiry.

or is registration the only way?

Yes, s2Member’s registration process is the only way to require a User fill out registration fields before paying for access. Users are required to fill out profile data when changing their password or other profile details but not during modification. The level-specific fields are designed for new registrations, so that you could do something like make sure that a User provides information if, say, they signed up for Free at level 0 and you wanted to make sure that they provided a favorite site.

If you have data that should be given to be used for a higher level, you should put it on all of your forms. If that won’t work for you, you’ll have to make custom changes to s2Member’s Pro Forms. You can check out information on doing that here:

Pre Sale FAQs » Is it possible to modify s2Member® Pro Form templates?

Viewing 25 replies - 151 through 175 (of 2,703 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.