Lumaktaw patungo sa content
WordPress.org

Tagalog

  • Themes
  • Plugins
  • Mga Balita
  • Suporta
  • Tungkol Sa
  • Mag-translate
  • Makipagkita
  • Makipag-uganayan
  • Taga-pangangasiwa
  • WPUGPH
  • Get WordPress
Get WordPress
WordPress.org

Plugin Directory

Sidebar Login

  • Mag-submit ng plugin
  • Aking mga paborito
  • Mag-log in
  • Mag-submit ng plugin
  • Aking mga paborito
  • Mag-log in

Sidebar Login

Ni Mike Jolley
I-download
  • Mga Detalye
  • Mga Review
  • Development
Suporta

Deskripsyon

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 they are redirected 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.

If you’d like to contribute a translation, the project is hosted on WordPress.org.

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, call the_widget() with the Sidebar_Login_Widget class, for example the_widget( 'Sidebar_Login_Widget' );.

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
  • %firstname% – logged in users firstname
  • %lastname% – logged in users lastname
  • %name% – logged in users firstname + lastname
  • %nicename% – user nice name
  • %site_url% – url of your site
  • %admin_url% – url to WP admin
  • %logout_url% – logout url
  • %buddypress_profile_url% – BuddyPress Profile URL
  • %bbpress_profile_url% – bbPress Profile URL
  • %avatar% – User Avatar

