Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 4 Articles
[How To] Upgrading your navbar in custom skin from 4.x to 4.2
socialteenz's Avatar
socialteenz
Join Date: May 2011
Posts: 465

I am your digital super hero.

Show Printable Version Email this Page Subscription
socialteenz socialteenz is offline 05-25-2012, 10:00 PM

When you update your board from any of the earlier 4.x.x version to 4.2version. You need to make a small edit in the navbar to make the new navigation manger to function properly in your custom skin. (If the auto merge fails for some reason)

Open Style Manager ? Your Skin ? Edit templates ? Navigation / Breadcrumb Templates ? navbar

Find

Code:
{vb:raw template_hook.navtab_start}

Select the code from {vb:raw template_hook.navtab_start}
to {vb:raw template_hook.navtab_end}

Code:
{vb:raw template_hook.navtab_start}
        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
            <li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a>
                <ul class="floatcontainer">
                    {vb:raw template_hook.navbar_start}
                    <vb:if condition="$vboptions['bbmenu']">
                        <li><a href="{vb:link forumhome}">{vb:rawphrase forum}</a></li>
                    </vb:if>
                    <vb:if condition="$show['searchbuttons']">
                        <vb:if condition="$show['member']">
                        <li><a href="search.php?{vb:raw   session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase   new_posts_nav}</a></li>
                        <vb:else />
                        <li><a href="search.php?{vb:raw   session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase   todays_posts}</a></li>
                        </vb:if>
                    </vb:if>
                    {vb:raw template_hook.navbar_after_getnew}
                    <vb:if condition="$show['pmmainlink']">
                        <li><a href="private.php{vb:raw   session.sessionurl_q}" rel="nofollow">{vb:rawphrase   private_messages}</a></li>
                    </vb:if>
                    {vb:raw template_hook.navbar_after_pm}
                    <li><a rel="help" href="faq.php{vb:raw   session.sessionurl_q}" accesskey="5">{vb:rawphrase   faq}</a></li>
                    {vb:raw template_hook.navbar_after_faq}
                    <vb:if condition="$show['canviewcalendar']">
                        <li><a href="calendar.php{vb:raw   session.sessionurl_q}">{vb:rawphrase calendar}</a></li>
                    </vb:if>
                    {vb:raw template_hook.navbar_after_calendar}
                    <vb:if condition="$show['communitylink']">
                    <li class="popupmenu">
                        <a href="javascript://" class="popupctrl" accesskey="6">{vb:rawphrase community}</a>
                        <ul class="popupbody popuphover">
                            {vb:raw template_hook.navbar_community_menu_start}
                            <vb:if condition="$show['quick_links_groups']">
                                <li><a href="{vb:link grouphome}">{vb:rawphrase social_groups}</a></li>
                            </vb:if>
                            <vb:if condition="$show['quick_links_albums']">
                                <li><a href="album.php{vb:raw   session.sessionurl_q}">{vb:rawphrase   pictures_and_albums}</a></li>
                            </vb:if>
                            <vb:if condition="$bbuserinfo['userid']">
                                <li><a   href="profile.php?{vb:raw session.sessionurl}do=buddylist"><vb:if   condition="$show['friends_and_contacts']">{vb:rawphrase   contacts_and_friends}<vb:else />{vb:rawphrase   contacts}</vb:if></a></li>
                            </vb:if>
                            <vb:if condition="$show['memberslist']">
                                <li><a   href="memberlist.php{vb:raw session.sessionurl_q}">{vb:rawphrase   members_list}</a></li>
                            </vb:if>
                            {vb:raw template_hook.navbar_community_menu_end}
                        </ul>
                    </li>
                    </vb:if>
                    {vb:raw template_hook.navbar_after_community}
                    <vb:if condition="$show['canviewforums']">
                    <li class="popupmenu">
                        <a href="javascript://" class="popupctrl">{vb:rawphrase forum_actions}</a>
                        <ul class="popupbody popuphover">
                            {vb:raw template_hook.navbar_forum_menu_start}
                            <li>
                                <a href="{vb:raw   $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/',   ''}forumdisplay.php?{vb:raw   session.sessionurl}do=markread&amp;markreadhash={vb:raw   bbuserinfo.securitytoken}">{vb:rawphrase mark_forums_read}</a>
                            </li>
                            <vb:if condition="$show['member']">
                                <li>
                                    <a href="profile.php?{vb:raw   session.sessionurl}do=editoptions">{vb:rawphrase   edit_options}</a>
                                </li>
                                <li>
                                    <a href="profile.php?{vb:raw   session.sessionurl}do=editprofile">{vb:rawphrase   edit_your_details}</a>
                                </li>
                            </vb:if>
                            {vb:raw template_hook.navbar_forum_menu_end}
                        </ul>
                    </li>
                    </vb:if>
                    <li class="popupmenu">
                        <a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
                        <ul class="popupbody popuphover">
                            {vb:raw template_hook.navbar_quick_links_menu_pos1}
                            <vb:if condition="$show['member']">
                                <li><a href="search.php?{vb:raw     session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase   todays_posts}</a></li>
                                <li><a href="{vb:link   subscription}" rel="nofollow">{vb:rawphrase   subscribed_threads}</a></li>
                                <li><a href="javascript://"   onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw   session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300');   return false;">{vb:rawphrase open_contacts}</a></li>
                            </vb:if>
                            {vb:raw template_hook.navbar_quick_links_menu_pos2}
                            <vb:if condition="$vboptions['forumleaders']">
                            <li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
                                <vb:if condition="$vb_suite_installed">
                                    {vb:rawphrase view_site_leaders}
                                <vb:else />
                                    {vb:rawphrase view_forum_leaders}
                                </vb:if>
                            </a></li>
                            </vb:if>
                            {vb:raw template_hook.navbar_quick_links_menu_pos3}
                            <vb:if condition="$show['wollink']">
                                <li><a href="online.php{vb:raw   session.sessionurl_q}">{vb:rawphrase   whos_online}</a></li>
                            </vb:if>
                            {vb:raw template_hook.navbar_quick_links_menu_pos4}
                        </ul>
                    </li>
                    {vb:raw template_hook.navbar_end}
                </ul>
            </li>
        <vb:else />
            <li><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase forum}</a></li>
        </vb:if>
        {vb:raw template_hook.navtab_middle}
        <vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'search'">
            <vb:if condition="$show['member']">
            <li  class="selected"><a class="navtab"   href="search.php?{vb:raw   session.sessionurl}do=getnew&amp;contenttype=vBForum_Post"   accesskey="2">{vb:rawphrase getnew_tab}</a>
                <ul class="floatcontainer">
                    {vb:raw template_hook.navbar_getnew_menu_start}
                    <li><a href="search.php?{vb:raw   session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase   new_posts_nav}</a></li>
                    <vb:if condition="$show['quick_links_groups']">
                        <li><a href="search.php?{vb:raw   session.sessionurl}do=getnew&amp;contenttype=vBForum_SocialGroupMessage">{vb:rawphrase   new_group_messages_nav}</a></li>
                    </vb:if>
                    <vb:if condition="$show['canviewcalendar']">
                        <li><a href="search.php?{vb:raw   session.sessionurl}do=getnew&amp;contenttype=vBForum_Event">{vb:rawphrase   new_events_nav}</a></li>
                    </vb:if>
                    {vb:raw template_hook.navbar_getnew_menu_pos1}
                    <li><a href="{vb:raw   $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/',   ''}forumdisplay.php?{vb:raw   session.sessionurl}do=markread&amp;markreadhash={vb:raw   bbuserinfo.securitytoken}">{vb:rawphrase   mark_forums_read}</a></li>
                    {vb:raw template_hook.navbar_getnew_menu_end}
                </ul>
            </li>
            <vb:else />
            <li  class="selected"><a class="navtab"   href="search.php?{vb:raw   session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post"   accesskey="2">{vb:rawphrase getnew_tab}</a>
                <ul class="floatcontainer">
                    {vb:raw template_hook.navbar_getdaily_menu_start}
                    <li><a href="search.php?{vb:raw   session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase   todays_posts}</a></li>
                    <vb:if condition="$show['quick_links_groups']">
                        <li><a href="search.php?{vb:raw   session.sessionurl}do=getdaily&amp;contenttype=vBForum_SocialGroupMessage">{vb:rawphrase   daily_group_message}</a></li>
                    </vb:if>
                    <vb:if condition="$show['canviewcalendar']">
                        <li><a href="search.php?{vb:raw   session.sessionurl}do=getdaily&amp;contenttype=vBForum_Event">{vb:rawphrase   daily_events}</a></li>
                    </vb:if>
                    <li><a href="{vb:raw   $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/',   ''}forumdisplay.php?{vb:raw   session.sessionurl}do=markread&amp;markreadhash={vb:raw   bbuserinfo.securitytoken}">{vb:rawphrase   mark_forums_read}</a></li>
                    {vb:raw template_hook.navbar_getdaily_menu_end}
                </ul>
            </li>
            </vb:if>
        <vb:elseif condition="$show['member']" />
            <li><a class="navtab" href="search.php?{vb:raw   session.sessionurl}do=getnew&amp;contenttype=vBForum_Post"   accesskey="2">{vb:rawphrase getnew_tab}</a></li>
        <vb:else />
            <li><a class="navtab" href="search.php?{vb:raw   session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post"   accesskey="2">{vb:rawphrase getnew_tab}</a></li>
        </vb:if>
        {vb:raw template_hook.navtab_end}


Replace the above selected code with this one:

Code:
        {vb:raw template_hook.navtab_start}
        {vb:raw navigation}
        {vb:raw template_hook.navtab_end}
Reply With Quote
  #2  
Old 07-24-2012, 04:18 AM
abdobasha2004's Avatar
abdobasha2004 abdobasha2004 is offline
 
Join Date: Aug 2008
Posts: 541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very helpful
but what about other templates?
Reply With Quote
  #3  
Old 07-24-2012, 04:01 PM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For the others you need to check this article sir!

Updating Your Custom Style Templates in Three Steps
Reply With Quote
  #4  
Old 10-27-2012, 02:07 AM
Dorgham's Avatar
Dorgham Dorgham is offline
 
Join Date: May 2012
Location: Egypt
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Add a very special
I do not know
Thank you
Reply With Quote
  #5  
Old 11-02-2012, 09:33 AM
socialteenz's Avatar
socialteenz socialteenz is offline
 
Join Date: May 2011
Posts: 465
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You are welcome.
Reply With Quote
Reply

Thread Tools

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 03:44 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.04099 seconds
  • Memory Usage 2,261KB
  • Queries Executed 18 (?)
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
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (5)post_thanks_box
  • (14)post_thanks_box_bit
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete