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.

Raam Dev

Staff Member

My Latest Replies (From Various Topics)

Viewing 25 replies - 1,051 through 1,075 (of 2,567 total)
Author Replies
Author Replies
Posted: Thursday Aug 16th, 2012 at 6:34 am #22186
Raam Dev
Username: Raam
Staff Member

OK, so that means you’re having an issue with WP-Cron, the WordPress cron-functionality. I’m not sure what might be wrong with it, but you might want to consult with the WordPress.org Support Forums to see if they can offer any suggestions.

For now, I recommend manually creating your own Cron Job through your web host (most web hosts have a control panel where you can create a cron job). Simply change Dashboard -› s2Member® -› PayPal® Options -› Automatic EOT Behavior -> “Yes ( but, I’ll run my own Cron Job )” and then follow the instructions in the paragraph above the drop-down box.

Posted: Thursday Aug 16th, 2012 at 6:23 am #22185
Raam Dev
Username: Raam
Staff Member

Hi Kimberley,

I’m not sure about future features. It’s certainly possible to create a form where an Facebook/Twitter login is used to create the account. s2Member users are WordPress users. The only difference is that the user would be assigned an s2Member role (s2member_level0, s2member_level1, s2member_level2, etc.). Any PHP programmer that is familiar with WordPress customizations should be able to develop this feature for you.

Posted: Thursday Aug 16th, 2012 at 6:17 am #22184
Raam Dev
Username: Raam
Staff Member

Antonio,

Could you please post the full log entries for that transaction from all the log files in plugins/s2member-logs/? Please x-out any private information (such as email addresses).

Posted: Thursday Aug 16th, 2012 at 6:09 am #22183
Raam Dev
Username: Raam
Staff Member

Hi Mark,

Hopefully we’ll have a beta out within the next month or so.

Posted: Wednesday Aug 15th, 2012 at 8:55 am #22088
Raam Dev
Username: Raam
Staff Member

Great, thank you for the update! :)

Posted: Wednesday Aug 15th, 2012 at 8:53 am #22086
Raam Dev
Username: Raam
Staff Member

Hi Kimberley,

Facebook/Twitter account integration is not currently a feature of s2Member, however s2Member uses the WordPress authentication system so you might be able to find a 3rd party WordPress plugin that provides that functionality and then see if it works with s2Member.

If you absolutely need this functionality, I recommend posting your job on jobs.wordpress.net to hire a programmer that can do this for you.

Posted: Wednesday Aug 15th, 2012 at 8:51 am #22084
Raam Dev
Username: Raam
Staff Member

Hi Angela,

When you say you want to “use the user profile template that bbpress provides instead of having to create another one”, are you referring to when a customer makes a purchase with a Pro-Form? If so, then no, that’s not possible without extensive modifications to the code. s2Member uses the WordPress user base for all access, so it’s heavily integrated in that regard.

Regarding the Formidable plugin integration: You might be able to set your s2Member Membership Options Page (Dashboard -› s2Member® -› General Options -› Membership Options Page) to the page where your Formidable form is located. That way, when someone tries accessing a restricted page, they will be redirected to the page where you have your Formidable form.

Posted: Wednesday Aug 15th, 2012 at 8:45 am #22082
Raam Dev
Username: Raam
Staff Member

Hi Michelle,

The S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME returns the date in Unixtime format, so you’ll need to use the PHP mktime() function to convert a date to Unixtime so that it can be compared.

Also, if you only want to show the content for that month, you’ll need to compare a date range (greater than or equal to the 1st day of this month, earlier than or equal to the last day of this month).

I’ve updated your code example to reflect these two changes:

<?php
if (current_user_is('s2member_level1') && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME >= mktime(0, 0, 0, 8, 1, 2012) && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME <=  mktime(0, 0, 0, 8, 31, 2012)) {
    echo 'This is the content for this month. Here is the link';
} 

if (current_user_is('s2member_level1') && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME >= mktime(0, 0, 0, 7, 1, 2012) && S2MEMBER_CURRENT_USER_PAID_REGISTRATION_TIME <=  mktime(0, 0, 0, 7, 31, 2012)) {
    echo ' This is the content for last month. Here is the link.';
} 

