Webboard

Pełna wersja: Niepoprawny wygląd panelu logowania
Aktualnie przeglądasz uproszczoną wersję forum. Kliknij tutaj, by zobaczyć wersję z pełnym formatowaniem.
wersja skryptu MyBB: 1.8.3
adres forum: www.csatom.xaa.pl
na czym polega problem (screen, opis, komunikaty, nazwa stylu/theme/szablonu): Mam niepoprawny wygląd panelu logowania prosze o pomoc



Moj header

Kod PHP:
<div class="scrolltotop"><class="fa fa-caret-up fa-2x"></i></div>

<
div id="container">
  
  <
div id="panel">
          <
div class="wrapper">
            <
div class="news">
                <
div class="announcements"><class="fa fa-microphone fa-2x"></i></div>
                    <
div class="automsj">
                        <
ul>
                              <
li class="quotes">¡Welcome to Square Theme!</li>
                            <
li class="quotes">This news are in header template.</li>
                              <
li class="quotes">Please ignore this message.</li>
                        </
ul>
                    </
div>
            </
div>
    
            <
div class="usersection">
                {
$welcomeblock}
            </
div>
        </
div>
    </
div>
  

    <
div id="header">
    <
div class="belka_top-wrapper">

    

                <
div style="height:156px;">
                    <
class="menu_amxbans" href="/link do amxbans"></a>
                    <
class="meno_szukaj" href="/forumdisplay.php?fid=9"></a>
                    <
class="meno_sklep" href="/link do sklepu"></a>
                    <
class="meno_users" href="/memberlist.php/"></a>
                    <
class="meno_glowna" href="/index.php"></a>
                
                </
div>
                </
div>
      
<
div class="logo"><br><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}alt="{$mybb->settings['bbname']}title="{$mybb->settings['bbname']}/></a></div>


  
      
        <
div id="content">
          <
div class="wrapper">
            
                  <
br />
                  <
navigation>
                {
$pm_notice}
                {
$bannedwarning}
                {
$bbclosedwarning}
                {
$unreadreports}
                {
$pending_joinrequests}
                {
$awaitingusers}
                <
br /> 
Błędny szablon.

W szablonie header_welcomeblock_guest znajdź i usuń:
Kod:
<div class="welcomebox" original-title="">
              <br><br>
              <br><br>
              
          </div>
Następnie w Square.css → .welcomelogin ul | usuń float: left;
→ .welcomelogin również usuń float, text-align wartość zmień na center, oraz zwiększ width.
NO zrobilem to ale jeszcze mi te dwie kolumny do loginu i hasla pozostaly nie równo
No bo nie usunąłeś tego <div> co podałem oraz float z klasy .welcomelogin ul...
Kod PHP:
{$lang->welcome_guest} <span class="loginbutton"><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true }); return false;"><i style="font-size: 14px;" class="fa fa-sign-in fa-fw"></i> {$lang->welcome_login}</a></span> <span class="registerbutton"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> {$lang->welcome_register}</a></span>

<
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" />
          <
div class="welcometitle">
              <
h1>{$lang->xstyled_loginat} {$mybb->settings['homename']}</h1>
          </
div>
        <
div class="welcomebox">
              {
$lang->xstyled_loginfirstphrase}
              {
$lang->xstyled_loginsecondphrase}
              {
$lang->xstyled_loginthirdphrase}
          </
div>
          <
div class="welcomelogin">
              <
ul>
                <
li><span class="log"><class="fa fa-user fa-fw"></i></span><input name="quick_username" id="quick_login_username" type="text" value="Username" class="textlog" size="25" /></li>
                <
li><span class="log"><class="fa fa-lock fa-fw"></i></span><input name="quick_password" id="quick_login_password" type="password" value="Password" class="textlog" size="25" /></li>
            </
ul>
              <
br style="clear: both;"/>
              <
input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
            <
label for="quick_login_remember" style="color: #363636;">{$lang->remember_me}</label><br />
              <
a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
            <
br style="clear: both;"/><br />
              <
input class="loginbutton" name="submit" type="submit" value="{$lang->login}style="cursor: pointer;" />
            <
span class="registerbutton"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> {$lang->welcome_register}</a></span>
          </
div>
    </
form>
</
div>

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

Kiedy usune <div> to mi sie eader rozsypuje
Kod:
{$lang->welcome_guest} <span class="loginbutton"><a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true }); return false;"><i style="font-size: 14px;" class="fa fa-sign-in fa-fw"></i> {$lang->welcome_login}</a></span> <span class="registerbutton"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> {$lang->welcome_register}</a></span>

<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" />
          <div class="welcometitle">
              <h1>{$lang->xstyled_loginat} {$mybb->settings['homename']}</h1>
          </div>
          <div class="welcomelogin">
              <ul>
                <li><span class="log"><i class="fa fa-user fa-fw"></i></span><input name="quick_username" id="quick_login_username" type="text" value="Username" class="textlog" size="25" /></li>
                <li><span class="log"><i class="fa fa-lock fa-fw"></i></span><input name="quick_password" id="quick_login_password" type="password" value="Password" class="textlog" size="25" /></li>
            </ul>
              <br style="clear: both;"/>
              <input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
            <label for="quick_login_remember" style="color: #363636;">{$lang->remember_me}</label><br />
              <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
            <br style="clear: both;"/><br />
              <input class="loginbutton" name="submit" type="submit" value="{$lang->login}" style="cursor: pointer;" />
            <span class="registerbutton"><a href="{$mybb->settings['bburl']}/member.php?action=register"><i style="font-size: 14px;" class="fa fa-user fa-fw"></i> {$lang->welcome_register}</a></span>
          </div>
    </form>
</div>

<script type="text/javascript">
    $("#quick_login input[name='url']").val($(location).attr('href'));
</script>
nic sie nie zmienilo
Już kod poprawiony, nie wiem czemu nie skasowałem, a odpowiedziałem. >.<