WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Sidebar Login

Easily add an ajax-enhanced login widget to your WordPress site sidebar.

Sidebar-Login adds a useful login widget which you can use to login from in the sidebar of your WordPress powered blog.

Once a user logs in it then redirects them back to the page they logged in from rather than the admin panel (this is configurable).

If you'd like to contribute code to the plugin you can do so via GitHub: https://github.com/mikejolley/sidebar-login.

If you'd like to contribute a localisation, the project is hosted on Transifex: https://www.transifex.com/projects/p/sidebar-login/

Usage

Simply go to Appearance > Widgets and drag "sidebar login" to the sidebar of your choice. Within the widget are several options you can use for changing the titles or the links displayed to the user.

To use this widget in a template, use the the_widget() function which WordPress provides.

Tags for titles + links

These tags can be used in the widget settings for titles + links and will be replaced at runtime.

  • %username% - logged in users display name
  • %userid% - logged in users ID
  • %admin_url% - url to WP admin
  • %logout_url% - logout url
  • %buddypress_profile_url% - Buddypress Profile URL
  • %bbpress_profile_url% - Buddypress Profile URL

Filter Reference

  • sidebar_login_js_in_footer - return true to show JS file in the footer instead of the header
  • sidebar_login_include_css - return false to not include the CSS stylesheet
  • sidebar_login_widget_logged_in_links - An array of links shown when logged in.
  • sidebar_login_widget_logged_out_links - An array of links shown when logged out.
  • sidebar_login_widget_display - Return false to hide the widget.
  • sidebar_login_widget_logged_in_title - The widget title shown when logged in.
  • sidebar_login_widget_avatar_size - The avatar size - defaulted to 38 (thats in px)
  • sidebar_login_widget_logged_out_title - The widget title shown when logged out.
  • sidebar_login_widget_form_args - Arguments for the wp_login_form function.
  • sidebar_login_widget_login_redirect - Redirect URL after login.
  • sidebar_login_widget_logout_redirect - the redirect after logging out.
  • sidebar_login_widget_register_url - The URL for registration links.
  • sidebar_login_widget_lost_password_url - The URL for lost password links.

Action Reference

  • sidebar_login_widget_start - Fired before the widget.
  • sidebar_login_widget_{logged_in || logged_out}_content_start - Fired before the widget content.
  • sidebar_login_widget_before_{logged_in || logged_out}_links - Fired before the links.
  • sidebar_login_widget_after_{logged_in || logged_out}_links - Fire after the links.
  • sidebar_login_widget_{logged_in || logged_out}_content_end - Fired after the widget content.
  • sidebar_login_widget_end - Fired after the widget.

Notes

  • Due to AJAX not working across different domains (see same_origin_policy), AJAX logins will be disabled if your site it non-SSL, but the FORCE_SSL_LOGIN constant is set to true. Instead it will fallback to a traditional POST.

Requires: 3.0 or higher
Compatible up to: 3.9.1
Last Updated: 2014-7-2
Downloads: 769,070

Ratings

4 stars
4.2 out of 5 stars

Support

3 of 14 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

1 person says it works.
0 people say it's broken.

100,2,2
88,8,7
33,3,1 0,2,0 0,2,0 0,1,0 85,13,11 33,3,1 50,4,2
0,2,0 0,2,0 33,3,1 100,1,1 100,5,5
0,2,0 0,2,0 0,2,0 33,3,1 71,21,15
100,1,1 100,1,1 100,1,1 100,9,9 50,4,2 0,2,0 0,2,0 0,1,0 100,2,2 100,1,1 75,20,15 0,1,0
89,9,8 67,9,6 0,2,0 0,2,0
78,9,7 25,4,1 78,23,18 100,1,1
67,3,2
50,4,2
57,7,4
50,4,2
63,8,5 100,10,10
67,3,2
50,4,2
100,3,3
0,1,0
100,2,2 100,1,1 100,1,1 100,2,2
100,1,1 25,4,1 33,3,1 62,21,13 73,15,11 67,3,2
50,8,4 60,10,6
39,33,13 50,4,2
71,7,5 100,1,1
100,1,1 100,3,3
54,13,7
67,12,8
86,7,6
0,1,0 83,6,5 33,6,2 40,5,2 100,1,1
100,4,4 100,4,4
100,8,8
40,5,2
0,1,0
67,3,2
100,3,3
88,8,7
100,3,3
83,6,5 50,2,1 100,1,1