MyBB Community Forums

Full Version: Bug - v1.2.3 - Header Template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
<div id="content">
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
			<navigation>
			<br class="clear" />

There is no closing wrapper for <div id="content"

Ok! Ok! Smile

You are going to say it's not a bug. Because the MyBB Default theme works just hunky-dory. Sad

If you add any other tables or javascript, (NO <div code) to the header, the nav bar screws up something awful!

Closing that wrapper fixes that problem. Smile

I put it after $unreadreports... Not a 100% sure if that's the right place to close it off, because I'm not familiar with ALL of the MyBB variables and what pops up when the other ones are called. Yet! Sad
Actually, the close tag is later on it seems. Try viewing source and looking at the information for the "<!-- start: header -->" and check for yourself. I would guess that the template is finished by a subtemplate, however it would be a bit easier on designers if there was a template "link" method, so we could see that a little more clearly.
Why would we not fix it, if it actually was a bug?

Anyway moving to Suggestions forum since it seems it is indeed closed later on.
The closing to the <div id="content"> is in the footer template...

What does it do when you add something to there? Because it's never caused any problem for me...
Hi Justin,

This is what it does, I haven't fixed this one or /Theme-02:
Go to...

http://aus-themes.com/MyBB-Themes/Theme-01/portal.php

View the forum etc, go into Category / posts etc, and the nav link disappears but appears on mouse over, and acts like a.hover.. ?

And if that </div is elsewhere as suggested... Then that is NOT a good idea. Sad
The Wicked Flea Wrote:Actually, the close tag is later on it seems.  Try viewing source and looking at the information for the "<!-- start: header -->" and check for yourself.  I would guess that the template is finished by a subtemplate, however it would be a bit easier on designers if there was a template "link" method, so we could see that a little more clearly.

I might try this and see what "Blows-Up" later... in the templates. Smile

<div id="content">
            {$bannedwarning}
            {$bbclosedwarning}
            {$unreadreports}
</div>
            <navigation>
            <br class="clear" />
<div id="content">
Lopalong Wrote:Hi Justin,

This is what it does, I haven't fixed this one or /Theme-02:
Go to...

http://aus-themes.com/MyBB-Themes/Theme-01/portal.php

View the forum etc, go into Category / posts etc, and the nav link disappears but appears on mouse over, and acts like a.hover.. ?

And if that </div is elsewhere as suggested... Then that is NOT a good idea. Sad
Which nav link?
Here's the code that I'm using in a less complicated Header..It to breaks the nav-bar without the extra </div

<a name="top" id="top"></a>
<table class="topbkg" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="index.php"><center><img src="templates/Dream-Heaven/images/banner.gif" border="0" alt="Forum" title="Forum" /></a></td>
</tr>
</table>
<script type="text/javascript" src="templates/Dream-Heaven/jscripts/overlib.js"><!-- overLIB (c) Erik Bosrup --></script>

<script TYPE="text/javascript">
var ol_fgcolor='#DAC99C'; <!-- Color of the inside of the popup box -->
var ol_bgcolor='#000000'; <!-- Color of the border of the popup box -->
var ol_closecolor="#FFFFFFF";
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="30px">
<tr height="20px">
<td align="left" class="topnav" valign="top">
<a href="{$mybb->settings['bburl']}/portal.php" align="left" onclick="return overlib('<font color=#E4E4E4><ul><li class=omenu><a href=portal.php>Portal</a></li><li class=omenu><a href=index.php>Forum</a></li><li class=omenu><a href=misc.php?action=help>FAQ</a></li><li class=omenu><a href=memberlist.php>Memberlist</a></li><li class=omenu><a href=online.php>Who is Online</a></li><li class=omenu><a href=stats.php>Forum Statistics</a></li><li class=omenu><a href=calendar.php target=_blank>Calendar</a></li><li class=omenu><a href=misc.php?action=buddypopup target=_blank>Open Buddy List</a></li></ul>', STICKY, CAPTION, 'Navigation', CENTER);" onmouseout="nd();"><img src="templates/Dream-Heaven/images/english/navigation.gif" name="navigation" border="0"></a>
</td>
<td align="left" class="topnav">
<a href="{$mybb->settings['bburl']}/index.php" />Forum</a>&nbsp;&nbsp;•&nbsp;&nbsp;
<a href="{$mybb->settings['bburl']}/misc.php?action=help" />Faq</a>&nbsp;&nbsp;•&nbsp;&nbsp; 
<a href="{$mybb->settings['bburl']}/search.php" />Search</a>&nbsp;&nbsp;•&nbsp;&nbsp; 
<a href="{$mybb->settings['bburl']}/memberlist.php" />Memberlist</a>&nbsp;&nbsp;•&nbsp;&nbsp;
<a href="{$mybb->settings['bburl']}/usercp.php" />Profile</a>&nbsp;&nbsp;•&nbsp;&nbsp;
<a href="{$mybb->settings['bburl']}/portal.php" />Portal</a>
{$welcomeblock}
</td>
</tr>
</table>
		<hr class="hidden" />
		<br class="clear" />
<div id="content">
			{$bannedwarning}
			{$bbclosedwarning}
			{$unreadreports}
</div>

<br />
<span style="float:right;"><font size="1">{$lang->welcome_current_time}</font size>&nbsp;&nbsp;&nbsp;&nbsp;</span>
<navigation>
		<br class="clear" />
I don't see the closing div tag online at the forums you're linking to, and it's working fine for me...
I'm not on-line there either, But it's not working for me... and all cookies have been cleared..

Oh! Oh! Sad

I've got three sites running, and all the cookies are /

Maybe I should check that out out... Stand-by.. I'll get back on this one. Wink
Pages: 1 2 3