Support for SMF Tricks Themes & Mods

0 Members and 1 Guest are viewing this topic.

*
bry82
Sniffer
Hi,
is it possible to remove the button "login" and "register" from the blue header?
thank you






*
Daniel
#1
Webmaster
Index.template.php (Themes/Reseller)
Search and delete:
Code: [Select]
else
{
echo'
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal">', $txt['login'] ,'</button>
<button type="button" class="btn btn-primary" onclick="location.href=\''. $scripturl .'?action=register\'">', $txt['register'] ,'</button>
<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="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="myModalLabel">', $txt['login'] ,'</h4>
</div>
<div class="modal-body">
<div class="form-group">
<input type="text" name="user" class="form-control" placeholder="', $txt['user'] ,'" />
</div>
<div class="form-group">
<input type="password" name="passwrd" class="form-control" placeholder="', $txt['password'] ,'" />
</div>
<div class="checkbox">
<label>
<input name="cookielength" type="checkbox" value="-1" /> ', $txt['rs_remember'] ,'
</label>
</div>
</div>
<div class="modal-footer">
<button type="submit" class="btn btn-success">', $txt['login'] ,'</button>
</div>
</div>
</div>
</div>
</form>';
}
*
bry82
#2
Sniffer
Brilliant! Thank you!