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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-09-2018, 04:44 AM
ramm4 ramm4 is offline
 
Join Date: Nov 2018
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Bootstrap CSS in header is causing alot of issues

Folks,
New to VBulletin, sort of to CSS, been scratching my head since September over this. I'd love some help. I am modifying the Default Skin, with the sole intent that it looks exactly like the other parts of my website.

To do this, I added some pretty basic Bootstrap CSS to the header template. Now, some odd things are occurring. I have a feeling it has to do with the Bootstrap CSS messing around with VB5 CSS.

First, screen shots:
  1. Register Page Blank (see attachment)
  2. Search Button Pushed Down (see attachment)
  3. Topic Button Pushed Down (see attachment)

Now, here's the Bootstrap CSS I added in the Header template



HTML Code:
<!-- css -->
  <link href="https://fonts.googleapis.com/css?family=Handlee|Open+Sans:300,400,600,700,800" rel="stylesheet">
  <link href="http://localhost/project/css/bootstrap.css" rel="stylesheet" />
  <link href="http://localhost/project/css/bootstrap-responsive.css" rel="stylesheet" />
 
  <link href="http://localhost/project/css/style.css" rel="stylesheet" />

  <!-- Theme skin -->
  <link href="http://localhost/project/color/default.css" rel="stylesheet" />

 

Now, for the menu:


HTML Code:
 <!-- start header -->
  <header>
   <div class="top">
      <div class="container">
         <div class="row">
            <div class="span6">
               <p class="topcontact">Welcome</p>
            </div>
            <div class="span6">
               <ul class="social-network">
                  <li><a href="https://www.facebook.com" data-placement="bottom" title="Facebook"><i class="icon-facebook icon-white"></i></a></li>
                  <li><a href="https://www.instagram.com/" data-placement="bottom" title="Instagram"><i class="icon-camera icon-white"></i></a></li>
               </ul>
            </div>
         </div>
      </div>
   </div>
   <div class="container">
      <div class="row nomargin">
         <div class="span4">
            <div class="logo">
               <a href="index.php"><img src="http://localhost/project/img/logo1.png" alt="" /></a>
            </div>
         </div>
         <div class="span8">
            <div class="navbar navbar-static-top">
               <div class="navigation">
                  <nav>
                     <ul class="nav topnav">
                        <li class="dropdown">
                           <a href="index.php"><i class="icon-home"></i> HOME</a>
                        </li>
                    
                        <li class="dropdown">
                           <a href="#"><i class="icon-globe"></i> COMMUNITY <i class="icon-angle-down"></i></a>
                           <ul class="dropdown-menu">
                              <li><a href="about.html">Register for Free</a></li>
                              <li><a href="about.html">Browse the Forums</a></li>
                           </ul>
                        </li>
                        <li >
                           <a href="about.html"><i class="icon-info-sign"></i> ABOUT</a>
                        </li>
                        <li>
                           <a href="contact.html"><i class="icon-phone"></i> CONTACT</a>
                        </li>
                     </ul>
                  </nav>
               </div>
               <!-- end navigation -->
            </div>
         </div>
      </div>
   </div>
</header>
    <!-- end header -->
That's it! I can't imagine the above is causing these odd issues. Not to mention, the user can't login (when they hover over "login", the input fields appear, then dissapear right away).

Any help, is extremely appreciated.

Rob
Attached Images
File Type: jpg screenshot.jpg (33.9 KB, 0 views)
File Type: jpg screenshot2.jpg (26.2 KB, 0 views)
Reply With Quote
  #2  
Old 11-10-2018, 12:22 AM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Don't add in css that way, I mean you can but for example you should be adding in the css to css_additional.css template in the style via style manager then adding in your new <div> classes to whichever templates you wish.

It sounds like something in your local css files you've included is overwriting the default css, you should view a normal default style and compare that css to the css you've added, if any have identical names they could be interfering with each other. I've had to work with third-party included css in the past for the NFL but in the end would usually add my own overwrites as best possible to the additional css template but by controlling the css and including it in the correct template you won't have any problem adjusting values only if the definition name you added is the same as one that already exist (by default). Also bear in mind if you try to overwrite any default definitions and aren't quite sure which css template it's in you can add the same definition name to css_additional.css and in the code just use !important to overwrite the default value, example:

Code:
body {
    background:#ffffff url(images/mycustombackground.png) no-repeat center fixed !important;
}

#breadcrumbs, #content {
    opacity: 0.9;
    filter: alpha(opacity=90); /* For IE8 and earlier */
}

#header img, .site-logo {
    opacity: 100 !important;
    filter: alpha(opacity=100) !important; /* For IE8 and earlier */
}

.mycustomcsshere {
    background-color:#f5f5f5;
    border: 1px solid #dbdbdb;
    color:#333333;
    font-size:1em;
    font-family: 'Handlee', cursive;
}
I tend to use !important quite a bit as you can tell .
Reply With Quote
  #3  
Old 11-11-2018, 11:06 PM
ramm4 ramm4 is offline
 
Join Date: Nov 2018
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I wish I could give you a million internet points. Doing exactly what you said, about adding the additional css into the proper template (and not 'header' or 'footer'..) corrected the majority of the problem. I also had one conflicting CSS entity which I just ended up removing, which solved the rest.

Thank you, thank you, thank YOU!
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 11:53 PM.


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.03660 seconds
  • Memory Usage 2,217KB
  • Queries Executed 12 (?)
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
  • (1)bbcode_code
  • (2)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (3)postbit
  • (2)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete