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.

s2member pro login widget

Home Forums Community Forum s2member pro login widget

Tagged: ,

This topic contains 3 replies, has 2 voices. Last updated by  Raam Dev 4 years, 3 months ago.

Topic Author Topic
Posted: Monday Oct 8th, 2012 at 2:24 am #27765
Chris W
Username: Chrisw83

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Monday Oct 8th, 2012 at 7:40 am #27782
Raam Dev
Username: Raam
Staff Member

Instead of dropping the widget into your sidebar using Dashboard -> Appearance -> Widgets, you’ll need to use the PHP version of the widget and only call it when the visitor is not logged in by using the WordPress is_user_logged_in() function in a conditional:

<?php
if ( is_user_logged_in() ) {
    // show nothing
} else {
    echo s2member_pro_login_widget();
}
?>

This code would need to be placed in your theme’s sidebar.php file, or wherever you want it to appear.

Please see this thread for more details about using the PHP version of the Pro Login Widget.

Posted: Monday Oct 8th, 2012 at 2:00 pm #27813
Chris W
Username: Chrisw83

Thanks!

Posted: Tuesday Oct 9th, 2012 at 3:49 am #27860
Raam Dev
Username: Raam
Staff Member

Glad I could help! :)

Viewing 3 replies - 1 through 3 (of 3 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.