Current time: 04-19-2014, 02:51 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 2 Votes - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Home page menu tab button HELP PLEASE
02-25-2012, 11:11 PM
Post: #1
Smile Home page menu tab button HELP PLEASE
Hey Smile

It's Shane here, I just need a little help with something.

I'm trying to add tabs on the home page menu of website: MyBB.

When I try to add it in the header template, it goes off the edge and down and it glitches real bad.
Here's the code:

Code:
<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>
                </div>
            </div>
            <div id="panel">
                <div class="upper"><!-- This div(class="upper") is closed in the header_welcomeblock_member and header_welcomeblock_guest templates -->
                    <div class="wrapper">
                        <ul class="menu top_links">
                                                        <li><a href="http://intense-gaming.net/index/portal.php"><img src="http://intense-gaming.net/house.png" /> Home</a></li>
                                                        <li><a href="http://intense-gaming.net/index/"><img src="http://intense-gaming.net/page_word.png" /> Forum</a></li>
                                                        <li><a href="http://intense-gaming.net/index/"><img src="http://intense-gaming.net/donate/heart.png" /> Donate</a></li>
                            <li><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a></li>
                            <li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>

                        </ul>
                        {$welcomeblock}
            </div>
        </div>
        <div id="content">
            <div class="wrapper">
                {$pm_notice}
                {$bannedwarning}
                {$bbclosedwarning}
                {$unreadreports}
                {$pending_joinrequests}
                <navigation>
                <br />

And when I enable it it does, makes this silly error.

[Image: taberror.png]

If you look you can see the tab goes off the edge and underneath, and when i try to remove the
Code:
                            <li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
The search will go under as well. Hope you can help!

The Theme I'm using is apartnight by Justin S.

Thanks so much! Big Grin

Shane
Find all posts by this user
Quote this message in a reply
02-26-2012, 12:30 PM (This post was last modified: 02-26-2012 12:40 PM by Shadowdare.)
Post: #2
RE: Home page menu tab button HELP PLEASE
The solution to your problem would be to remove the img tags from your new navigation links and use CSS background-image property within a class or a style attribute like this:
Code:
<ul class="menu top_links">
                            <li><a href="http://intense-gaming.net/index/portal.php" style="background-image: url('http://intense-gaming.net/house.png');">Home</a></li>
                            <li><a href="http://intense-gaming.net/index/" style="background-image: url('http://intense-gaming.net/page_word.png');">Forum</a></li>
                            <li><a href="http://intense-gaming.net/index/" style="background-image: url('http://intense-gaming.net/donate/heart.png');">Donate</a></li>
                            <li><a href="{$mybb->settings['bburl']}/search.php" class="search">{$lang->toplinks_search}</a></li>
                            <li><a href="{$mybb->settings['bburl']}/memberlist.php" class="memberlist">{$lang->toplinks_memberlist}</a></li>
                        </ul>

[Image: MK1lK.png]
Visit this user's website Find all posts by this user
Quote this message in a reply
02-26-2012, 01:00 PM
Post: #3
RE: Home page menu tab button HELP PLEASE
OMG! Thank you so much bro!! =D

So much appreciated Wink

Thanks again! Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | MyBB | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication