MyBB Community Forums

Full Version: My forum didnt keep login (user and password)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I checked you're header_welcomeblock_guest. Change it with this:
<!-- Continuation of div(class="upper") as opened in the header template -->
          <div id="loginContainer">
                 <a href="{$mybb->settings['bburl']}/member.php?action=register"><span class="botonregi"><i class="fa fa-user"></i>  Register</span></a>  <a href="#" id="loginButton"><span><i class="fa fa-sign-in"></i>  Log in</span><em></em></a>
               <div style="clear:both"></div>
               <div id="loginBox">
<div class="slidingDiv">
<form method="post" id="loginForm" action="{$mybb->settings['bburl']}/member.php">
<input name="action" type="hidden" value="do_login" />
<input name="url" type="hidden" value="" />
<input name="quick_login" type="hidden" value="1" />
<input type="text" class="initial_focus textlogin" name="username" id="quick_login_username" value="Username" onfocus="if(this.value == 'Username') { this.value = ''; }" onblur="if(this.value=='') { this.value='Username'; }" />
<br />
<br />
<input type="password" class="textlogin2" name="password" id="quick_login_password" value="password" onfocus="if(this.value == 'password') { this.value = ''; }" onblur="if(this.value=='') { this.value='password'; }" />            
<br /><br />
<input type="submit" class="boton2" name="submit" value="{$lang->login}" />
<input type="hidden" name="action" value="do_login" />
<center>
<input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
                                    <label for="quick_login_remember">{$lang->remember_me}</label>

<br /><span class="posicion"><a href="{$mybb->settings['bburl']}/member.php?action=lostpw"><font color="#3D5755">Reset Password</font></a></span></center>
</form>
</div>
               </div>
           </div>

<script type="text/javascript">
$(function() {
   var button = $('#loginButton');
   var box = $('#loginBox');
   var form = $('#loginForm');
   button.removeAttr('href');
   button.mouseup(function(login) {
       box.toggle();
       button.toggleClass('active');
   });
   form.mouseup(function() {
       return false;
   });
   $(this).mouseup(function(login) {
       if(!($(login.target).parent('#loginButton').length > 0)) {
           button.removeClass('active');
           box.hide();
       }
   });
});

</script>

                <script type="text/javascript">
                    $("#quick_login input[name='url']").val($(location).attr('href'));
                </script>
(2017-09-10, 04:43 PM)chack1172 Wrote: [ -> ]I checked you're header_welcomeblock_guest. Change it with this:
<!-- Continuation of div(class="upper") as opened in the header template -->
          <div id="loginContainer">
                 <a href="{$mybb->settings['bburl']}/member.php?action=register"><span class="botonregi"><i class="fa fa-user"></i>  Register</span></a>  <a href="#" id="loginButton"><span><i class="fa fa-sign-in"></i>  Log in</span><em></em></a>
               <div style="clear:both"></div>
               <div id="loginBox">
<div class="slidingDiv">
<form method="post" id="loginForm" action="{$mybb->settings['bburl']}/member.php">
<input name="action" type="hidden" value="do_login" />
<input name="url" type="hidden" value="" />
<input name="quick_login" type="hidden" value="1" />
<input type="text" class="initial_focus textlogin" name="username" id="quick_login_username" value="Username" onfocus="if(this.value == 'Username') { this.value = ''; }" onblur="if(this.value=='') { this.value='Username'; }" />
<br />
<br />
<input type="password" class="textlogin2" name="password" id="quick_login_password" value="password" onfocus="if(this.value == 'password') { this.value = ''; }" onblur="if(this.value=='') { this.value='password'; }" />            
<br /><br />
<input type="submit" class="boton2" name="submit" value="{$lang->login}" />
<input type="hidden" name="action" value="do_login" />
<center>
<input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
                                    <label for="quick_login_remember">{$lang->remember_me}</label>

<br /><span class="posicion"><a href="{$mybb->settings['bburl']}/member.php?action=lostpw"><font color="#3D5755">Reset Password</font></a></span></center>
</form>
</div>
               </div>
           </div>

<script type="text/javascript">
$(function() {
   var button = $('#loginButton');
   var box = $('#loginBox');
   var form = $('#loginForm');
   button.removeAttr('href');
   button.mouseup(function(login) {
       box.toggle();
       button.toggleClass('active');
   });
   form.mouseup(function() {
       return false;
   });
   $(this).mouseup(function(login) {
       if(!($(login.target).parent('#loginButton').length > 0)) {
           button.removeClass('active');
           box.hide();
       }
   });
});

</script>

                <script type="text/javascript">
                    $("#quick_login input[name='url']").val($(location).attr('href'));
                </script>


i changed it sir . same problem , not saving the user and the password
when i close the page and open the url again , its ask a new login Sad
I saw it, this is really strange because the quick_remember input is sent to the login page...
i have another question sir
its about the private message page 
i used the plugin Style Usernames , when i active this plugin , and i go to the private message inbox , the sender is not linked to them profile 

[Image: image.png]

i want when i click to the sender name , its should be linked to them profile .

ps . when i deactivate the plugin , its work 

any idea ?
regards
Pages: 1 2