Smf giriş paneli Css3

Başlatan snrj, 18 May 2014 14:31

« önceki - sonraki »

0 Üyeler ve 2 Ziyaretçiler konuyu incelemekte.

*

  1. 3,108

  2. 587

  3. 1001
18 May 2014 14:31 Son düzenlenme: 18 Oca 2015 02:34 snrj

smf nin giriş panelinden sıkılan arkadaşlar için bu konuda smf ye uyarladığımız login panellerini paylaşacaz zamanla daha fazla ekliyecez anlatımlar defaulta göredir

index.template.php bul
echo '
 <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
 <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
 <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
 <input type="text" name="user" size="10" class="input_text" />
 <input type="password" name="passwrd" size="10" class="input_password" />
 <select name="cookielength">
 <option value="60">', $txt['one_hour'], '</option>
 <option value="1440">', $txt['one_day'], '</option>
 <option value="10080">', $txt['one_week'], '</option>
 <option value="43200">', $txt['one_month'], '</option>
 <option value="-1" selected="selected">', $txt['forever'], '</option>
 </select>
 <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
 <div class="info">', $txt['quick_login_dec'], '</div>';

 if (!empty($modSettings['enableOpenID']))
 echo '
 <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

 echo '
 <input type="hidden" name="hash_passwrd" value="" />
 </form>';

değiştir
echo '
 <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
 
 <div id="box-login">
 <div id="box-login-top">
 <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
 <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
 <fieldset>
 <input id="username" name="user" placeholder="username" class="form-text" type="text">
 </fieldset>
 <fieldset>
 <input id="password" name="passwrd" placeholder="password" class="form-text" type="password">
 </fieldset>
 <select name="cookielength">
 <option value="60">', $txt['one_hour'], '</option>
 <option value="1440">', $txt['one_day'], '</option>
 <option value="10080">', $txt['one_week'], '</option>
 <option value="43200">', $txt['one_month'], '</option>
 <option value="-1" selected="selected">', $txt['forever'], '</option>
 </select>
 <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
 <div class="info">', $txt['quick_login_dec'], '</div>';

 if (!empty($modSettings['enableOpenID']))
 echo '
 <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

 echo '
 <input type="hidden" name="hash_passwrd" value="" />
 </form></div>
 </div>
 <div class="clear"></div>';

index.css en alta ekle
#box-login {
 font-size: 9px;
 display: table;
 background-color: #FFF;
 /*border: 1px solid #d9d9d9;*/

 -moz-box-shadow: 0 0 16px -4px rgba(0, 0, 0, 0.5);
 -webkit-box-shadow: 0 0 16px -4px rgba(0, 0, 0, 0.5);
 box-shadow: 0 0 16px -4px rgba(0, 0, 0, 0.5);

 -webkit-border-radius: 3px;
 -moz-border-radius: 3px;
 border-radius: 3px;
 
 width: 290px;
}
#box-login-top {
 background: transparent;
 padding: 5px;
}
#box-login-top form fieldset input.form-text {
 display: block;
 width: 240px;
 padding: 8px 7px;
 font-size: 14px;
 border: 1px solid #ddd;
 background: #f5f5f5;
 -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
 -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
 -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.05);
 -webkit-border-radius: 3px;
 -moz-border-radius: 3px;
 border-radius: 3px;
}
#box-login-top form fieldset input.form-text:focus {
 border: 1px solid #ccc;
 background: #fff;
}
#box-login-top form input[type="submit"] {
 margin: 0px;
font-size: 10px;
font-weight: bold;
border: 0px none;
border-radius: 5px 5px 5px 5px;
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.6);
background: -moz-linear-gradient(19% 75% 90deg, #FF4D01, #FF8924) repeat scroll 0% 0% transparent;
color: #FFF;
float: right;
font-family: arial,helvetica,sans-serif;
padding: 10px 2px;
width: 120px;
text-align: center;
}
#box-login-top form input[type="submit"]:hover,
#box-login-top form input[type="submit"]:focus,
#box-login-top form input[type="submit"]:active {
background: -moz-linear-gradient(19% 75% 90deg, #EB4701, #F58423);
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#F58423), to(#EB4701));
cursor: pointer;
}



bu resimide temanızın images klasörüne atın = http://snrj.eu5.org/uploads/2014/03/arrow.png
index.template.php bul
echo '
 <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
 <form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
 <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
 <input type="text" name="user" size="10" class="input_text" />
 <input type="password" name="passwrd" size="10" class="input_password" />
 <select name="cookielength">
 <option value="60">', $txt['one_hour'], '</option>
 <option value="1440">', $txt['one_day'], '</option>
 <option value="10080">', $txt['one_week'], '</option>
 <option value="43200">', $txt['one_month'], '</option>
 <option value="-1" selected="selected">', $txt['forever'], '</option>
 </select>
 <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
 <div class="info">', $txt['quick_login_dec'], '</div>';

 if (!empty($modSettings['enableOpenID']))
 echo '
 <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

 echo '
 <input type="hidden" name="hash_passwrd" value="" />
 </form>';

değiştir
echo '
 <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
 <form class="login" id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
 <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
 <p><input type="text" name="user" id="login" ></p>
 <p><input type="password" name="passwrd" id="password" ></p>
 <p class="login-submit">
 <button type="submit" value="', $txt['login'], '" class="login-button">Login</button>
 </p>';

 if (!empty($modSettings['enableOpenID']))
 echo '
 <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

 echo '
 <input type="hidden" name="hash_passwrd" value="" />
 </form>';

index.css en alta ekle

.login {
  position: relative;
margin: 0px;
}
.login p {
  margin: 0 0 10px;
}

