MyBB Community Forums

Full Version: welcomeblock in navigation menu...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone, i'm currently in the works of creating my own mybb theme, but i've run into a slight issue, i'm trying to add the welcome block into my forums nav menu, but it doesn't seem to be working when i add the code in this is what happens: 


<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="menu.css" />
<title>CSS Simple Drop Down Menu</title>
</head>
<body>
<div class="drop">
<ul class="drop_menu">
<li><a href='#'>Link 1</a>
	<ul>
	<li><a href='#'>Sub Link 1</a></li>
	<li><a href='#'>Sub Link 2</a></li>
	</ul>
</li>
<li><a href='#'>Link 2</a>
	<ul>
	<li><a href='#'>Sub Link 1</a></li>
	<li><a href='#'>Sub Link 2</a></li>
	<li><a href='#'>Sub Link 3</a></li>
	<li><a href='#'>Sub Link 4</a></li>
	</ul>
</li>
<li><a href='#'>Link 3</a>
	<ul>
	<li><a href='#'>Sub Link 1</a></li>
	<li><a href='#'>Sub Link 2</a></li>
	<li><a href='#'>Sub Link 3</a></li>
	<li><a href='#'>Sub Link 4</a></li>
	</ul>
</li>
</ul>
	{$welcomeblock}
</div>
</body>
</html>
 
result: 
[Image: f901789d9ebc6723b4371f93aef6f0a6.png]

where it says "Sir Twisted" is the welcomeblock, what i'm trying to do is get it to go in the blue bar across from "link , link 2 ...." etc... as you can see also the panel links seem to have messed up too. 

now too fix them i use this code: 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="menu.css" />
<title>CSS Simple Drop Down Menu</title>
</head>
<body>
<div class="drop">
<ul class="drop_menu">
<li><a href='#'>Link 1</a>
	<ul>
	<li><a href='#'>Sub Link 1</a></li>
	<li><a href='#'>Sub Link 2</a></li>
	</ul>
</li>
<li><a href='#'>Link 2</a>
	<ul>
	<li><a href='#'>Sub Link 1</a></li>
	<li><a href='#'>Sub Link 2</a></li>
	<li><a href='#'>Sub Link 3</a></li>
	<li><a href='#'>Sub Link 4</a></li>
	</ul>
</li>
<li><a href='#'>Link 3</a>
	<ul>
	<li><a href='#'>Sub Link 1</a></li>
	<li><a href='#'>Sub Link 2</a></li>
	<li><a href='#'>Sub Link 3</a></li>
	<li><a href='#'>Sub Link 4</a></li>
	</ul>
</li>
</ul>
</div>
</body>
			</html>

		
	
			<div id="panel">
			
			{$welcomeblock}

						
					<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
				<!-- </div> in header_welcomeblock_member and header_welcomeblock_guest -->
	</div>	
	</div>

resulting in: 
[Image: 6c9feb97720c20f26782ecfad6b4a57c.png]

but now the welcomeblock ( Sir twisted ) is in the panel, i've tried removing the panel html, but the problem still stays.
{$welcomeblock} is awkward to work with because you have 2 divs that open up in header template and they close in welcome guest and welcome member. So if you move {$welcomeblock} out of header you have to be sure to close the divs properly otherwise you will have problems with your display. You don't give your original templates so real difficult to help.
(2015-11-16, 10:21 PM)Ashley1 Wrote: [ -> ]{$welcomeblock} is awkward to work with because you have 2 divs that open up in header template and they close in welcome guest and welcome member. So if you move {$welcomeblock} out of header you have to be sure to close the divs properly otherwise you will have problems with your display. You don't give your original templates so real difficult to help.

ahh right i see, thank you for the insight.