D&D Forums - MyBB Plugins & Themes
login problem with Emerald v1.6 - Printable Version

+- D&D Forums - MyBB Plugins & Themes (https://developement.design/forum)
+-- Forum: MyBB Ressources (https://developement.design/forum/forumdisplay.php?fid=5)
+--- Forum: Free MyBB Themes (https://developement.design/forum/forumdisplay.php?fid=7)
+---- Forum: Support (https://developement.design/forum/forumdisplay.php?fid=12)
+---- Thread: login problem with Emerald v1.6 (/showthread.php?tid=573)



login problem with Emerald v1.6 - BlackEnergyPT - 09-12-2018

[color=rgba(0, 0, 0, 0.87)]My name is Bruno Ribeiro, I am creating a forum for my community.[/color][color=rgba(0, 0, 0, 0.87)]MyBB forum and version 1.8.18 and I am using PHP Version 5.6.37-1 + ubuntu14.04.1 + deb.sury.org + 1. My problem and login, when I register the first times do not give problems, but when[/color][color=rgba(0, 0, 0, 0.87)]I login again give this error "authorization code mismatch. Are you accessing this function correctly? Please go back and try again."[/color][color=rgba(0, 0, 0, 0.87)]I have all the plugins disabled even though I am giving error.[/color]

[color=rgba(0, 0, 0, 0.87)]my link my forum and https://forum.alphagamers.ovh/[/color]


RE: login problem with Emerald v1.6 - AmazOuz - 09-12-2018

Hello,
It's generaly caused by MyBB (for a reason or another), read this : https://community.mybb.com/thread-218436.html


RE: login problem with Emerald v1.6 - BlackEnergyPT - 09-12-2018

I want to tell it to go member_login in the template.
for me add <input type="hidden" name="url" value="{$redirect_url}" /> following this line <input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
right? just that it does not matter where it has member_login it only has this

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->login}</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
{$inline_errors}
{$member_loggedin_notice}
<form action="member.php" method="post">
<table style="width:40%;text-align:center;" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
</tr>
<tr>
<td class="trow1"><br></td>
<td class="trow1"></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->username}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" size="25" style="width: 200px;" value="{$username}" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong></td>
<td class="trow2"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" value="{$password}" /></td>
</tr>
<tr>
<td class="trow1" colspan="2" align="center"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes" /> {$lang->remember_me} <br> (<a href="member.php?action=lostpw">{$lang->lostpw_note}</a>)</label></td>
</tr>
<tr>
<td class="trow1"><br></td>
<td class="trow1"></td>
</tr>
{$captcha}
</table>
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->login}" /></div>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
</form>
{$footer}
</body>
</html>

I have been analyzing the code and many people have come to say many ways of correction and all are not giving, this correction is already done and already works the login system without giving that warning is the correct code all


<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->login}</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
{$inline_errors}
{$member_loggedin_notice}
<form action="member.php" method="post">
<table style="width:40%;text-align:center;" border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
</tr>
<tr>
<td class="trow1"><br></td>
<td class="trow1"></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->username}</strong></td>
<td class="trow1"><input type="text" class="textbox" name="username" size="25" style="width: 200px;" value="{$username}" /></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->password}</strong></td>
<td class="trow2"><input type="password" class="textbox" name="password" size="25" style="width: 200px;" value="{$password}" /></td>
</tr>
<tr>
<td class="trow1" colspan="2" align="center"><label title="{$lang->remember_me_desc}"><input type="checkbox" class="checkbox" name="remember" checked="checked" value="yes" /> {$lang->remember_me} <br> (<a href="member.php?action=lostpw">{$lang->lostpw_note}</a>)</label></td>
</tr>
<tr>
<td class="trow1"><br></td>
<td class="trow1"></td>
</tr>
{$captcha}
</table>
<br />
<div align="center"><input type="submit" class="button" name="submit" value="{$lang->login}" /></div>
<input type="hidden" name="action" value="do_login" />
<input type="hidden" name="url" value="{$redirect_url}" />
<input name="my_post_key" type="hidden" value="{$mybb->post_code}" />

</form>
{$footer}
</body>
</html>


RE: login problem with Emerald v1.6 - AmazOuz - 09-12-2018

Hello,
I do not know why this problem is here, one thing is sure, it's not with the theme because i use this theme also and thousands are using Emerald.
Please contact MyBB support


RE: login problem with Emerald v1.6 - Lewis-H - 10-23-2020

OK, i got the same issue as well, but i find a solution and get the problem solved tho. Cool Cool

Here it is:

In 'header templates' > 'header_welcomeblock_member', it should have the following codes (add them to the bottom if not existed in yours):

<script>
var connected = 1;
</script>
None

In 'header templates' > 'header_welcomeblock_guest', add the following codes to the bottom if not existed:

<script>
var connected = 0;
</script>
None

then go to 'header templates' > 'header', add the following codes to the bottom:

<script>
if (var connected = 0Wink
{ jQuery("#mobile_member").html("<a href='member.php?action=login'>Login</a> - <a href='member.php?action=register'>Register</a>"); }
if (var connected = 1Wink
{ document.getElementById("mobile_member").innerHTML = '<a title="Inbox" href="private.php">Inbox</a> - <a title="User CP" href="usercp.php">User CP</a> - <a title="Log Out" href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}">Logout</a>'; }
</script>