input, button, label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input[type=text], input[type=password] {
  padding: 0 10px;
  width: 260px;
  height: 40px;
  color: #bbb;
  text-shadow: 1px 1px 1px black;
 
  border: 0;
  border-radius: 5px;
  -webkit-box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.06);
}
input[type=text]:focus, input[type=password]:focus {
  color: white;
  background: rgba(0, 0, 0, 0.1);
  outline: 0;
}

label {
  float: left;
  width: 100px;
  line-height: 40px;
  padding-right: 10px;
  font-weight: 100;
  text-align: right;
  letter-spacing: 1px;
}

.forgot-password {
  padding-left: 100px;
  font-size: 13px;
  font-weight: 100;
  letter-spacing: 1px;
}

.login-submit {
  position: absolute;
top: 44px;
left: 235px;
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 32px;
  -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}
.login-submit:before, .login-submit:after {
  content: '';
  z-index: 1;
  position: absolute;
}
.login-submit:before {
  top: 28px;
  left: -4px;
  width: 4px;
  height: 10px;
  -webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}
.login-submit:after {
  top: -4px;
  bottom: -4px;
  right: -4px;
  width: 36px;
}

.login-button {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  padding: 0 0 48px;
  /* Fix wrong positioning in Firefox 9 & older (bug 450418) */
  text-indent: 120%;
  white-space: nowrap;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.2), 0 1px rgba(255, 255, 255, 0.1);
  /* Must use another pseudo element for the gradient background because Webkit */
  /* clips the background incorrectly inside elements with a border-radius.     */
}
.login-button:before {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  right: 5px;
  background: #00a2d3;
  border-radius: 24px;
  background-image: -webkit-linear-gradient(top, #00a2d3, #0d7796);
  background-image: -moz-linear-gradient(top, #00a2d3, #0d7796);
  background-image: -o-linear-gradient(top, #00a2d3, #0d7796);
  background-image: linear-gradient(to bottom, #00a2d3, #0d7796);
  -webkit-box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16);
  box-shadow: inset 0 0 0 1px #00a2d3, 0 0 0 5px rgba(0, 0, 0, 0.16);
}
.login-button:active:before {
  background: #0591ba;
  background-image: -webkit-linear-gradient(top, #0591ba, #00a2d3);
  background-image: -moz-linear-gradient(top, #0591ba, #00a2d3);
  background-image: -o-linear-gradient(top, #0591ba, #00a2d3);
  background-image: linear-gradient(to bottom, #0591ba, #00a2d3);
}
.login-button:after {
  content: '';
  position: absolute;
  top: 15px;
  left: 12px;
  width: 25px;
  height: 19px;
  background: url("../images/arrow.png") 0 0 no-repeat;
}



geçitli ajaxlı giriş alanı
linkteki dosyayi themes defult dizinine atin = http://yadi.sk/d/7PHY99GRLY42c

index.template.php bul
echo $context['html_headers'];üstüne ekle
// esto llamara a todos los archivos necesarios para q funcione nuestro codigo
   if ($context['user']['is_guest'])
      echo '
      <link rel="stylesheet" type="text/css" href="./Themes/default/login_cd/style.css" />
      <script type="text/javascript" src="./Themes/default/login_cd/jquery.min.js"></script>
      <script type="text/javascript" src="./Themes/default/login_cd/jquery.leanModal.min.js"></script>
      <script type="text/javascript">
         $(function() {
             $("a[rel*=leanModal]").leanModal({ top : 200, closeButton: ".modal_close" });      
         });
      </script>';
bul
<form id="guest_form" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
               <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
               <input type="text" name="user" size="10" class="input_text" />
               <input type="password" name="passwrd" size="10" class="input_password" />
               <select name="cookielength">
                  <option value="60">', $txt['one_hour'], '</option>
                  <option value="1440">', $txt['one_day'], '</option>
                  <option value="10080">', $txt['one_week'], '</option>
                  <option value="43200">', $txt['one_month'], '</option>
                  <option value="-1" selected="selected">', $txt['forever'], '</option>
               </select>
               <input type="submit" value="', $txt['login'], '" class="button_submit" /><br />
               <div class="info">', $txt['quick_login_dec'], '</div>';

      if (!empty($modSettings['enableOpenID']))
         echo '
               <br /><input type="text" name="openid_identifier" id="openid_url" size="25" class="input_text openid_login" />';

      echo '
               <input type="hidden" name="hash_passwrd" value="" />
            </form>
değiştir
<a id="go" rel="leanModal" name="signup" href="#signup">Giriş Yap</a>
<div id="signup">
  <div id="signup-ct">
    <div id="signup-header">
      <h2>', $txt['login'], '</h2>
      <p>',$context['forum_name'], ' </p>
      <a class="modal_close" href="#"></a> </div>
<form id="guest_form2" action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" ', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
  <div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
  <div class="txt-fld">
  <label for="">', $txt['username'], ':</label>
  <input type="text" name="user" size="10" class="input_text" />
  </div>
  <div class="txt-fld">
        <label for="">', $txt['password'], ':</label>
  <input type="password" name="passwrd" size="10" class="input_password" />
   </div>
   <div class="one_cookielength">
  <select class="modal_cookielength" name="cookielength">
    <option value="60">', $txt['one_hour'], '</option>
    <option value="1440">', $txt['one_day'], '</option>
    <option value="10080">', $txt['one_week'], '</option>
    <option value="43200">', $txt['one_month'], '</option>
    <option value="-1" selected="selected">', $txt['forever'], '</option>
  </select> </div>
  <br />
   <div class="btn-fld">
        <button type="submit" class="button_submit" />', $txt['login'], '</button>
      </div>
</form>
</div>
</div>




MENU ×