MyBB Community Forums

Full Version: Login/Logout problems? PLEASE READ
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It's because you've got the whole login area linking to the logout form.

Go to AdminCP -> Styles and Templates -> Templates -> *expand template set* -> Header Templates -> header_welcomeblock_guest. Search for <div id="panel"> (which should be near the end) and remove the following:
<a href="http://thefishforum.co.uk/member.php?action=logout&amp;logoutkey=">

After I removed this code when using Chrome's Dev Tools (this doesn't actually edit it btw), login was working fine.
<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
			<div class="menu">
				<ul>
<center><li><a href="{$mybb->settings['bburl']}/index.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/Home.gif" alt=""
<a href="http://thefishforum.co.uk/"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/portal-1.gif" alt=""/>
<a href="{$mybb->settings['bburl']}/private.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/messages.gif" alt=""/>
<a href="{$mybb->settings['bburl']}/usercp.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/profile.gif" alt=""/>		
	<a href="{$mybb->settings['bburl']}/search.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/search.gif" alt=""/>
					<a href="{$mybb->settings['bburl']}/memberlist.php"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/members.gif" alt=""/>
					<a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/faq.gif" alt=""/>
<a href="http://thefishforum.co.uk/member.php?action=login"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/loginbutton.png"></a>
<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><img src="http://i1225.photobucket.com/albums/ee385/_FreedomFighter_/Forum%20things/logout.gif">
				</ul></center>
			</div> 
			<hr class="hidden" />
			<div id="panel">
				{$welcomeblock}
			</div>
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			{$pm_notice}
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			{$pending_joinrequests}
<navigation>
			<br />

Thats my header template. I don't see (or can find) that coding to remove. I feel that this may not be my problem.

Tried to spoiler that, didn't work, sorry for long post.
Edited my post and yes, it's the problem, because nobody else has this problem.

If you want, you can PM me account details for an admincp account that can access templates and I can remove the bad code for you.
<script type="text/javascript">
<!--
	lang.username = "{$lang->login_username}";
	lang.password = "{$lang->login_password}";
	lang.login = "{$lang->login}";
	lang.lost_password = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=lostpw\">{$lang->lost_password}<\/a>";
	lang.register_url = " &mdash; <a href=\"{$mybb->settings['bburl']}/member.php?action=register\">{$lang->welcome_register}<\/a>";
	lang.remember_me = "{$lang->remember_me}";
// -->
</script>
<span style="float: right;">{$lang->welcome_current_time}</span>
		<span id="quick_login">{$lang->welcome_guest} (<a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="MyBB.quickLogin(); return false;">{$lang->welcome_login}</a> &mdash; <a href="{$mybb->settings['bburl']}/member.php?action=register">{$lang->welcome_register}</a>)</span>

Thats the header_welcomeblock_guest.

I see no <div id="panel">
<div id="panel"> was in the header template, which had a template variable calling the welcomeblock. Don't worry about that part.

EDIT: Strange. When I view the source code, there isn't any sign of that logout code near the panel div. But in Chrome Inspect Elements, it's there.
Yeah, see my problem?

Yet my coding for the NavBar works perfectly well. Makes no sense to me at all. I haven't messed with any of the original template setting bar what i added, and what I added works fine.
I've checked through several templates and cannot seem to find the code that is breaking your panel login form. I'll see if I can get Matt to look at this.
Right, should I keep the Pword the same as the one i sent you or am I free to change it back?

Complicated eh.
Just keep it for now, Matt will likely need it.
I have reverted back to my original password.
I have found away around the problem in a way I am happy with. If Matt would still like to access my ACP to find out what's wrong, please contact me via PM and I will happily oblige.