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 - 2,026 through 2,050 (of 2,567 total)
Author Replies
Author Replies
Posted: Monday Apr 16th, 2012 at 6:34 pm #10946
Raam Dev
Username: Raam
Staff Member

Hi Christian,

You said that you have to add two lines to make it work… what two lines are those?

Posted: Monday Apr 16th, 2012 at 6:29 pm #10944
Raam Dev
Username: Raam
Staff Member

Hi Richard,

You can add the following code to your theme’s functions.php file to send an email notification upon role change:

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 = "Role changed: ".$site_url."";
        $message = "Hello " .$user_info->display_name . " your role has changed on ".$site_url.", congratulations you are now an " . $new_role;
        wp_mail($to, $subject, $message);
}
add_action( 'set_user_role', 'user_role_update', 10, 2);
Posted: Monday Apr 16th, 2012 at 6:25 pm #10942
Raam Dev
Username: Raam
Staff Member

Hi Albert,

You can edit the theme’s page.php template file and comment out or remove the following lines:

echo '<div id="page-upper-section" class="page-upper-section clearfix">' . "\n";
/**/
echo '<div id="page-share-save" class="page-share-save">' . "\n";
echo '<a class="share-save"><img src="' . esc_attr (get_bloginfo ("template_url") . "/colors/" . $GLOBALS["WS_THEME__"]["c"]["color"] . "/images/social-share-save-small.png") . '" alt="Share/Save" title="Share/Save" /></a>' . "\n";
echo '</div>' . "\n";
Posted: Monday Apr 16th, 2012 at 6:21 pm #10941
Raam Dev
Username: Raam
Staff Member
Awarded Gaper Ville the Helpful badge.
Posted: Monday Apr 16th, 2012 at 6:18 pm #10940
Raam Dev
Username: Raam
Staff Member

Frank, glad to hear it’s working now!

Philly, thank you for the help! :)

Posted: Monday Apr 16th, 2012 at 6:16 pm #10939
Raam Dev
Username: Raam
Staff Member

Hi Laura,

Without further details it’s hard to say if s2Member could be used for your scenario. Could you please explain a bit more what types of content you’d be adding and what types of restrictions would be in place?

Posted: Monday Apr 16th, 2012 at 6:15 pm #10938
Raam Dev
Username: Raam
Staff Member

Hi George and Steve,

Yes, s2Member can certainly work for your scenario. Please see the video below that explains how Client Portals would be set up:

<Embed Playlist>
Posted: Monday Apr 16th, 2012 at 6:12 pm #10937
Raam Dev
Username: Raam
Staff Member

Hi Dave,

You can disable s2Member’s Login customizations by adding the following code to wp-content/mu-plugins/s2hacks.php (create the file if it doesn’t already exist):

<?php
add_action("ws_plugin__s2member_after_loaded", "remove_s2member_login_customizations"); 
function remove_s2member_login_customizations()
    {
        remove_action("login_head", "c_ws_plugin__s2member_login_customizations::login_header_styles");
        remove_filter("login_headerurl", "c_ws_plugin__s2member_login_customizations::login_header_url");
        remove_filter("login_headertitle", "c_ws_plugin__s2member_login_customizations::login_header_title");
        remove_action("login_footer", "c_ws_plugin__s2member_login_customizations::login_footer_design");
    }
?>
Posted: Monday Apr 16th, 2012 at 5:55 pm #10935
Raam Dev
Username: Raam
Staff Member

Hi Mark,

As per our support policy, customizations and hacks like these are unsupported (please see s2Member® » Support Policy » Outside Scope). However, I will send the lead developer an email to see if he can offer any insight.

Posted: Monday Apr 16th, 2012 at 5:53 pm #10934
Raam Dev
Username: Raam
Staff Member

Hi James,

You can hide specific payment types from the Pro-Form by removing them from the accept= attribute. For example, to accept only PayPal, Visa, and MasterCard, you’d change the attribute to the following:

accept="paypal,visa,mastercard"

If you want to customize the Pro-Forms themselves, please see Pre Sale FAQs » Is it possible to modify s2Member® Pro Form templates?.

Posted: Monday Apr 16th, 2012 at 5:49 pm #10933
Raam Dev
Username: Raam
Staff Member

Hi Gaper,

You’d need to write some PHP code to calculate the expiration date based upon the registration or payment date (you could use the s2Member PHP Constant S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS; see Dashboard -› s2Member® -› API / Scripting -› PHP/API Constants for more info).

