ozdave
Member
Posted 7 months ago #
Hi, I have just started using the sidebar login and am having a problem with the page refresh after a successful login
If I enter a correct username and password, then click on login button, no messages are displayed, the form just clears. If I hit refresh in my browser the sidebar refreshes as expected and displays the welcome and links I have configured.
Is there a way I can force a refresh of the page post login?
Has anyone else seen this before? I found a post on google but the fix wasnt one for me.
Thanks
David
http://wordpress.org/extend/plugins/sidebar-login/
ozdave
Member
Posted 7 months ago #
ok i fixed this by editing sidebarlogin.js and adding
result1 = window.location.reload(true)
In the following location
if (result=='SBL_SUCCESS' || result.indexOf( 'SBL_SUCCESS' ) > 0) {
window.location = jQuery('.redirect_to:eq(0)', thisform).attr('value');
// The next line forces refresh of the page
result1 = window.location.reload(true)
Hope this helps someone else. If I've done something bad let me know!
ozdave
Member
Posted 7 months ago #
ok that didnt work with chrome :(
fine on IE, safari and firefox.... any ideas??
ozdave
Member
Posted 7 months ago #
tried changing it to just window.location.reload() but still no dice in chrome :(
all other browsers listed works ok!
manwell77
Member
Posted 7 months ago #
Got quite the same problem: after the login using the widget in the box appears the homepage "replicated" (with a strange css layout)
dhoffmann
Member
Posted 7 months ago #
same problem here. Going back to 2.3.2 and everything works fine.
I can confirm that the redirect is broken in 2.3.3 with WordPress v3.2.1. Version 2.3.2 works fine.