Not Solved Adding a logout link in a drop down? Flatty Theme
#1
Not Solved
So I'm using the Flatty theme, was changing it a bit and making it less cluttered and I noticed that when you login, the part where it says "Welcome ____" if you click the down arrow, I'm assuming it should have a drop down menu to be able to log out?  Anyways it doesn't do anything besides refresh the page.  So how do I add the logout link to it?  Been a very long time since I've done any coding, I've almost forgotten everything and can't seem to figure this out on my own either.

I'm pretty sure it's in the header_welcomeblock_member template and I think I gotta change something in this part but I might be wrong.

<span class="float_left">
	<a href="" id="ddnmenu">Welcome back, {$mybb->user['username']} <i class="fa fa-caret-down"></i></a>
			<div id="ddnmenu_popup" class="popup_menu" style="display: none;">
				<div class="popup_item_container">
					<a href="{$mybb->settings['bburl']}/usercp.php" class="popup_item clr_gry">
						User Panel
						<i class="fa fa-user menuadj"></i>
					</a>
				</div>
				<div class="popup_item_container">
					<a href="{$mybb->settings['bburl']}/usercp.php?action=profile" class="popup_item clr_gry">Edit Profile
						<i class="fa fa-pencil menuadj"></i></a>
				</div>
				<div class="popup_item_container">
					<a href="{$mybb->settings['bburl']}/usercp.php?action=options" class="popup_item clr_gry">Edit Options
						<i class="fa fa-cogs menuadj"></i></a>
				</div>
				<div class="popup_item_container">
					<a href="{$mybb->settings['bburl']}/usercp.php?action=avatar" class="popup_item clr_gry">Edit Avatar
						<i class="fa fa-picture-o menuadj"></i></a>
				</div>
				<div class="popup_item_container">
					<a href="{$mybb->settings['bburl']}/usercp.php?action=editsig" class="popup_item clr_gry" style="padding-bottom: 4px;">Edit Signature
						<i class="fa fa-paint-brush menuadj"></i></a>
				</div>
				<div class="popup_item_container" style="border-top: 1px solid rgba(0, 0, 0, .023);">
					<a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" class="popup_item clr_gry">{$lang->welcome_logout}!
						<i class="fa fa-power-off menuadj"></i>
					</a>
				</div>	
		</div>
		<script type="text/javascript">
			// <!--
				if(use_xmlhttprequest == "1")
					{
						$("#ddnmenu").popupMenu();
					}
			// -->
		</script>
	
	<a href="{$mybb->settings['bburl']}/private.php" style="margin-left: 14px;">{$lang->welcome_pms}</a> <a href="{$mybb->settings['bburl']}/private.php"><span class="pmbg bradius-full">{$mybb->user['pms_unread']}</a></span>
</span>
Reply
#2
Not Solved
Enable the XMLHttp features.

Admin CP  »  Configuration  »  Board Settings  »  Enable XMLHttp request features? - [Yes]
Reply
#3
Not Solved
(2016-08-18, 07:34 PM)delay Wrote: Enable the XMLHttp features.

Admin CP  »  Configuration  »  Board Settings  »  Enable XMLHttp request features? - [Yes]

It's already enabled.

Edit: Found how to fix it: https://community.mybb.com/thread-195572...pid1230459
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)