You could also use the s2Member Advanced/PHP Conditionals (Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals) to check which Custom Capability and/or Level the user currently has.

Using PHP code inside a WordPress Post/Page requires the use of a plugin such as Exec-PHP Plugin.

Posted: Monday Apr 16th, 2012 at 5:44 pm #10932
Raam Dev
Username: Raam
Staff Member

Hi Tuhin,

Yes, that’s correct. When configuring CloudFront in s2Member (Dashboard -› s2Member® -› Download Options -› Amazon® S3/CloudFront CDN Storage), just make sure you check the box that says Yes, I want s2Member to auto-configure using custom CNAMES that I’ll setup. and then enter your CNAMES in there.

Posted: Monday Apr 16th, 2012 at 5:39 pm #10931
Raam Dev
Username: Raam
Staff Member

Hi Chris,

I can understand the desire for such a feature and as I mentioned we’re working to support that functionality in the next major release of the plugin. Currently, renewal or payment failure notifications are handled by the payment gateway (e.g., PayPal sends a reminder to the subscriber notifying them of renewal, expired credit card, failed payment, etc.).

Posted: Monday Apr 16th, 2012 at 5:37 pm #10930
Raam Dev
Username: Raam
Staff Member

Hi John,

PayPal Website Payments Advanced is a new offering from PayPal. I’m sending a quick message to the lead developer (Jason) to see if he can shed any light on what the status is for s2Member support for PayPal Website Payments Advanced.

Thank you for your patience.

Posted: Monday Apr 16th, 2012 at 5:06 pm #10927
Raam Dev
Username: Raam
Staff Member

Sharon,

Thank you for updating the thread! :)

Posted: Monday Apr 16th, 2012 at 5:06 pm #10926
Raam Dev
Username: Raam
Staff Member

Thank you for updating the thread, Gaper. Glad to hear it’s working now. :)

Posted: Monday Apr 16th, 2012 at 5:05 pm #10925
Raam Dev
Username: Raam
Staff Member

You’re most welcome, Don! Glad to help. :)

Posted: Monday Apr 16th, 2012 at 5:05 pm #10924
Raam Dev
Username: Raam
Staff Member

Sharon,

Thank you for updating the thread! Glad to hear it’s working now. :)

Posted: Monday Apr 16th, 2012 at 5:04 pm #10923
Raam Dev
Username: Raam
Staff Member

Hi Roger,

Thank you for posting the solution! You can also use the following:

<a href="<?php echo S2MEMBER_LOGOUT_PAGE_URL; ?>&redirect_to=%2Fgoodbyepage%2F">Logout</a>

That would redirect you to a page called /goodbyepage/ on your site upon logout.

Posted: Monday Apr 16th, 2012 at 4:53 pm #10922
Raam Dev
Username: Raam
Staff Member

You’re welcome, Brian! Glad to help. :)

Posted: Monday Apr 16th, 2012 at 4:52 pm #10921
Raam Dev
Username: Raam
Staff Member

You’re most welcome, Tom! Glad I could help. :)

Posted: Monday Apr 16th, 2012 at 4:52 pm #10920
Raam Dev
Username: Raam
Staff Member

You’re most welcome, Jeff! Glad I could help.

Posted: Monday Apr 16th, 2012 at 4:51 pm #10919
Raam Dev
Username: Raam
Staff Member

Hi Brent,

If you want those fields to show up on the s2Member Pro forms, you’ll need to add them manually yourself. There isn’t an option to simply “include” them; you’ll need to create Custom Registration fields called Website, AIM, Yahoo, etc., manually by clicking on the “Add New Field” link found at Dashboard -› s2Member® -› General Options -› Registration/Profile Fields.

Posted: Monday Apr 16th, 2012 at 2:12 pm #10909
Raam Dev
Username: Raam
Staff Member

Hi Elizabeth,

You’ll need to use some PHP to do that check. This post explains the PHP that would be necessary. Keep in mind that you’ll need to install the Exec-PHP Plugin to run PHP code within your WordPress posts/pages.

You can then incorporate other s2Member conditionals in addition to the date check. (For example, you may want to use s2If current_user_can(access_s2member_level2) to make sure only Level 2 members can see the content; please see Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals for more information.)

Posted: Monday Apr 16th, 2012 at 2:07 pm #10908
Raam Dev
Username: Raam
Staff Member

Great to hear, Gaper! Thank you for the update.

Viewing 25 replies - 2,026 through 2,050 (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.