MyBB Community Forums

Full Version: Add login register menu in header?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How To Add  This Login register Menu ?

[Image: tyt.GIF]

Login Then Show This Type

[Image: dxf.GIF]

Place Hare 
[Image: Capture.GIF]


It's Mybb 1.8.14 Default Theme
This is similar to vBulletin and easily possible in MyBB as well.
But I don't think that this is default MyBB theme, can you share the theme name ?
I believe this is an older theme on MyBB extend but not default one.
(2018-05-28, 01:06 PM)WallBB Wrote: [ -> ]This is similar to vBulletin and easily possible in MyBB as well.
But I don't think that this is default MyBB theme, can you share the theme name ?
I believe this is an older theme on MyBB extend but not default one.



Sir I know it's mybb Default theme because I did not change the theme after installing Mybb from Cpanel.


I customized it
Mybb 1.8.14

[Image: Screenshot_2018-05-28-19-21-11.png]

Sir Please Help

How to add This [Image: 68747470733a2f2f322e62702e626c6f6773706f...742e474946]
In My Header
Okay, please share your website URL and code inside header, header_welcomeblock_guest and header_welcomeblock_member templates.
(2018-05-29, 10:20 AM)WallBB Wrote: [ -> ]Okay, please share your website URL and code inside header, header_welcomeblock_guest and header_welcomeblock_member templates.

Header
<div id="container">
		<a name="top" id="top"></a>
		<div id="header">
			<div id="logo">
				<div class="wrapper">
					<a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a>
					<ul class="menu top_links">
						{$menu_portal}
						{$menu_search}
						{$menu_memberlist}
						{$menu_calendar}
						<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help"></a></li>
					</ul>
				</div>
			</div>
								<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
        <nav>
        <label for="drop" class="toggle"><i class="fa fa-bars" aria-hidden="true"></i> Menu</label>
        <input type="checkbox" id="drop" />
            <ul class="menu">
				<li><a href="{$mybb->settings['bburl']}/index.php" class="Home"><span><i class="fa fa-home" aria-hidden="true"></i> Home</span></a></li>
				<li><a href="{$mybb->settings['bburl']}/showthread.php?tid=4" class="Members"><span><i class="fa fa-user" aria-hidden="true"></i> Forum Rules</span></a></li>
				<li><a href="{$mybb->settings['bburl']}/search.php" class="Search"><span><i class="fa fa-search" aria-hidden="true"></i> Search</span></a></li>
                <li><a href="{$mybb->settings['bburl']}/search.php?action=results&sid=7fd9f2e9f7c441f673257167728da222"><span><i class="fa fa-globe" aria-hidden="true"></i> New Post</span></a></li>	
                <li>
                    <!-- First Tier Drop Down -->
                    <label for="" class="toggle">Dropdown <i class="fa fa-sort-desc" aria-hidden="true"></i></label>
                    <a href="#">Dropdown</a>
                    <input type="checkbox" id="drop-1"/>
                    <ul>
                        <li><a href="#">Links</a></li>
                        <li><a href="#">Links</a></li>
                        <li><a href="#">Links</a></li>
                    </ul> 
                </li>
                <li>
				<li><a href="{$mybb->settings['bburl']}/misc.php?action=help" class="help"><span><i class="fa fa-question"></i> {$lang->toplinks_help}</span></a></li>
            </ul>
		</nav>
			<div id="panel">
				<div class="upper">
					<div class="wrapper">
						{$quicksearch}
						{$welcomeblock}
					<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
				<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
			</div>
		</div>
		<div id="content">
			<div class="wrapper">
				{$oa_login_other_page}{$pm_notice}
				{$remote_avatar_notice}
				{$bannedwarning}
				{$bbclosedwarning}
				{$unreadreports}
				{$pending_joinrequests}
				{$awaitingusers}
				<navigation>
				<br />



Header Welcome Guest

						<!-- Continuation of div(class="upper") as opened in the header template -->
						<span class="welcome">{$lang->welcome_guest} <a href="{$mybb->settings['bburl']}/member.php?action=login" onclick="$('#quick_login').modal({ fadeDuration: 250, keepelement: true, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;" class="login">{$lang->welcome_login}</a> <a href="{$mybb->settings['bburl']}/member.php?action=register" class="register">{$lang->welcome_register}</a></span>
					</div>
				</div>
				<div class="modal" id="quick_login" style="display: none;">
					<form method="post" action="{$mybb->settings['bburl']}/member.php">
						<input name="action" type="hidden" value="do_login" />
						<input name="url" type="hidden" value="" />
						<input name="quick_login" type="hidden" value="1" />
						<table width="100%" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" border="0" class="tborder">
							<tr>
								<td class="thead" colspan="2"><strong>{$lang->login}</strong></td>
							</tr>
							<tr>
								<td class="trow1" width="25%"><strong>{$login_username}</strong></td>
								<td class="trow1"><input name="quick_username" id="quick_login_username" type="text" value="" class="textbox initial_focus" /></td>
							</tr>
							<tr>
								<td class="trow2"><strong>{$lang->password}</strong></td>
								<td class="trow2">
									<input name="quick_password" id="quick_login_password" type="password" value="" class="textbox" /> <a href="{$mybb->settings['bburl']}/member.php?action=lostpw" class="lost_password">{$lang->lost_password}</a>
								</td>
							</tr>
							<tr>
								<td class="trow1">&nbsp;</td>
								<td class="trow1 remember_me">
									<input name="quick_remember" id="quick_login_remember" type="checkbox" value="yes" class="checkbox" checked="checked" />
									<label for="quick_login_remember">{$lang->remember_me}</label>
								</td>
							</tr>
							<tr>
								<td class="trow2" colspan="2">
									<div align="center"><input name="submit" type="submit" class="button" value="{$lang->login}" /></div>
								</td>
							</tr>
						</table>
					</form>
				</div>
				<script type="text/javascript">
					$("#quick_login input[name='url']").val($(location).attr('href'));
				</script>

Header Welcome Member

<!-- Continuation of div(class="upper") as opened in the header template -->
	<span class="welcome">{$lang->welcome_back} <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}" class="logout">{$lang->welcome_logout}</a></span>
	</div>
</div>
<div class="lower">
	<div class="wrapper">
		<ul class="menu panel_links">
			{$usercplink}
			{$modcplink}
			{$admincplink}
		</ul>
		<ul class="menu user_links">
			<li><a href="javascript:void(0)" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup&modal=1', null, true); return false;">{$lang->welcome_open_buddy_list}</a></li>
			{$searchlink}
			{$pmslink}
		</ul>
	</div>
	<br class="clear" />
</div>



Ok Sir 

I'am Waiting For You Exclamation Exclamation
Sir I Still Waiting For You!
What's Problem Sir? Angry