Witam. Chciałbym edytować szybkie logowanie się:
[
attachment=11011]
Gdzie mam to edytować by by wyśrodkować "Zapamiętaj mnie" razem z checkboxem i zrobić odstęp linku "Nie pamiętam hasła" od Pola tekstu ?
(21.12.2016, 17:52)ficus napisał(a): [ -> ] (21.12.2016, 17:22)Ziome3eg napisał(a): [ -> ]Gdzie mam to edytować
https://webboard.pl/thread-45824.html?pi...#pid194059
wiem jak zbadać element tylko jak go badam to jest tak:
<!-- end: index -->
<div class="modal current" id="quick_login" style="position: fixed; top: 50%; left: 50%; margin-top: -115px; margin-left: -200px; z-index: 10000; display: block;">
<form method="post" action="http://abstractusnfs.ugu.pl/member.php">
<input name="action" type="hidden" value="do_login">
<input name="url" type="hidden" value="http://abstractusnfs.ugu.pl/">
<input name="quick_login" type="hidden" value="1">
<table width="100%" cellspacing="0" cellpadding="5" border="0" class="tborder">
<tbody><tr>
<td class="thead" colspan="2"><strong>Zaloguj się</strong></td>
</tr>
<tr>
<td class="trow1" width="25%"><strong>Login:</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>Hasło:</strong></td>
<td class="trow2">
<input name="quick_password" id="quick_login_password" type="password" value="" class="textbox"> <a href="http://abstractusnfs.ugu.pl/member.php?action=lostpw" class="lost_password">Nie pamiętam hasła</a>
</td>
</tr>
<tr>
<td class="trow1"> </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">Zapamiętaj mnie</label>
</td>
</tr>
<tr>
<td class="trow2" colspan="2">
<div align="center"><input name="submit" type="submit" class="button" value="Zaloguj się"></div>
</td>
</tr>
</tbody></table>
</form>
<a href="#close-modal" rel="modal:close" class="close-modal ">Close</a></div>
to modal to jest to ale nie wiem gdzie to mam edytować.
Temat można zamknąć.
Sam znalazłem gdzie to edytować.
Więc by to naprawić wchodzimy na acp->style i szablony->szablony->nazwa szablonu Templates->nagłówek - szablony->header_welcomeblock_guest i edytujemy:
<!-- Continuation of div(class="upper") as opened in the header template -->
<span class="welcome">{$lang->welcome_guest} <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">{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a></span>
</div>
</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"> </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>
<script type="text/javascript">
$("#quick_login input[name='url']").val($(location).attr('href'));
</script>
na :
<!-- Continuation of div(class="upper") as opened in the header template -->
<span class="welcome">{$lang->welcome_guest} <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">{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a></span>
</div>
</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="0" cellpadding="5" border="0" class="tborder">
<tbody><tr>
<td class="thead" colspan="2"><strong>Zaloguj się</strong></td>
</tr>
<tr>
<td class="trow1" width="25%"><strong>Login:</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>Hasło:</strong></td>
<td class="trow2">
<input name="quick_password" id="quick_login_password" type="password" value="" class="textbox">
</td>
</tr>
<tr>
<td class="trow2"><strong>Zapomniałeś/aś Haslo ?</strong></td>
<td class="trow2"><a href="member.php?action=lostpw">Kliknij tu aby odzyskać!</a></td>
</tr>
<tr>
<td class="trow1"> </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">Zapamiętaj mnie</label>
</td>
</tr>
<tr>
<td class="trow2" colspan="2">
<div align="center"><input name="submit" type="submit" class="buttonmodal" value="Zaloguj się"></div>
</td>
</tr>
</tbody></table>
</form>
</div>
<script type="text/javascript">
$("#quick_login input[name='url']").val($(location).attr('href'));
</script>