Not Solved "undefined" in quick login box.
#1
Not Solved
I have the generic Hello Guest, Login or Register message on my header_welcomeblock_guest. Whenever I click on the "Login" text, the quick login form appears, but instead of the "Remember Me", an "undefined" appears instead.

How do I fix it?
[Image: MaDuhur.png]
by Dukhor, IcyBoards Community Forums
Reply
#2
Not Solved
Sounds like an issue with the theme. Could you post the header_welcomeblock_guest template here? I'm huessing it's missing the language definition.
Reply
#3
Not Solved
Sure.

<div id="panel">
<script type="text/javascript">
<!--
	lang.username = "{$lang->login_username}";
	lang.password = "{$lang->login_password}";
	lang.login = "{$lang->login}";
	lang.lost_password = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
	lang.register_url = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
// -->
</script>
		<span id="quick_login">{$lang->welcome_guest}(<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span>
</div>
[Image: MaDuhur.png]
by Dukhor, IcyBoards Community Forums
Reply
#4
Not Solved
Okay, replace the <script> block with this:

<script type="text/javascript">
<!--
	lang.username = "{$login_username}";
	lang.password = "{$lang->login_password}";
	lang.login = "{$lang->login}";
	lang.lost_password = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
	lang.register_url = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
	lang.remember_me = "{$lang->remember_me}";
// -->
</script>
Reply
#5
Not Solved
[Image: kjuhY.png]

The outcome.
[Image: MaDuhur.png]
by Dukhor, IcyBoards Community Forums
Reply
#6
Not Solved
Are you definitely using the latest version?
Reply
#7
Not Solved
Version 1.6.9.

Edit:

I tried doing it again but this time on my localhost, and it worked.
[Image: MaDuhur.png]
by Dukhor, IcyBoards Community Forums
Reply
#8
Not Solved
(2012-12-18, 09:38 AM)ElectricShock Wrote: [Image: kjuhY.png]

The outcome.

Same Issue here.how to resolve...???
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)