else {
    echo 'Sorry – you need to be a member to see this content.';
}
?>
Posted: Wednesday Aug 15th, 2012 at 8:18 am #22074
Raam Dev
Username: Raam
Staff Member

Hi Reeny,

You could modify the Pro-Form Template for Specific Post/Page Pro-Forms in
plugins/s2member-pro/includes/templates/forms/paypal-sp-checkout-form.php.

Posted: Wednesday Aug 15th, 2012 at 8:09 am #22071
Raam Dev
Username: Raam
Staff Member
Posted: Wednesday Aug 15th, 2012 at 8:08 am #22070
Raam Dev
Username: Raam
Staff Member

Hello,

Unfortunately there isn’t any easy way to list the Custom Capabilities that a user has purchased. However, you could retrieve the user’s capabilities and then list those with some PHP, but this would require some custom PHP programming.

If you absolutely require this feature, we recommend posting your job on jobs.wordpress.net.

Posted: Wednesday Aug 15th, 2012 at 8:01 am #22068
Raam Dev
Username: Raam
Staff Member

This email notification is very basic, so HTML may not work here, but you can try this:

function user_role_update( $user_id, $new_role ) {
        $site_url = get_bloginfo('wpurl');
        $user_info = get_userdata( $user_id );
        $to = $user_info->user_email;
        $subject = "Ditt medlemsskap i TAN er nå aktivert!";
        $message = "Hei " .$user_info->display_name . ", din bruker på NewUtd.no er nå blitt oppgradert til medlem.
<p>
Du kan nå logge inn på medlemssiden og lese medlemsblader, laste ned høydepunkter, delta i konkurranser og så videre.
<p>
Medlemspakken med det første medlemsbladet, plakat og medlemskort blir sendt ut i september. De to andre bladene blir gitt ut i desember og mai.
<p>
Med vennlig hilsen
NewUtd-teamet";
        wp_mail($to, $subject, $message);
}
add_action( 'set_user_role', 'user_role_update', 10, 2);

I removed the username and password part of your example because those are not accessible at this point in the code. The password has already been set by the user and the password cannot be retrieved and displayed here.

Regarding translations, the Translating WordPress page may contain some helpful info.

Posted: Wednesday Aug 15th, 2012 at 7:46 am #22065
Raam Dev
Username: Raam
Staff Member

Hi Mary,

You can use the [s2Member-Profile /] shortcode to offer this (see Dashboard -› s2Member® -› General Options -› Member Profile Modifications).

Alternatively, you could just point them to the default WordPress lost password page (/wp-login.php?action=lostpassword), which will ask them for their Username and then email them a password reset link. When they click that link, they will be asked to create a new password.

Posted: Wednesday Aug 15th, 2012 at 7:41 am #22064
Raam Dev
Username: Raam
Staff Member

1.-My thank you page is restricted with the “specific post/page restriction” with a clickbank button pointing to that page and works perfect. if the paypal pro-form is in that page, only the customer would be able to register.
I´m Wrong?

Yes, that is correct. Only those who purchased the Specific Post/Page would have access to that Pro-Form if it’s on the same page as the Specific Post/Page that you’ve protected.

2.-If a customer visits the thank you page (after a previous registration), is there any way to “hide” or block the registration form?

You could use Advanced PHP Conditionals to check if the user is logged in and then hide that registration form if they are: Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals

Posted: Wednesday Aug 15th, 2012 at 7:34 am #22062
Raam Dev
Username: Raam
Staff Member

It sounds like there might be a problem with your WP-Cron automatically processing the EOTs.

Let’s try this test: Try loading the following URL in your browser. It should force the EOT system to process any users whose accounts have an Automatic EOT Time in the past:

http://yoursite.com/?s2member_auto_eot_system_via_cron=1

After you load that URL (changing ‘yoursite.com’ to your site’s URL), check if the users who should’ve been demoted have been demoted.

Posted: Wednesday Aug 15th, 2012 at 7:23 am #22061
Raam Dev
Username: Raam
Staff Member

Saskia,

If you can submit your login details using the Private Contact Form, we’ll take a look.

Posted: Wednesday Aug 15th, 2012 at 7:03 am #22060
Raam Dev
Username: Raam
Staff Member

Hi Adam,

Did increasing the memory limit fix the problem?

If you’re getting an error 500, that would indicate a possible problem with the server configuration and you might want to check with your web host about that. Have you tried disabling s2Member to see if that’s even causing the problem?

