2012-02-03, 07:48 PM
Forum Link: http://www.eplforums.net
I've added a custom CSS navigation to my forum, which when view by a guest, displays "Login" and "Register". When the login button is clicked, the default login Javascript is executed, hiding the navigation buttons, and displaying the login area. It works fine but the problem at the minute is, the login area is too high up. Is there a way I can fix this??
(You can see what I mean if you go to my site above, and click "Login").
I'd like the login inputs, (and the rest), to be centered within the panel.
Here's my current header_welcomeblock_guest code:
Anybody help with this? It's been rattling my brain all day.
I've added a custom CSS navigation to my forum, which when view by a guest, displays "Login" and "Register". When the login button is clicked, the default login Javascript is executed, hiding the navigation buttons, and displaying the login area. It works fine but the problem at the minute is, the login area is too high up. Is there a way I can fix this??
(You can see what I mean if you go to my site above, and click "Login").
I'd like the login inputs, (and the rest), to be centered within the panel.
Here's my current header_welcomeblock_guest code:
<script type="text/javascript">
<!--
lang.username = "{$lang->login_username}";
lang.password = "{$lang->login_password}";
lang.login = "{$lang->login}";
lang.lost_password = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
lang.register_url = " — <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
lang.remember_me = "{$lang->remember_me}";
// -->
</script>
<ul class="navMain">
<span id="quick_login">
<li>
<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a>
</li>
<li>
<a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>
</li>
</span>
</ul>
Anybody help with this? It's been rattling my brain all day.