MyBB Community Forums
"undefined" in quick login box. - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Themes (https://community.mybb.com/forum-103.html)
+---- Forum: Theme Support (https://community.mybb.com/forum-10.html)
+---- Thread: "undefined" in quick login box. (/thread-131195.html)



"undefined" in quick login box. - ElectricShock - 2012-12-18

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?


RE: "undefined" in quick login box. - Euan T - 2012-12-18

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.


RE: "undefined" in quick login box. - ElectricShock - 2012-12-18

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>



RE: "undefined" in quick login box. - Euan T - 2012-12-18

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>



RE: "undefined" in quick login box. - ElectricShock - 2012-12-18

[Image: kjuhY.png]

The outcome.


RE: "undefined" in quick login box. - Euan T - 2012-12-18

Are you definitely using the latest version?


RE: "undefined" in quick login box. - ElectricShock - 2012-12-18

Version 1.6.9.

Edit:

I tried doing it again but this time on my localhost, and it worked.


RE: "undefined" in quick login box. - smxonline - 2013-05-15

(2012-12-18, 09:38 AM)ElectricShock Wrote: [Image: kjuhY.png]

The outcome.

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