Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
UKBL- Easy Menu Tabs Details »»
UKBL- Easy Menu Tabs
Version: 1.00, by UKBusinessLive UKBusinessLive is offline
Developer Last Online: Feb 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.0 RC 2 Rating:
Released: 01-03-2009 Last Update: 01-05-2009 Installs: 62
Template Edits
Re-useable Code Translations  
No support by the author.

UKBL- Easy Menu Tabs


I've been playing around with creating some Menu Tabs for the top of the forums, These ones do not mess up your CSS or use Javascript and you can have it set up and running on your forums in minutes.

Credits: Christopher Ware ~ Thanks

DEMO: http://www.ukbusinesslive.co.uk/forum/demo.html

Members Site Live Demo's:
http://www.gamelobby.com/Forum/
http://www.itproservices.net/forums/...php?styleid=10



I've done this in a neutral color, so it'll be fine for light colored forums, I will add some darker ones and a black one later if requested

So what do you do???

Installation is sooooo simple your gonna love this, First you need to open the html file with notepad or similar, and make a few edits, Mainly the location of the 2 gif's and the links to the urls or onsite links.

so in Note pad look for this..

Code:
 background:url("tableft1.gif") no-repeat left top;
and change the word tableft1.gif to the directory you have your images in, if you use photobucket or a similar storage site then your code would look something like this

Code:
 background:url("http://i4875.photobucket.com/albums/rr1/ukbusinesslive/tableft1.gif") no-repeat left top;
Then you look for the other one here

Code:
background:url("tabright1.gif") no-repeat right top;
and basically do the same as the first edit.

So thats it with the gif edits, you still need to scroll further down to the menu edits

here

Code:
                       <ul>
                                <!-- CSS Tabs -->
<li id="current"><a href="http://www.ukbusinesslive.co.uk/topsite/"><span>Forums Topsite</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/group.php?"><span>Social Groups</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/online.php?"><span>Who's Online</span></a></li>
<li><a href="http://astore.amazon.co.uk/ukbuli-21"><span>UKBL Bookstore</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/usercp.php"><span>Your CP</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/memberlist.php"><span>Member List</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/"><span>UK Business Live</span></a></li>
basically you can have as many tabs as you need and you change the navigation from the top code, its pretty easy to do, First you add the Url of the site or link that you want tabbed, Then paste it to the first part of the tab, Then after <Span> you write the name of the tab, Easy

if you want extra tabs just add another line like this

Code:
<li><a href="http://www.ukbusinesslive.co.uk/forum/memberlist.php"><span>Member List</span></a></li>
Cut and Paste the HTML Code to the header template of your style, and upload the gifs to your chosen directory, be it /images/misc or even photobucket.

For Dark Colored Sites

If your Site is Black or has a Black Background you'll want black tabs like this



Then you'll have to Download the Black_ Tabs.zip This include a new code that you need to edit as well as the 2 Black Gifs to get the correct colour. Instructions are the same as above

Please Click install if you like it

If you want to see a nice collection of downloadable Menu Tabs, Veiw My Post in the Graphics forum, and download what you need
https://vborg.vbsupport.ru/showthrea...79#post1704379

vBAdvanced Integration

Ther seem to be a slight problem with users that use vBAdvanced Integration

Quote:
A problem I'm having when I put this in the header template is that I click on a thread and it comes up with the menu tabs down where the thread should be instead of the thread.

Could it be a problem with having vBAdvanced integration?
The cure is quite simple, all you need to do when you've edited your code is to cut it in half and put the CSS element into the additional CSS box in your Style manger's "additional CSS" box, Then the last bit, the part which contains the menu links (See below)

Code:
</style>
                </head>

                <body>
                        
                        <div id="tabsH">
                                <ul>
                                        <!-- CSS Tabs -->
<li id="current"><a href="http://www.ukbusinesslive.co.uk/topsite/"><span>Forums Topsite</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/group.php?"><span>Social Groups</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/online.php?"><span>Who's Online</span></a></li>
<li><a href="http://astore.amazon.co.uk/ukbuli-21"><span>UKBL Bookstore</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/usercp.php"><span>Your CP</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/forum/memberlist.php"><span>Member List</span></a></li>
<li><a href="http://www.ukbusinesslive.co.uk/"><span>UK Business Live</span></a></li>

                                </ul>
                        </div>
                </body>
</html>
Thats the part which just goes at the VERY end of your header.

Enjoy VBa Members

To Open in new Browser Window

To get the link to open in a new browser window, what you do is add the target="_blank" attribute to your link tag, like this in your Menu Links area

<li><a href="http://www.ukbusinesslive.co.uk/" target="_blank"><span>UK Business Live</span></a></li>

If you do that to the ones that you want to open in a new window, then you don't navigate away from your site





Changing individual Tab Font Colors

You can add some html markup between the <span> where the tab name is

Just change the first <Span> Value to

Code:
<span style="color:Green">
So your Menu Line would look something like this

Code:
<li><a href="http://www.ukbusinesslive.co.uk/topsite/"><span style="color:Green">Forums Topsite</span></a></li>


Hope that helps, just change the color Green, for a color of your choice

You could use a tab with a different color text to point to your Paypal Account and call it donations Worth a try

Tab Color Changes on Hover

Quote:
I have a request though

if you can make the current page's tab be in another color just like when hover it, it will be great.
just like vbulletin.org here.
you can see it yourself
You need to add a span attribute to the CSS



Dependant on what tab design you are using, find the following in the code

