2015-12-04, 06:40 AM
Alright I've pretty much have gotten my menu idea figured out I just need to figure out how to hide the mod cp and admin cp links from members who aren't in those groups. Also I'd like to know how I can create my own login popup screen and get rid of the default login and register links and place them on my menu.
Here's my code:
I'm really needing help with this please!
Here's my code:
<div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="{$theme['logo']}" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div>
<br />
<center><div id="panel">
{$welcomeblock}
</div></center>
<br />
<center>
<form action="{$mybb->settings['bburl']}/search.php" id="search-form">
<fieldset>
<input type="text" id="search" name="search" />
<input type="submit" id="search-submit" value="" />
</fieldset>
</form>
<script>$(document).ready(function(){
// Add the value of "Search..." to the input field and a class of .empty
$("#search").val("Search...").addClass("empty");
// When you click on #search
$("#search").focus(function(){
// If the value is equal to "Search..."
if($(this).val() == "Search...") {
// remove all the text and the class of .empty
$(this).val("").removeClass("empty");;
}
});
// When the focus on #search is lost
$("#search").blur(function(){
// If the input field is empty
if($(this).val() == "") {
// Add the text "Search..." and a class of .empty
$(this).val("Search...").addClass("empty");
}
});
});</script>
</center>
<br />
<br />
<!--- Menu Start --->
<nav class = "nav-primary" role = "navigation">
<ul role = "menubar">
<li role = "presentation"><a href = "{$mybb->settings['bburl']}" role = "menuitem">Home</a></li>
<li role = "presentation"><a href = "{$mybb->settings['bburl']}/index.php" role = "menuitem">Forums</a></li>
<li role = "presentation"><a href = "{$mybb->settings['bburl']}/calendar.php" role = "menuitem">Calendar</a></li>
<li role = "presentation"><a href = "{$mybb->settings['bburl']}/memberlist.php" role = "menuitem">Members</a></li>
<li role = "presentation"><a href = "{$mybb->settings['bburl']}/search.php?action=getnew" role = "menuitem">New Content</a></li>
<li role = "presentation"><a href = "{$mybb->settings['bburl']}/search.php?action=getdaily" role = "menuitem">Today's Content</a></li>
<li role = "presentation"><a href = "{$mybb->settings['bburl']}/misc.php?action=help" role = "menuitem">Help</a></li>
</ul>
</nav>
<!--- Menu End --->
<br />
I'm really needing help with this please!