Filter Reference

  • 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 48 (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.
  • sidebar_login_widget_wp_login_form – The HTML of the Login form.

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

  • After logging in, users are only redirected to pages on your site. To allow other hosts, use the allowed_redirect_hosts filter.
  • 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_ADMIN constant is set to true. Instead it will fallback to a traditional POST.

Mga Screenshot

The widget when logged in
The widget when logged in
The widget when logged out
The widget when logged out
Widget settings
Widget settings

Mga Review

Easy to apply Widget and GDPR compliance

Anonymous User 17709229 Nobyembre 13, 2022
Easy to implement. Some minor custom css work done and voila great result. I like that the widget does not log something. It seems fully GDPR compliant. Great Job! BR Peter

Hace lo que necesitaba

javigandia Marso 8, 2022
Me ha ahorrado mucho tiempo. Muchas gracias funciona perfectamente con mi tema y con la última versión de Wordpress.

Ez and quick setup – well documented – Hooks yeah!

AITpro Pebrero 28, 2021
Great job! Love it when it only takes me a couple of minutes to setup and test a new plugin. Documentation is clear and simple to understand. Hooks Yeah! Will be hooking my plugin's CAPTCHA feature into your plugin. Awesome work!

thanks 🙂 super plugin

Anonymous User 15932932 Pebrero 13, 2021
thanks 🙂 super plugin

Love it — needs reCaptcha

whartung Enero 12, 2021
I really need this to use a reCaptcha, to filter out robots. I love this sidebar login, it's so easy to use.

Please update

Knud Disyembre 3, 2019
Please update… I just have this: Warning: sizeof() [function.sizeof]: Parameter must be an array or an object that implements Countable in /var/www/railworks.dk/public_html/wp-content/plugins/sidebar-login/includes/class-sidebar-login-widget.php on line 213
Basahin lahat ng 79 na review

Mga Contributor at Developer

Ang “Sidebar Login” ay open source software. Ang mga sumusunod na tao ay nag-ambag sa plugin na ito.

Mga Contributor
  • Mike Jolley

Ang “Sidebar Login” ay naisalin na sa 25 (na) mga locale. Salamat sa mga tagasalin para sa kanilang mga kontribusyon.

Isalin ang “Sidebar Login” sa iyong wika.

Interesado sa development?

Tingnan ang code, i-check ang SVN repository, o mag-subscribe sa development log sa pamamagitan ng RSS.

Changelog

3.1.0

  • Security – After an AJAX login, only redirect to pages on this site (or hosts allowed with the allowed_redirect_hosts filter), as wp-login.php does. Props Chiranj Damasiya (Chiru) for reporting this responsibly.
  • Security – The default login and logout redirects use the site address rather than the request’s Host header.
  • Security – Shortcodes in a user’s profile fields, such as their display name, no longer run in the widget title.
  • Security – AJAX logins apply the login_errors filter and post every form field, so login hardening and captcha plugins work with the widget.
  • Security – Widget settings are sanitized when saved, and AJAX logins ignore non-string values.
  • Fix – Set a secure login cookie on HTTPS pages when the site address uses HTTP, as wp-login.php does.
  • Fix – Undefined index notices in the widget settings form. Props @JoryHogeveen.
  • Fix – When an AJAX login can’t complete, for example with a two-factor plugin, the form is posted to wp-login.php instead.
  • Fix – Each login form on a page gets its own field IDs, so the labels work.
  • Fix – Double slash in the default Profile link.
  • Fix – Field ID of the logged-in title setting, and the closing tag of login error messages.
  • Fix – Warnings when the widget renders without a Host header, such as in widget editor previews.
  • Tweak – AJAX logins apply the login_redirect filter, as wp-login.php does.
  • Tweak – Load a right-to-left stylesheet for RTL languages.
  • Performance – Template tag values, including the avatar, are built once per widget.
  • Dev – Build tooling moved to @wordpress/scripts, with PHPUnit and end-to-end tests run in CI.
  • Dev – Requires WordPress 6.6 and PHP 7.4.

3.0.1

  • Fix – Fix rendering of additional links when using non-latin characters in the link text.

3.0.0

  • Refactor – Rewritten majority of plugin using more up to date standards and namespaces.
  • Refactor – Cleaned up the widget settings form to make functionality clearer.
  • Refactor – Removed email->username conversion since this is supported natively.
  • Tweak – Added %nicename% placeholder.
  • Tweak – Improved default styling and included extra wrapping divs (.sidebar-login-form, .sidebar-login-account, .sidebar-login-links).
  • Performance – Removed jQuery dependency and BlockUI script.
  • Performance – Removed sidebar_login_js_in_footer filter – this is now true by default.
  • Fix – Prevent notices due to incorrect sizeof() usage.

2.7.3

  • Tweak – %avatar% placeholder.
  • Tweak – Removed translations due to WordPress.org language packs.
  • Tweak – sidebar_login_widget_wp_login_form filter.
  • Fix – Removed force_ssl_login which is deprecated in 4.4 in favour of force_ssl_admin.

2.7.2

  • Feature – Added firstname, lastname, name tags.
  • Fix – PHP4 widget contructors (https://gist.github.com/chriscct7/d7d077afb01011b1839d).
  • Fix – Missing strings in localisation.
  • Fix – Change email to username during wp_authenticate hook.

2.7.1

  • Make rememberme show by default, without a widget save.

2.7.0

  • Renamed textdomain from sidebar_login to sidebar-login.
  • Moved translations to Transifex.
  • Added Grunt.
  • Removed deprecated sidebarlogin function.
  • Option to show/hide the rememberme checkbox.
  • Allow login using an email address – username will be queried based on address given.

2.6.0

  • Support for Buddypress Profile URL via %buddypress_profile_url%. Thanks Tim Reeves.
  • Support for BBPress Profile URL via %bbpress_profile_url%.
  • Slovakian translation by Alexander Kriss
  • Swedish translation by Tommy Wahlund
  • Dutch translation by Bert Smulders
  • Russian and Ukranian translation by Yarri
  • Polish translation by Czeslaw Liebert

2.5.3

  • Removed nonce check on frontend due to conflict with caching scripts
  • Arabic translation by Mamoun Elkheir
  • Brazillian translation by Marco André Argenta
  • Italian translation by Adriano Calvitto

2.5.2

  • Latvian translation by Lana Mangusa
  • German translation by Klaus-Peter
  • Wrapped response to prevent crap plugins breaking the response

2.5.1

  • Filterable error classes
  • Tweak to how SSL logins are handled.
  • FR translation
  • Fix $link_cap

2.5.0

  • Rewrite and code cleanup – class based.
  • Optionless – Moved all settings to the widgets themselves rather than having a settings page.
  • Removed all localisations (these are out of date, and need re-doing)
  • Removed JSONP/GET request – although this allowed logins between urls of different origin, it poses a security risk as GET requests are logged.

2.4.0

  • XSS Fix
  • Added classes to tags in widget
  • Improved/filtered register and lost password links
  • Removed the outdated openid/fb code. Hook it in if you want it.
  • Removed markup in favour of wp_login_form()

2.3.6

  • Sanitize REQUEST_URI/$pageURL

2.3.5

  • Use jsonp to enable login from http to https
  • Fixed remember me logic (in js)
  • Sanitize redirect url
  • Removed esc_attr from username and password to prevent breaking login
  • Updated french and italian langs
  • Added Swedish lang by Ove Kaufeldt

2.3.4

  • SSL URL tweak
  • Better handling for force_ssl_login and force_ssl_admin

2.3.3

  • Removed a link after request from WordPress.org staff
  • wp_lostpassword_url() for lost password link
  • sanitized user_login
  • Uses wp_ajax for ajax login instead of init functions
  • Secure cookie logic change

2.3.2

  • Login redirect fix

2.3.1

  • Error loop fix
  • Added filter for errors – sidebar_login_error

2.3

  • Put the project on GitHub
  • Added new localisations
  • New options panel
  • AJAX Login

2.2.15

  • FORCE_SSL_LOGIN/ADMIN double login issue fix (Thanks to bmaupin)
  • Only added openid styling if other plugin is installed
  • Added more languages

2.2.14

  • Further revised the |true / |user_capability code – only need to use one or the other now.

2.2.13

  • Updated translations
  • Support for https and style.css
  • is_date fix
  • Added option for headings
  • Removed attribute_escape for esc_attr – therefore this version needs wp 2.8 and above
  • USER LEVEL option gone – replaced with USER CAPABILITY instead – use a capability like ‘manage_options’

2.2.12

  • Headers sent bugs fixed
  • Avatar display option

2.2.11

  • More/Updated langs

2.2.10

  • Moved settings to appearance menu
  • Changed min user level to capilbilty ‘manage_options’
  • Fixed menu showing in wordpress 3.0
  • Added %USERID% for links
  • Fixed white space bug for link options

2.2.8

  • Min level setting for links. Add user level after |true when defining the logged in links.
  • Moved ‘settings’ from tools to settings.
  • Encoded ampersand for valid markup
  • Moved Labels about
  • Fixed SSL url
  • Reusable widget

2.2.6

  • Added changelog to readme.
  • OpenID Plugin (https://wordpress.org/extend/plugins/openid/) Integration.
  • %username% can be used in your custom links shown when logged in (gets replaced with username)
  • WP-FacebookConnect (https://wordpress.org/extend/plugins/wp-facebookconnect/) integration (untested!)
  • Minor fixes (worked through a big list of em!)

Meta

  • Bersyon 3.1.0
  • Huling na-update 12 mga oras ang nakalipas
  • Mga aktibong installation 9,000+
  • Bersyon ng WordPress 6.6 o mas bago
  • Sinubukan hanggang 7.1.3
  • Bersyon ng PHP 7.4 o mas bago
  • Mga Wika

    Bengali (Bangladesh), Bulgarian, Catalan, Czech, Danish, Dutch, English (Canada), English (US), Finnish, French (France), Galician, German, German (Switzerland), Italian, Japanese, Korean, Norwegian (Bokmål), Persian, Portuguese (Brazil), Russian, Spanish (Chile), Spanish (Colombia), Spanish (Spain), Spanish (Venezuela), Swedish, at Turkish.

    Isalin sa iyong wika

  • Mga Tag
    loginlogin widgetsidebarsidebar loginwidget
  • Advanced View

Mga Rating

4.5 out of 5 stars.
  • 58 5-star reviews 5 stars 58
  • 9 4-star reviews 4 stars 9
  • 5 3-star reviews 3 stars 5
  • 2 2-star reviews 2 stars 2
  • 4 1-star reviews 1 star 4

Ang iyong review

Tingnan lahat ng mga review

Mga Contributor

  • Mike Jolley

Suporta

May gusto kang sabihin? Kailangan ng tulong?

Tingnan ang support forum

Mag-donate

Gusto mo bang suportahan ang pagpapaunlad ng plugin na ito?

Mag-donate sa plugin na ito

  • About
  • News
  • Hosting
  • Privacy
  • Showcase
  • Themes
  • Plugins
  • Patterns
  • Learn
  • Support
  • Developers
  • WordPress.tv ↗
  • Get Involved
  • Events
  • Donate ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Tagalog

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Visit our X (formerly Twitter) account
  • Bisitahin ang aming Bluesky account
  • Visit our Mastodon account
  • Bisitahin ang aming Threads account
  • Visit our Facebook page
  • Visit our Instagram account
  • Visit our LinkedIn account
  • Bisitahin ang aming TikTok account
  • Visit our YouTube channel
  • Bisitahin ang aming Tumblr account
Ang Code ay Tula.