Help with header

jdab

Madly Diligent
Joined
Aug 29, 2010
Messages
9,642
Reaction score
1
FP$
21
This theme did not have some links that I wanted in the header (PMs, comments, new posts, mood etc), so have added them manually, however I'm having some trouble.

The User CP, Mod CP, Admin CP, avatar etc are on the left, and I want these new links on the right in line with them, however for some reason they are on the right, but below the header, in the logo (and slightly out of the header).

If you wanna take a look, the link to the forum is www.BarzRusTV.co.uk/forum.

Here is the code I made:
Code:
<span style="float:left;"><img src="{$mybb->settings['bburl']}/{$mybb->user['avatar']}" height="45" width="50">&nbsp;</span><div id="paneltext">{$lang->welcome_back}<br/><a href="{$mybb->settings['bburl']}/usercp.php"><img src="images/alphagaming/usercp.png"></img>&nbsp;<strong>{$lang->welcome_usercp}</strong></a>{$modcplink}{$admincplink} <a href="{$mybb->settings['bburl']}/member.php?action=logout&amp;logoutkey={$mybb->user['logoutkey']}"><img src="images/alphagaming/logout.png" alt="log out"/></img>&nbsp;{$lang->welcome_logout}</a></div><br />

<span style="float:right;"><a href="#" onclick="MyBB.popupWindow('{$mybb->settings['bburl']}/misc.php?action=buddypopup', 'buddyList', 350, 350);">{$lang->welcome_open_buddy_list}</a> | {$moodlink}<br><a href="{$mybb->settings['bburl']}/search.php?action=getnew">{$lang->welcome_newposts}</a> | <a href="{$mybb->settings['bburl']}/search.php?action=getdaily">{$lang->welcome_todaysposts}</a><br>
<a href="{$mybb->settings['bburl']}/private.php">{$lang->welcome_pms}</a> {$lang->welcome_pms_usage}<!-- ProfileComments --> | <a href="{$mybb->settings['bburl']}/member.php?action=profile&uid={$mybb->user['uid']}" title="{$lang->profile_comments}">{$lang->profile_comments_new_inmenu}</a> {$lang->profile_comments_new_inmenu_count}<!-- /ProfileComments --></span>

Help is much appreciated.
 
So you want the profile comments etc on the right instead of under the avatar etc?
 
J Greig said:
So you want the profile comments etc on the right instead of under the avatar etc?
I just want the New Posts and the other links I have on the right hand side to be flush in the banner on the right.
 
Try adding that here:

<div id="panel">

You'll want it to read:

<div id="panel" style="overflow:auto;">
 
Jake said:
Try adding that here:

<div id="panel">

You'll want it to read:

<div id="panel" style="overflow:auto;">
Where!?
 
Correct me if I am wrong, I am not good with MyBB nor do I know ANYTHING about the tempting of it, but I took this code from the source of your index page. I'm assuming that this section of the code is the header template:

Code:
<!-- start: header -->
<div id="container">

<a href="index.php"><div id="mainpic"></a>
<div id="ttop">

<div id="panel" style="overflow:auto;">
<!-- start: header_welcomeblock_guest -->
<script type="text/javascript">
<!--
	lang.username = "Username";
	lang.password = "Password";
	lang.login = "Login";
	lang.lost_password = "<a href=\"http://www.BarzRusTV.co.uk/forum/member.php?action=lostpw\">Lost Password?<\/a>";
	lang.register_url = "<a href=\"http://www.BarzRusTV.co.uk/forum/member.php?action=register\">Register<\/a>";
	lang.remember_me = "Remember me";
// -->
</script>
<span id="quick_login">Hello There, Guest!&nbsp;&nbsp;<a href="http://www.BarzRusTV.co.uk/forum/member.php?action=login">Login</a> &mdash; <a href="http://www.BarzRusTV.co.uk/forum/member.php?action=register">Register</a></span>
<!-- end: header_welcomeblock_guest -->
</div>

<a href="index.php"><div id="tlogo">
</div>
</a></div>
</div>
		<a name="top" id="top"></a>
		<div id="header">
			
			<div class="menu">
				<ul>
                                        <li><a href="http://www.BarzRUsTV.co.uk">Home</a></li> |
                                        <li><a href="http://www.barzrustv.co.uk/category/music/">Music</a></li> |
                                        <li><a href="http://www.BarzRUsTV.co.uk">Blog</a></li> |
                                        <li><a href="http://www.BarzRUsTV.co.uk/forum">Forum</a></li> |
                                        <li><a href="http://www.YouTube.com/BarzRUsTV">Videos</a></li> |
					<li><a href="http://www.BarzRusTV.co.uk/forum/search.php">Search</a></li> |
					<li><a href="http://www.BarzRusTV.co.uk/forum/memberlist.php">Member List</a></li> |
					<li><a href="http://www.BarzRusTV.co.uk/forum/misc.php?action=help">Help</a></li>
				</ul>

<div id="searchbar"><a name="top" id="top"></a>
<div style="float:right;">
<td class="trow1" align="center">
<form method="post" action="http://www.BarzRusTV.co.uk/forum/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<!-- start: gobutton -->
<INPUT TYPE="image" SRC="images/alphagaming/gosearch.png" HEIGHT="14" WIDTH="16" value="Submit" >
<!-- end: gobutton -->
<input type="text" class="textbox" name="keywords" style="background:#333; width:120px; height:20px; border:2px solid #525252; color:#FFF; "  value=" Search..." />

</form>
</td>
</div></div>
			</div>
			<hr class="hidden" />
			
		</div>
		<hr class="hidden" />
		<br class="clear" />
		<div id="content">
			
			
			
			<!-- ProfileComments -->
			<!-- /ProfileComments -->
			
			<!-- start: nav -->

<div class="navigation">
<!-- start: nav_bit_active -->
<span class="active">Forum - BarzRusTV.co.uk</span>
<!-- end: nav_bit_active -->
</div>
<!-- end: nav -->

<!-- end: header -->

If that is, indeed, the header code, you can just copy and paste that as I have added in what Jake suggested, and it should work. If that is not the right bit of code, ignore this and go about your business. 😉
 
ACP -> Templates/Styles -> Templates -> header templates -> header

add what I said.
 
Back
Top Bottom