Code:
   #tabs1 a:hover {
      background-position:0% -42px;
      }
and change it to this

Code:
#tabs1 a:hover span {
       color:#000000;
      background-position:0% -42px;
      }
Where #000000 (hex Code for Black) is the new color that you want, so now you should have the tabs show up as normal and when you hover the cursor over them with the above hex code the text will be BLACK

Just change this color hex to whatever hex color you want

Enjoy

Download Now

File Type: zip tab_menu_1.zip (21.8 KB, 372 views)
File Type: zip Black_Tabs.zip (3.2 KB, 188 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 06-02-2009, 08:28 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I guess I solved my problem by adding a <br /> to your header code at the bottom:
Code:
                         </ul>
                </div>
        </body>
<br />
</html>

I then had to change the border-bottom code to: border-bottom:2px solid #0B198C;
This matches the default theme perfect which your color code does not.

Now my next question is how do I get the tabs to be aligned next to the right margin rather than the left side?

Secondly, the first left tab seems to be higlighed in a darker blue even when the mouse is not rolled over it. How can that be fixed so it matches the other tabs?
Reply With Quote
  #73  
Old 06-02-2009, 08:37 PM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi and thanks for the quick reply with that fix

The First tag is always a set color, show people the first one is normally the home tag, But if you don't want that set a static color then you look in the first line of that tags code and just remove

Code:
id="current"
From the first tags line of code, so that it matches with the others
Reply With Quote
  #74  
Old 06-02-2009, 08:54 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will try and remove the first static tab color. It would be best to have the active tab that you switched to be a new color so you can easily see what new page your on. In my mind that is a must change to this mod.

How do I get the tabs to be placed by the right side margin?
Reply With Quote
  #75  
Old 06-02-2009, 11:18 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Aaa my bad I see it now in the css to move the tabs to the right by increasing the % value here: #tabs1 ul { I set mine to 640%. Of course it depends on how many tabs you make. Great Work!

Can we say MOTM?


Reply With Quote
  #76  
Old 06-03-2009, 04:58 AM
UKBusinessLive UKBusinessLive is offline
 
Join Date: Sep 2008
Location: Essex, United Kingdom
Posts: 1,637
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yotsume View Post
Aaa my bad I see it now in the css to move the tabs to the right by increasing the % value here: #tabs1 ul { I set mine to 640%. Of course it depends on how many tabs you make. Great Work!

Can we say MOTM?


Glad you got it working right
Reply With Quote
  #77  
Old 06-29-2009, 02:05 AM
ConfusedCartman ConfusedCartman is offline
 
Join Date: May 2008
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm having issues getting this working correctly in Google Chrome. Here's what it looks like for Chrome users:



Do you have any suggestions on a fix?

EDIT: Just for future reference, I fixed it by adding a simple
HTML Code:
<br clear="all" />
under the entire thing (between the bottom of the header and the top of the navbar, essentially).
Reply With Quote
  #78  
Old 06-29-2009, 02:24 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ConfusedCartman View Post
I'm having issues getting this working correctly in Google Chrome. Here's what it looks like for Chrome users:



Do you have any suggestions on a fix?
(Not trying to sound like a TWAT or smart arse but YES - Get rid of Chrome ....Firefox/IE even Safari but Chrome? You know it installs an updater that runs when and where it chooses amongst other tiny annoyances...)

Looks fine in Firefox (although I saw your tab @ bottom w/ Firefox open)
Looks fine in Internet Explorer
Looks fine in Safari
(Note I left Chrome off the list )

But keep in mind many will use it but not all scripts or codes are compatible amongst ALL browsers expecially IE which does not code the way they SHOULD.

S-MAN
Reply With Quote
  #79  
Old 07-01-2009, 08:05 AM
ConfusedCartman ConfusedCartman is offline
 
Join Date: May 2008
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheLastSuperman View Post
(Not trying to sound like a TWAT or smart arse but YES - Get rid of Chrome ....Firefox/IE even Safari but Chrome? You know it installs an updater that runs when and where it chooses amongst other tiny annoyances...)

Looks fine in Firefox (although I saw your tab @ bottom w/ Firefox open)
Looks fine in Internet Explorer
Looks fine in Safari
(Note I left Chrome off the list )

But keep in mind many will use it but not all scripts or codes are compatible amongst ALL browsers expecially IE which does not code the way they SHOULD.

S-MAN
I don't use Chrome - that's a screenshot from a member of mine. I know Chrome's a bit wonky, but I can't leave some members in the dust just because I want a fancy new feature. Anyway, the fix is there (check my original post) if anyone else wants to use it. To the developer of the mod: might be a good idea to include it in the code - it doesn't mess with the display on any browser, and it fixes a potential issue with Chrome. Just sayin'.
Reply With Quote
  #80  
Old 01-13-2010, 07:03 AM
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Posts: 252
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it possible to get drop down menus with the drop down arrow to work with these tabs and if so, how?

Thanks!
Reply With Quote
  #81  
Old 01-27-2010, 04:34 AM
Devanand Devanand is offline
 
Join Date: Apr 2009
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have problem with IE and Chrome. Pictures will tell you everything.

Chrome



IE



Edit:

I did what ConfusedCartman said and fix problem in chrome but in IE I still have that bug.
The problem in IE is that he put it above $spacer_open but I don't understand why just IE and how to fix this problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05893 seconds
  • Memory Usage 2,363KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (12)bbcode_code
  • (1)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete