BuddyBoss Home – Web › Support Forums › Themes › BuddyBoss theme › Sidebar Remember Me
Tagged: login, remember me, sidebar
- This topic has 5 replies, 3 contibutors, and was last updated 9 years, 2 months ago by Anonymous.
Question
September 1, 2015 at 6:26 am #45509@tomastdIn the sidebar login form widget, is there any way in to set the id=”siderbar-rememberme” checked by default?
As, “checked” is a HTML attribute, I suppose that it has no sense to try with the custom.css file. How can I do?
I have tried with some “remember me” plugins but they didn’t work in the sidebar.
Thanks!!!
Answers
September 5, 2015 at 3:17 pm #45805@alyssa-buddyboss
AlyssaParticipant@tomastd this is not upgrade safe by the file/line to edit buddyboss-inc/buddyboss-widgets/buddyboss-profile-widget-loader.php:88
echo "<p class='forgetmenot'><input name='rememberme' type='checkbox' id='sidebar-rememberme' value='forever' tabindex='99' /> ".__( 'Remember Me', 'buddyboss' )."</p>";
change to:
echo "<p class='forgetmenot'><input name='rememberme' type='checkbox' id='sidebar-rememberme' value='forever' tabindex='99' checked /> ".__( 'Remember Me', 'buddyboss' )."</p>";
September 6, 2015 at 3:47 am #45819@tomastdI not a developer but I will try to make a plug-in with it. Upgrade safe solution… Let’s see 😉
Thank you.
September 7, 2015 at 8:06 am #45863@alyssa-buddyboss
AlyssaParticipant@tomastd you could make it upgrade safe with javascript added to footer.php:
<script> $( document ).ready(function() { $('#sidebar-rememberme').prop( "checked", true ); }); </script>
September 7, 2015 at 9:06 am #45871@tomastdDone! And working!!!
Thank you!!! 😉September 8, 2015 at 12:43 pm #45958@
Anonymous🙂 Glad to hear, I will close this topic.
Regards
Varun Dubey
- The question ‘Sidebar Remember Me’ is closed to new replies.