Jump to the post that solved this thread.
Solved: 7 Years, 3 Weeks ago Problem with Login Mybb.
#1
Solved: 7 Years, 3 Weeks ago
Hello, i have a problem with the Modal Box Login Original of Mybb like this forum.
When I click on login you see this type of login and also when I click on the textbox login box closes.
[Image: 9542712a4e5316d0c167cf2f8462fc45.png]

Here there is my headerinclude:
<link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="{$lang->latest_threads} (Atom 1.0)" href="{$mybb->settings['bburl']}/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="{$mybb->asset_url}/jscripts/general.js?ver=1804"></script>
<script type="text/javascript">
jQuery(function($) {
$("#boxsu").hide();
  $(window).scroll(function () {
    if ($(this).scrollTop() > 400) {
      $('#boxsu').fadeIn(200);
    } else {
      $('#boxsu').fadeOut(200);
    }
  });
  $('.go-top').click(function () {
    $('html,body').animate({
      scrollTop: 0
    }, 1000);
    return false;
  });
});
</script> 
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,600' rel='stylesheet' type='text/css'>
{$stylesheets}
<script type="text/javascript" src="{$mybb->settings['bburl']}/images/avatarep/avatarep.js"></script>
<script type="text/javascript">
 lang.unknown_error = "{$lang->unknown_error}";

 lang.select2_match = "{$lang->select2_match}";
 lang.select2_matches = "{$lang->select2_matches}";
 lang.select2_nomatches = "{$lang->select2_nomatches}";
 lang.select2_inputtooshort_single = "{$lang->select2_inputtooshort_single}";
 lang.select2_inputtooshort_plural = "{$lang->select2_inputtooshort_plural}";
 lang.select2_inputtoolong_single = "{$lang->select2_inputtoolong_single}";
 lang.select2_inputtoolong_plural = "{$lang->select2_inputtoolong_plural}";
 lang.select2_selectiontoobig_single = "{$lang->select2_selectiontoobig_single}";
 lang.select2_selectiontoobig_plural = "{$lang->select2_selectiontoobig_plural}";
 lang.select2_loadmore = "{$lang->select2_loadmore}";
 lang.select2_searching = "{$lang->select2_searching}";

 var cookieDomain = "{$mybb->settings['cookiedomain']}";
 var cookiePath = "{$mybb->settings['cookiepath']}";
 var cookiePrefix = "{$mybb->settings['cookieprefix']}";
 var deleteevent_confirm = "{$lang->deleteevent_confirm}";
 var removeattach_confirm = "{$lang->removeattach_confirm}";
 var loading_text = '{$lang->ajax_loading}';
 var saving_changes = '{$lang->saving_changes}';
 var use_xmlhttprequest = "{$mybb->settings['use_xmlhttprequest']}";
 var my_post_key = "{$mybb->post_code}";
 var rootpath = "{$mybb->settings['bburl']}";
 var imagepath = "{$theme['imgdir']}";
   var yes_confirm = "{$lang->yes}";
 var no_confirm = "{$lang->no}";
 var MyBBEditor = null;
 var spinner_image = "{$theme['imgdir']}/spinner.gif";
 var spinner = "<img src='" + spinner_image +"' alt='' />";
 var modal_zindex = 9999;
</script>



And here there is my header_welcomeblock_guest:
<a name="top" id="top"></a>

 <div id="topbar">
 <ul class="guestst">
 <li><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login">>Login</a></li>
 <li><a href="{$mybb->settings['bburl']}/member.php?action=register">Registrati</a></li>
 </ul>
</div>
 <div class="modal" id="quick_login" style="display: none;">
 <form method="post" 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" />
 <table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="tborder">
 <tr>
 <td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
 </tr>
 <tr>
 <td class="trow1" width="25%"><strong>{$login_username}</strong></td>
 <td class="trow1"><input name="quick_username" id="quick_login_username" type="text" value="" class="textbox initial_focus" /></td>
 </tr>
 <tr>
 <td class="trow2"><strong>{$lang->password}</strong></td>
 <td class="trow2">
 <input name="quick_password" id="quick_login_password" type="password" value="" class="textbox" /> <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
 </td>
 </tr>
 <tr>
 <td class="trow1">&nbsp;</td>
 <td class="trow1 remember_me">
 <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>
 </td>
 </tr>
 <tr>
 <td class="trow2" colspan="2">
 <div align="center"><input name="submit" type="submit" class="button" value="{$lang->login}" /></div>
 </td>
 </tr>
 </table>
 </form>
 </div>
<div class="float_right"><form action="{$mybb->settings['bburl']}/search.php" method="post">
 <input name="keywords" type="text" class="textboxtop" placeholder="Cerca sul forum.." />
 <input type="hidden" name="action" value="do_search" />
 <input type="hidden" name="postthread" value="1" />
</form></div>
</div>


 <div id="menutop">
 <ul id="menutop">
 {$menu_portal}
 {$menu_search}
 {$menu_memberlist}
 {$menu_calendar}
 </ul>
 </div>

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

UP! This is the forum: http://newstylepj.altervista.org/forum

FIxed, i put a double </div> after this code:
<ul class="guestst">
<li><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login">>Login</a></li>
<li><a href="{$mybb->settings['bburl']}/member.php?action=register">Registrati</a></li>
</ul>
Reply
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)