MyBB Community Forums

Full Version: Fixing Coding
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
http://thememaking.herobo.com/

In the welcome box in the top right, I do not like how there is two registers. When I delete one of the codes from the header_guest template, it just changes it to "undefined". How do I fix this?

Also, when going to click on "remember me", it also highlights the "time".

Here is my header coding. Thanks in advance.


<a><!-- start: header_welcomeblock_guest -->
<script type="text/javascript">
<!--
	lang.username = "Username";
	lang.password = "Password";
	lang.login = "Login";
	lang.register_url = " &mdash; <a href=\"http://thememaking.herobo.com/member.php?action=register\">Register<\/a>";	
        lang.lost_password = " &mdash; <a href=\"http://thememaking.herobo.com/member.php?action=lostpw\">Lost Password?<\/a>";
	lang.remember_me = "Remember me";
// -->
</script>
<span style="float: right;"><strong>Current time:</strong> 05-23-2013, 04:42 AM</span>
		<span id="quick_login">Hello There, Guest! (<a href="http://thememaking.herobo.com/member.php?action=login" onclick="MyBB.quickLogin(); return false;">Login</a> &mdash; <a href="http://thememaking.herobo.com/member.php?action=register">Register</a>)</span>
<!-- end: header_welcomeblock_guest --></a>
<!-- end: header_welcomeblock_guest --></a>

					</div>
Try this.
<!-- start: header_welcomeblock_guest -->
<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\" class=\"lost_password\">{$lang->lost_password}<\/a>";
	lang.register_url = "<a href=\"{$mybb->settings['bburl']}/member.php?action=register\" class=\"register\">{$lang->welcome_register}<\/a>";
	lang.remember_me = "{$lang->remember_me}";
// -->
</script>
<span style="float: right;"><strong>Current time:</strong> 05-23-2013, 04:42 AM</span>
        <span id="quick_login">Hello There, Guest! (<a href="http://thememaking.herobo.com/member.php?action=login" onclick="MyBB.quickLogin(); return false;">Login</a> &mdash; <a href="http://thememaking.herobo.com/member.php?action=register">Register</a>)</span>

                    </div>
Same problems still occuring :/
No clue... Sorry.
It's fine, thanks anyways.