|
[Tutorial] VBNavBar for MyBB 1.6.x
|
|
08-09-2010, 07:58 PM
(This post was last modified: 04-04-2012 12:08 AM by flick.)
Post: #1
|
|||
|
|||
|
[Tutorial] VBNavBar for MyBB 1.6.x
This code modification is a MyBB 1.6 compatible version of Condition and vbNavBar for 1.4.x.
The original modification - Conditional and vb navbar for 1.20 - was released by Lapsetur and the backend code and most of the templates edits *still* worked for MyBB 1.4.x. They still mostly work for MyBB 1.6. All I did previously was to tidy up the template edits and ensure that the modification was up-to-date with MyBB 1.4.x. With the release of MyBB 1.6, I have taken the opportunity to add icons as a default 'feature' (inspired by okitai) and do some odd fixes, which will hopefully help make the modification more useful for forums using international language packs. This means that aside from 15 text strings (packed in a separate language file) the rest of the modification will use the text strings from your chosen language. I have tried to make this version as error-free as possible, but welcome any bug reports or suggestions. ![]() Full Credits and Acknowledgements and screenshots can be found at the end of this post. Special thanks to quacktacular !Files that you need
You can find all the files at the end of this post, but this is what you need to do with them:
*You can extract the zip file directly to the root folder of your Forums if applicable, as the files should be packed in the correct folder structure for a standard MyBB installation. The next step is to edit the template of your theme. I have used the default theme for my example, but hopefully it should work with other themes as well. Replace the contents of each template with the code below: *If you are using the default theme, Koz has kindly provided a theme xml file for you to use instead! Get it Header Templates / header Code: <div id="container">Header Templates / header_welcomeblock_guest Code: <img src="{$theme['imgdir']}/vbnb_register.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/member.php?action=register"><strong>{$lang->welcome_register}</strong></a>Header Templates / header_welcomeblock_member Code: <img src="{$theme['imgdir']}/vbnb_usercp.png" alt="" title="" class="vbottom" /><a href="{$mybb->settings['bburl']}/usercp.php" id="usercp" onclick="return openMenu(this)" class="popup_button">{$lang->vbnavbar_user_cp} <img src="{$theme['imgdir']}/vbnb_popdown.gif" border="0" /></a>Header Templates / header_welcomeblock_member_admin Code: <td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_admincp.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/{$admin_dir}/index.php"><strong>{$lang->welcome_admin}</strong></a></td>Header Templates / header_welcomeblock_member_moderator Code: <td class="tcat" align="center"><img src="{$theme['imgdir']}/vbnb_modcp.png" alt="" title="" class="vbottom" /> <a href="{$mybb->settings['bburl']}/modcp.php"><strong>{$lang->welcome_modcp}</strong></a></td>Ungrouped Templates / headerinclude Code: <link rel="alternate" type="application/rss+xml" title="{$lang->latest_threads} (RSS 2.0)" href="{$mybb->settings['bburl']}/syndication.php" />Navigation Templates / nav Code: <div class="navigation">Navigation Templates / nav_sep Code: »Navigation Templates / nav_sep_active Code: <br /><img class="vbottom" src="{$theme[imgdir]}/vbnb_navend.gif" />The next step is to create a new .css file to add to your theme. Quote:Click on Themes->Name of your theme, e.g. Default->Add Stylesheet vbnavbar.css Code: /* Popup Menus */Finally, you will need to activate the VBNavBar Plugin in your Admin CP. This will enable the vbnavbar.lang.php language file. ------------------------ Sample Screenshots Some screenshots of the code modification in action can be seen below: Guest view: Admin/User CP view: ![]() Admin/Search view: ![]() ------------------------ Live Example Sites Screenshots and links to sites that use this code modification on their forums.
------------------------ Credits and Acknowledgements Thanks must go to:
CHANGELOG August 9th 2010: Version 1.0 released. November 9th 2010: Change to header_welcomeblock_member with thanks to a bug report (Post #22 by haytoch). Please see Post #23 for more info. A French translation has kindly been provided by haytoch as well. May 16th 2011: Change to header_welcomeblock_member with props to haytoch for the bug report and fix (see Post #42). May 17th 2011: Change to headerinclude by updating Prototype and Scriptaculous to version 1603 (see Post #48) and props to primster7 for fix to header_welcomeblock_member (extra > for misc.php link) May 18th 2011: Replaced functions.php and class_templates.php download files (so now reflects the latest 2011-02-21 timestamp from a clean MyBB 1.6.3 download) July 30th 2011: Replaced functions.php and class_templates.php download files to maintain compatibility with MyBB 1.6.4. Also changes to header_welcomeblock_member_admin template edit. For more details please see Post #71) August 17th 2011: Change to header_welcomeblock_member. For more details please see Post #75. Props to Bhashana for the bug report (Post#74). December 2nd 2011: Replaced functions.php to maintain compatibility with MyBB 1.6.5. Please see Post #100 for more details about upgrading from MyBB 1.6.4. April 4th 2012: Replaced functions.php and class_templates.php to ensure the mod continues to work in MyBB 1.6.7. Props to Primster7 for the bug report (Post #103). ------------------------ Known Bugs None known as yet. ------------------------ FAQs Q: Guests can see the 'Private messages' menu option although there is a random {1} and {2} instead of any actual values? A: Please ensure that you download class_templates.php below and replace this file with the one in your /inc folder (clearer instructions in Step 1) The specific difference between the standard MyBB and the download below can be found in this post. Q: How can I change the background colour of my logo header to [insert name of colour]? A: By default, the template edits above sets the default background colour to white, so if you would like to change this (like indigored) to something else, please look for this line Code: <div class="logo" style="background:#fff url('$theme[imgdir]/logobg.gif');">An example can be found here Q: How can I change the font or text colour of my User CP dropdown menu to [insert name of colour]? A: The text colour is inherited from the class tcat so to override this, you will need to add a few extra lines to vbnavbar.css. This question came about as a user had a white font against their white background (you can find the original reply here) and the necessary change was as follows: Code: td.tcat td.menu_row a:link,Q: Is this modification compatible with Google SEO? A: This question was originally posed by sheldon365 and then by nadlerz as there is only one change to the default functions.php, you can either add in this change to your existing Google SEO-compatible functions.php, or download a modified version of functions.1.6.2-google-seo.php. Please see this post for more information. *May not be compatible with MyBB 1.6.4. Q: Is this tutorial available in other languages? A: A French translation is available on MyBB.fr courtesy of haytoch. Current motto: Cross referencing threads by providing links is a good idea! Back-on Online - Back-on Fansite http://www.backon-online.com/ WordPress Snippets http://www.wpsnippets.com/ |
|||
|
08-10-2010, 04:48 AM
Post: #2
|
|||
|
|||
|
RE: [Tutorial] VBNavBar for MyBB 1.6.x
Best. Thing. Evar.
|
|||
|
08-10-2010, 06:40 AM
(This post was last modified: 08-10-2010 07:04 AM by Miley.)
Post: #3
|
|||
|
|||
|
RE: [Tutorial] VBNavBar for MyBB 1.6.x
This works beautifully, you may use my website as a like demonstration.
http://www.habboblock.com/board |
|||
|
08-10-2010, 08:18 PM
(This post was last modified: 08-10-2010 08:18 PM by flick.)
Post: #4
|
|||
|
|||
RE: [Tutorial] VBNavBar for MyBB 1.6.x
(08-10-2010 04:48 AM)Sleepwalker Wrote: Best. Thing. Evar. Thanks for the ringing endorsement. ![]() (08-10-2010 06:40 AM)Miley Wrote: This works beautifully, you may use my website as a like demonstration. Thank you for letting me use your site as a live sample! I'm glad it's working fine on your Forums.
Current motto: Cross referencing threads by providing links is a good idea! Back-on Online - Back-on Fansite http://www.backon-online.com/ WordPress Snippets http://www.wpsnippets.com/ |
|||
|
08-28-2010, 10:27 PM
Post: #5
|
|||
|
|||
RE: [Tutorial] VBNavBar for MyBB 1.6.x This user has been denied support.
i have been during hours to trying to adapt this to pro navy theem
can someone help me? please http://mods.mybb.com/view/pro-blue ![]()
|
|||
|
08-30-2010, 11:31 PM
Post: #6
|
|||
|
|||
|
RE: [Tutorial] VBNavBar for MyBB 1.6.x
Thanks for this...
PD: The demo site isn't working :l ![]() |
|||
|
08-31-2010, 12:35 AM
Post: #7
|
|||
|
|||
|
RE: [Tutorial] VBNavBar for MyBB 1.6.x
Use my site as a demonstration. Especially since I use the default MyBB theme with a few CSS edits.
http://www.landsofdivinity.com |
|||
|
09-01-2010, 01:22 AM
Post: #8
|
|||
|
|||
RE: [Tutorial] VBNavBar for MyBB 1.6.x
(08-31-2010 12:35 AM)Sleepwalker Wrote: Use my site as a demonstration. Especially since I use the default MyBB theme with a few CSS edits.Thanks ;D ![]() |
|||
|
09-04-2010, 12:26 PM
Post: #9
|
|||
|
|||
RE: [Tutorial] VBNavBar for MyBB 1.6.x
(08-28-2010 10:27 PM)Glas Wrote: i have been during hours to trying to adapt this to pro navy theem Apologies for the late reply - I think this is something I will have to look into by installing it locally. Do you have any specific problems when adapting it to the pro navy theme? (08-30-2010 11:31 PM)alv4 Wrote: Thanks for this... You're welcome. ![]() (08-31-2010 12:35 AM)Sleepwalker Wrote: Use my site as a demonstration. Especially since I use the default MyBB theme with a few CSS edits. Thank you very much!
Current motto: Cross referencing threads by providing links is a good idea! Back-on Online - Back-on Fansite http://www.backon-online.com/ WordPress Snippets http://www.wpsnippets.com/ |
|||
|
09-05-2010, 05:39 PM
Post: #10
|
|||
|
|||
|
RE: [Tutorial] VBNavBar for MyBB 1.6.x
amazing Tutorial, thanks
[]s, Claudio Tutorial: Jquery (by google API) with mybb (Prototype) Distinction between Paid/Free Plugins Threads |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)
Search
Member List
Calendar
Help



!![[Image: vbnavbar16_guest.jpg]](http://www.backon-online.com/mybb/vbnavbar16_guest.jpg)
![[Image: vbnavbar16_usercp.jpg]](http://www.backon-online.com/mybb/vbnavbar16_usercp.jpg)
![[Image: vbnavbar16_search.jpg]](http://www.backon-online.com/mybb/vbnavbar16_search.jpg)




This user has been denied support.
![[Image: glas.png]](http://mybbwebhost.com/u/glas.png)

![[Image: sm6bs9.jpg]](http://i25.tinypic.com/sm6bs9.jpg)

