MyBB Community Forums

Full Version: User must login twice
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello... i have MyBB Forum (pramesti.com)
I Just change my header_welcomeblock_guest from :
<input type="hidden" name="action" value="do_login" />
to :
<input type="hidden" name="action" value="login" />

Because if i use do_login, when member login, it always back to index.php, why?

When i change the value to "login", when member login, they always login twice (also in member.php), why? But user back to page that they login from.

This is my full header_welcomeblock_guest :

<div class="pramestilogin">
<form action="member.php" method="post" class="form">
{$fbconnect}

<input type="text" class="InputLogin" name="username" size="25" maxlength="{$mybb->settings['maxnamelength']}" style="width: 100px;"  
onblur="if(this.value=='')this.value=' USERNAME';" onfocus="if(this.value==' USERNAME')this.value='';" value=" USERNAME"/>

<input type="password" class="InputLogin" name="password" size="25" style="width: 100px;" 
onblur="if(this.value=='')this.value=' PASSWORD';" onfocus="if(this.value==' PASSWORD')this.value='';" value=" PASSWORD"/>
<input type="submit" class="bluebutton" name="submit" value="{$lang->login}" />

<input type="hidden" name="action" value="login" />
<input type="hidden" name="url" value="{$url}" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="{$mybb->settings['bburl']}/member.php?action=register"><img src="img/tregister.png" alt="Register/Daftar/SignUp"></a> 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="{$mybb->settings['bburl']}/member.php?action=lostpw"><img src="img/tforget.png" alt="Forget/Lupa Password?"></a>

</form>
</div>

Need support and suggestion, and thanks for help...
" ... if i use do_login, when member login, it always back to index.php ..." <-- it is coded like that !!

you can try getting last viewed page (from browser history !?) AND redirecting to it ...
Thanks for answer ranjani. But, how to do that? (from browser history) Tq
Hi,

The MyBB group offers support under the conditions of our Support Eligibility policy. It is apparent that one or more of your forums do not meet the conditions of our policy and therefore you are ineligible for support. This could be because of adult, piracy or hacking related content or because your forum does not display the minimum “Powered by MyBB” notice.

If you have any questions regarding this policy please post in the Private Inquiries forum.

Regards,
The MyBB group.