Go Back   vb.org Archive > vBulletin 5 Connect Discussion > vB5 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-11-2017, 07:53 AM
Anton Rahman Anton Rahman is offline
 
Join Date: Nov 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default How to move CONTACT US from the footer to navbar

This used to be very easy in vB 4, where there was means to edit navbar from TEMPLATE MANAGER and where the footer contained the code $show['contactus'] that can be just simply moved ?with minor adjustments- to fit in the navbar
Look up
https://www.vbulletin.com/forum/foru...-top-menu-help

But cant seem to find any similar means on vB5 To simply remove CONTACT US from the footer menu and sort of transferring it to the navigation bar menu

Also inspecting the page with firebug shows only that CONTACT US belongs to footer-tabbar, but within footer.css itself we cant see how to remove any footer-tabbar items such as CONTACT US or any other
​​​​​​​
Any ideas ? thanks all..
Reply With Quote
  #2  
Old 11-11-2017, 11:47 AM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Login to your site as admin.
Top of the forum homepage click "edit site"
Then "navigation bar" once admin menu appears.
Then new Navigation Item and add your link.

Do the similar procedure to remove contact us link from footer.
Reply With Quote
  #3  
Old 11-11-2017, 11:54 AM
Anton Rahman Anton Rahman is offline
 
Join Date: Nov 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

latest topic update :

This seems to be more of a bug that needs to be reported

try to delete ALL BUTTONS from site builder -----> footer -----> main navigation bar

it seems to be that you have to leave at least one button "for some reason"

look up

https://www.vbulletin.com/forum/foru...oter-to-navbar


But after all, any vB wizards that can provide a work around "without using additional.css"?

Just to remove all footer -----> main navigation bar buttons ?

Charity will be greatly appreciated :'-)
Reply With Quote
  #4  
Old 11-11-2017, 03:30 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to use additional.css or edit footer template if you want o hide all links in the footer.

additonal.css

Code:
#footer-tabbar .js-footer-nav-list {display: none;}



Or edit footer and remove code:

Code:
            <ul class="nav-list h-right js-footer-nav-list h-margin-right-xxl b-comp-menu-horizontal js-comp-menu-horizontal js-comp-menu--dropdown-on-xsmall b-comp-menu-dropdown--inactive" data-dropdown-trigger-phrase="go_to_ellipsis" data-dropdown-menu-classes="h-margin-vert-l b-comp-menu-dropdown--direction-up" data-dropdown-trigger-classes="b-comp-menu-dropdown__trigger--arrow">
                {vb:hook 'footer_right'}
                <vb:each from="navbarItems" value="navbarItem">
                    {vb:set navbarTitle, {vb:raw navbarItem.title}}
                    <vb:if condition="$targetAttr = $navbarItem['newWindow'] == '1' ? ' target=\'_blank\'' : ''"></vb:if>
                    <vb:if condition="!empty($navbarItem['attr'])">
                        {vb:strcat targetAttr, ' '}
                        {vb:strcat targetAttr, {vb:raw navbarItem.attr}}
                    </vb:if>
                    {vb:set normalizedUrl, {vb:raw navbarItem.normalizedUrl}}
                    <vb:if condition="$itemUrl = $navbarItem['isAbsoluteUrl'] ? $normalizedUrl : ($baseurl . '/' . $normalizedUrl)"></vb:if>
                    <vb:if condition="$requestUri = explode('?', $_SERVER['REQUEST_URI'], 2)"></vb:if>
                    <vb:if condition="$requestUri = array_shift($requestUri)"></vb:if>
                    <vb:if condition="$atCurrentItem = ($requestUri == substr($itemUrl, -strlen($requestUri)))"></vb:if>
                    <vb:if condition="$currentClass = $atCurrentItem ? 'current' : ''"></vb:if>
                    <vb:if condition="$atCurrentItem">{vb:set subnavItems, {vb:raw navbarItem.subnav}}</vb:if>

                    <li class="{vb:raw currentClass}">
                        <a{vb:raw targetAttr} href="{vb:var itemUrl}">{vb:phrase {vb:raw navbarTitle}}</a>
                    </li>

                </vb:each>
                <li><a href="#" class="js-footer-go-to-top">{vb:phrase go_to_top}</a></li>
            </ul>
Reply With Quote
Благодарность от:
Anton Rahman
  #5  
Old 11-12-2017, 03:20 AM
Anton Rahman Anton Rahman is offline
 
Join Date: Nov 2014
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks SEVEN SKINS -again- your solution was better and more comprehensive than that of vBulletin support

look up their solution on

https://www.vbulletin.com/forum/foru...oter-to-navbar

Many thanks and best wishes
Reply With Quote
  #6  
Old 11-12-2017, 11:28 PM
Mark.B Mark.B is offline
Senior Member
 
Join Date: Feb 2004
Posts: 1,354
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Anton Rahman View Post
thanks SEVEN SKINS -again- your solution was better and more comprehensive than that of vBulletin support

look up their solution on

https://www.vbulletin.com/forum/foru...oter-to-navbar

Many thanks and best wishes
You should be aware that the vBulletin support forums do not provide support for customising code, which is what the solution above involves. That is what vbulletin,org is for, which is why you got that answer here.

Code customisations are completely unsupported and may break following an upgrade. That's not to say you shouldn't apply them, as long as you understand the implications, however, having a public dig at the support team for not providing support for something we do not provide support for, isn't really on.
Reply With Quote
  #7  
Old 11-19-2017, 09:54 PM
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 Mark.B View Post
Code customisations are completely unsupported and may break following an upgrade. That's not to say you shouldn't apply them, as long as you understand the implications, however, having a public dig at the support team for not providing support for something we do not provide support for, isn't really on.
It's a good idea to take notes on what you do OR have done to your forum (@everyone) so for example if you have a simple change as this done, you would make notes in a saveable file with info on what was done. After you upgrade check your notes and re-apply any required changes to have all your customization restored . If you have someone do the work for you ask them ahead of time for a change-log or quick notes on what they did (for your record after an upgrade).
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 04:47 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04402 seconds
  • Memory Usage 2,237KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete