• Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Members
  • Team
  • Help
  • More
    • YouTube
    • Facebook
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Members Team Help
    More Subscribe YouTube Facebook
    D&D Forums - MyBB Plugins & Themes MyBB Ressources Free MyBB Themes Support login problem with Emerald v1.6

     
    • 0 Vote(s) - 0 Average
    login problem with Emerald v1.6
    BlackEnergyPT
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: Sep 2018
    Reputation: 0
    #1
    09-12-2018, 12:40 AM
    [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]
    AmazOuz
    Offline

    Administrator

    Posts: 272
    Threads: 34
    Joined: Oct 2017
    Reputation: 11
    #2
    09-12-2018, 10:24 AM
    Hello,
    It's generaly caused by MyBB (for a reason or another), read this : https://community.mybb.com/thread-218436.html
    BlackEnergyPT
    Offline

    Junior Member

    Posts: 2
    Threads: 1
    Joined: Sep 2018
    Reputation: 0
    #3
    09-12-2018, 12:42 PM (This post was last modified: 09-12-2018, 01:32 PM by BlackEnergyPT.)
    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>
    AmazOuz
    Offline

    Administrator

    Posts: 272
    Threads: 34
    Joined: Oct 2017
    Reputation: 11
    #4
    09-12-2018, 01:36 PM
    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
    Lewis-H
    Offline

    Junior Member

    Posts: 2
    Threads: 0
    Joined: Aug 2020
    Reputation: 0
    #5
    10-23-2020, 11:44 AM
    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>
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    D&D Company

    Home · Members · Team · Help · Contact

    © D&D - Powered by MyBB

    Paris, France

    07 53 04 58 86

    business@developement.design

    About the company We are a growing company of web developers & designers, specialized in MyBB plugins & themes. Our work is our propaganda.

    Linear Mode
    Threaded Mode