Please help me...
This style shows to guest view
Quote:
when we click login its shows bellow box
Quote:
so how can i set this box to show always as guest view???
You would need to change the template in the ACP.
I will try look into this for you
thank u... is there any solution?
It's Javascript in the welcome_block_guest i think you can set it to true rather than false but this is off the top of my head.
In Header Templates>header_welcomeblock_guest
Replace:
<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>
With:
<span id="quick_login"><form method="post" action="member.php">
<input type="hidden" name="action" value="do_login">
<input type="hidden" name="url" value="{$mybb->settings['bburl']}/index.php">
<input type="hidden" name="quick_login" value="1">
<input type="text" name="quick_username" value="{$lang->login_username}" class="textbox" onfocus="if(this.value == '{$lang->login_username}') { this.value=''; }" onblur="if(this.value == '') { this.value='{$lang->login_username}'; }" id="quick_login_username">
<input type="password" name="quick_password" value="{$lang->login_password}" class="textbox" onfocus="if(this.value == '{$lang->login_password}') { this.value=''; }" onblur="if(this.value == '') { this.value='{$lang->login_password}'; }">
<input type="submit" name="submit" value="{$lang->login}" class="button">
<span class="remember_me"><input type="checkbox" name="quick_remember" checked="checked" value="yes" class="checkbox" id="quick_login_remember"><label for="quick_login_remember">{$lang->remember_me}</label></span> — <a href="{$mybb->settings['bburl']}/member.php?action=lostpw">{$lang->lost_password}</a> — <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>
</form></span>
Thank you - G33K -
Came in useful for myself.