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 = 0
{ jQuery("#mobile_member").html("<a href='member.php?action=login'>Login</a> - <a href='member.php?action=register'>Register</a>"); }
if (var connected = 1
{ 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&logoutkey={$mybb->user['logoutkey']}">Logout</a>'; }
</script>
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 = 0
{ jQuery("#mobile_member").html("<a href='member.php?action=login'>Login</a> - <a href='member.php?action=register'>Register</a>"); }
if (var connected = 1
{ 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&logoutkey={$mybb->user['logoutkey']}">Logout</a>'; }
</script>