Posted: Wednesday Aug 15th, 2012 at 6:45 am #22059
Raam Dev
Username: Raam
Staff Member

Hi Manvender,

While s2Member is compatible with WordPress Multisite Networking, the sites within a WordPress network are separate and not interconnected. That means you cannot share users, logins, or other data across the sites (including access control).

Please see the following from WordPress.org:

The sites in a multisite network are separate, very like the separate blogs at WordPress.com. They are not interconnected like things in other kinds of networks (even though plugins can create various kinds of interconnections between the sites). If you plan on creating sites that are strongly interconnected, that share data, or share users, then a multisite network might not be the best solution.

The s2Member Multisite feature allows you to offer the s2Member plugin to sub-sites, giving your sub-sites the ability to setup and use s2Member on their own. When you upgrade s2Member on the primary site, the s2Member plugin is automatically updated for all your sub-sites. However, things like access restrictions on one WP installation are not shared across WP installations (again, the WordPress Multisite feature itself isn’t designed to work like that).

There are plugins that allow you to get around these WordPress Multisite limitations, however they may or may not work with s2Member.

Each site that uses s2Member is entirely separate from the other sites, even within a multisite network. So if you have two sites, one for Bikes and one for Cars, then each site will send its own emails and have its own users.

Posted: Tuesday Aug 14th, 2012 at 10:00 am #21993
Raam Dev
Username: Raam
Staff Member

Hi Nordin,

The code should go at the bottom, before the ?> tag. Also, there should be no spaces after that ?> tag. If that still doesn’t fix it, you may want to enable WordPress debugging to see if you can see some error messages instead of the white page

Regarding translations: Have you tried this plugin instead of POEdit? Also, have you read this article and this one?

Posted: Tuesday Aug 14th, 2012 at 9:53 am #21991
Raam Dev
Username: Raam
Staff Member

Hi David,

You can do this by creating a Custom Registration Field for Website and then syncing that field with the WordPress website field upon submission of the registration form. Please see this thread for more information.

Posted: Tuesday Aug 14th, 2012 at 9:47 am #21989
Raam Dev
Username: Raam
Staff Member

Hi David,

Please see s2Member® » Terms » Refund Policy.

If you’d like to lodge a dispute, please use the Private Contact Form.

Posted: Tuesday Aug 14th, 2012 at 9:46 am #21988
Raam Dev
Username: Raam
Staff Member

Can you confirm that the user is signing up with Level 1 or higher? If the user is signing up at Level 0, then there won’t be a lower level to demote them to (Level 0 is the lowest level). You will only see someone get demoted if they signed up at Level 1 or higher.

Posted: Tuesday Aug 14th, 2012 at 9:43 am #21986
Raam Dev
Username: Raam
Staff Member

Hi Scott,

I’m not sure what’s happening on your end, but I copied and pasted your data from above into a Custom Registration Field on my test site and sure enough it showed up as expected on the registration form:

Have you tried clearing your browser cache? I’d also suggest trying this from another web browser to see if that’s causing the problem.

Posted: Tuesday Aug 14th, 2012 at 9:37 am #21984
Raam Dev
Username: Raam
Staff Member

Hi Gillian,

Your scenario is certainly going to require some complex management, but s2Member can handle it. For your scenario, I would recommend using Custom Capabilities to designate the different types (police, fire, etc.).

So, a member would subscribe to a specific Level and get a specific Custom Capability. All members with the ‘police’ Custom Capability would be for the police material, and that member could be at Level 0, 1, 2, or 3, etc. This way, Levels don’t determine the type (police, fire, etc.) but instead Custom Capabilities determine the type.

With this system, you’d need to make heavy use of the s2Member Advanced PHP Conditionals (see Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals) to check Levels and Capabilities and only give access to the content associated with each combination (Level 1 & ccap ‘police’; Level 2 & ccap ‘police’; Level 1 & ccap ‘fire’; Level 2 & ccap ‘fire’; etc.).

Posted: Tuesday Aug 14th, 2012 at 9:29 am #21983
Raam Dev
Username: Raam
Staff Member

Thank you for the update, Echo! Glad to hear you figured it out. :)

Viewing 25 replies - 1,051 through 1,075 (of 2,567 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.