Announcement

Collapse
No announcement yet.

Dropdown Forum Navigator Selector (Solved for Cloud)

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Dropdown Forum Navigator Selector (Solved for Cloud)

    Want a quick forum selector added to your site? Look no further, now you can with the use of a static HTML module yet again.

    Go to sitebuilder > edit page > add static html module

    Code:
    <!DOCTYPE html>
    <html>
    <body>
    
    <style>
    .myBtn:hover {
        background: #990000 !important;
        color: #FFFFFF;
        border: 1px solid #D2D2D2;
        border-radius: 8px;
        padding: 2 !important;
        font: inherit;
        cursor: pointer;
    }
        .myBtn {
            background: #FFFFFF !important;
            color: #990000;
            border: 1px solid #D2D2D2;
            border-radius: 8px;
            padding: 1 !important;
            font: inherit;
            cursor: pointer;
            text-decoration: underline;
        }
    
    body select {
    background-color: #FFFFFF;
    }
    
    </style>
    
    <select name="list" id="list" accesskey="target">
        <option value="">Choose a forum...</option>
        <optgroup label="Sports Forum">
        <option value="https://www.dirtburglars.com/forum/sports-forums/athletics">&nbsp;&nbsp;Athletics</option>
    
        <option value="https://www.dirtburglars.com/forum/sports-forums/athletics/football">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Football</option>
        <option value="https://www.dirtburglars.com/forum/basketball">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Basketball</option>
        <option value="https://www.dirtburglars.com/forum/sports-forums/athletics/recruiting">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Recruiting</option>
        <option value="https://www.dirtburglars.com/forum/sports-forums/athletics/fantasy-sports">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fantasy Sports</option>
        <option value="https://www.dirtburglars.com/forum/sports-forums/athletics/other-sports">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Other Sports</option>
    
        <option value="https://www.dirtburglars.com/forum/sports-forums/the-press-box">&nbsp;&nbsp;The Press Box</option>
        <option value="https://www.dirtburglars.com/forum/sports-forums/the-press-box/podcasts">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Podcasts</option>
    
      </optgroup>
    
      <optgroup label="General Topics">
        <option value="https://www.dirtburglars.com/forum/general-topics/the-stacks">&nbsp;&nbsp;The Stacks</option>
    
        <option value="https://www.dirtburglars.com/forum/general-topics/the-stacks/the-pub">&nbsp;&nbsp;&nbsp;&nbsp;The Pub</option>
        <option value="https://www.dirtburglars.com/forum/general-topics/the-stacks/entertainment-tech">&nbsp;&nbsp;&nbsp;&nbsp;Entertainment & Tech</option>
        <option value="https://www.dirtburglars.com/forum/make-me-a-sammich">&nbsp;&nbsp;&nbsp;&nbsp;Make Me A Sammich</option>
    
    
        <option value="https://www.dirtburglars.com/forum/general-topics/marketplace">&nbsp;&nbsp;Marketplace</option>
        <option value="https://www.dirtburglars.com/forum/general-topics/forum-help-feedback">&nbsp;&nbsp;Forum Help & Feedback</option>
        <option value="https://www.dirtburglars.com/forum/general-topics/frequently-asked-questions">&nbsp;&nbsp;Frequently Asked Questions</option>
      </optgroup>
    
      <optgroup label="Forum Archives">
        <option value="https://www.dirtburglars.com/forum/forum-archives/game-threads">&nbsp;&nbsp;Game Threads</option>
        <option value="https://www.dirtburglars.com/forum/forum-archives/heisman-park">&nbsp;&nbsp;The Heisman</option>
        <option value="https://www.dirtburglars.com/forum/general-topics/stillwater-ok">&nbsp;&nbsp;Stillwater, OK</option>
      </optgroup>
    
    <select>
    <input class ="myBtn" type=button value="Go" onclick="goToNewPage()" />
    
    <script type="text/javascript">
        function goToNewPage()
        {
            var url = document.getElementById('list').value;
            if(url != 'none') {
                window.location = url;
            }
        }
    </script>
    
    </body>
    </html>
    These are the forums/subforums I use on my site. This is a combination of HTML and Javascript to run the function goToNewPage

    Below is the CSS I used to make the dropdown menu blend into my site and to look like I want it to. You may have to play with it to get it to be what you want and change the module number to whatever the module number you have to get the effects here that I used.

    Code:
    /* Forum Jump Navigator 2 on Subforum Menu Dropdown Selector */
    
    .b-module.b-module--flush-vertical {
      margin-top: -14px !important;
      margin-bottom: 4px !important;
    }
    
    #widget_198 .b-icon__toggle-collapse {
      display: none;
    }
    
    #widget_198 .b-module.canvas-widget.default-widget.custom-html-widget {
      border: none;
      background-color: #FFFFFF;
    }
    
    #widget_198 .channel-description {
      margin-bottom: 2em;
    }
    
    #widget_198 select {
      margin-bottom: 10px;
      margin-top: 2px;
      border: 2px solid #990000;
    }
    
    #widget_198 .widget-header {
      margin-bottom: 5px;
    }
    
    #widget_198 .widget-header h1 {
      font-size: 12px;
      color: #990000;
      background: none 0 0,#FFFFFF;
      margin-bottom: -10px;
      margin-top: 10px;
      margin-left: 18px;
    }
    
    #widget_198 .widget-header {
      background: none 0 0,#FFFFFF;
    }
    
    
    #widget_198 .widget-header .h-clearfix {
    
      background-color: #FFFFFF;
      margin-top: 10px;
      border: 0;
    }
    
    #widget_198 .widget-header-divider {
      display: none;
    }
    
    
    #widget_198 .canvas-layout-container .canvas-widget .widget-header {
      border: none;
    }
    
    #widget_198 {
        background-color: #FFFFFF;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 12px;
        text-transform: capitalize;
        font: small-caps bold 12px Arial,sans-serif;
    }
    
    #widget_198 .module-title.h-left {
      margin: 0;
    }
    
    .canvas-layout-container .canvas-widget:not(.widget-no-border) .widget-header {
      border: none !important;
    }

    Here is a picture of what it looks like:

    Click image for larger version

Name:	Screen Shot 2018-04-28 at 11.20.11 AM.png
Views:	354
Size:	17.0 KB
ID:	10687


    #2
    Thanks for sharing pgreenway!

    But note that when using HTML module (or Ad/PHP modules for that matter), you don't have to include the <!doctype>, <html>, <head> and <body> tags. Only one set of these tags are allowed and the page already has them. Some browsers may be forgiving and the page may still work but it's not a guarantee that it will work in the future.
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      thanks Glenn, I'll keep that in mind

      Comment

      Users Viewing This Page

      Collapse

      There is 1 user viewing this forum topic.

      • Guest Guest

      Latest Posts

      Collapse

      • nekro711
        New here
        by nekro711
        Hello guys,

        Im new in this vbulletin thing and while i googled for some info i found this forum.
        Today, 04:12 PM
      • Kubes
        Reply to New here
        by Kubes
        Welcome i am learning too. What version you running? I just upgraded to 6.0.3
        Today, 04:45 PM
      • MikeSD
        Hi, I'm starting over
        by MikeSD
        My web host went out of business after nearly 20 years. I had to do backups of all my Forums to a new site. That's when I started having problems....
        Today, 03:57 AM
      Working...
      X
      Searching...Please wait.
      An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

      Please push the back button and reload the previous window.'
      An unexpected error was returned: 'Your submission could not be processed because the token has expired.

      Please push the back button and reload the previous window.'
      An internal error has occurred and the module cannot be displayed.
      There are no results that meet this criteria.
      Search Result for "|||"