MyBB Community Forums

Full Version: MyBB is not redirected to the previous page after login/logout
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

I'm using an iframe to login the MyBB.

It called "login.php"

And the template of that file is member_login

Here is that template:

<html>
<head>
<title>{$lang->login} - {$mybb->settings[bbname]}</title>
<base target="_parent" />
<link rel="stylesheet" type="text/css" media="all" href="{$mybb->settings['cdnurl']}/assets/stylesheets/common.css" />
<link rel="stylesheet" type="text/css" media="all" href="{$mybb->settings['cdnurl']}/assets/stylesheets/master.css" />
{$miniheader}
</head>
<body>
<div id="embedded-login">
<h1>{$lang->login}</h1>
<form method="post" action="{$mybb->settings['bburl']}/member.php">
<a id="embedded-close" href="javascript:;" tabindex="12000" onclick="window.parent.jQuery('#blackout, #login-embedded').hide('slow');" rel="closeLogin"></a>
<div>
<p>
<label for="quick_username" class="label">{$lang->login_username}</label>
<input type="text" name="quick_username" size="25" maxlength="{$mybb->settings['maxnamelength']}" id="username" value="" tabindex="1" class="input"/>
</p>
<p>
<label for="quick_password" class="label">{$lang->login_password}</label>
<input type="password" id="password" name="quick_password" tabindex="2" autocomplete="off" class="input"/>
</p>
<p>
<span id="remember-me">
<label for="remember">
<input type="checkbox" checked="checked" name="quick_remember" value="yes" id="remember"/>
{$lang->remember_me}
</label>
</span> <!-- /end remember-me -->
<button class="ui-button button1" tabindex="3" type="submit" data-text="Đang xử lý...">
<span class="button-left"><span class="button-right">{$lang->login}</span></span>
</button>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<input type="hidden" name="quick_login" value="1" />
</p>
</div>
<ul id="help-links">
<li class="icon-pass">
<a href="{$mybb->settings['bburl']}/member.php?action=lostpw">{$lang->lost_password}</a>
</li>
<li class="icon-signup">
<a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>!
</li>
</ul> <!-- /end help-links -->
</form>
</div> <!-- /end embedded-login -->
</body>
</html>


And yes, it's always redirect to the forum index.

Any solutions?

Ps: I'm using the lastest mybb version : 1.6.10
No one care about this ?
400 views and no replies Sad
bump

I am having this same problem. It redirect to index.php not to the page i was before loggin in.
Dear all, I'm using the lastest version of MyBB with a customized theme from the default one.
So I think it's not nesescary to edit the codes. Because of new version will have patch for old bugs.

Anyway, I fixed this issue myself. It's not about jQuery Conflict, it never happens with my sites. Thanks for your helps.