Announcement

Collapse
No announcement yet.

Breadcrumbs In Footer (Solved for Cloud)

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

    Breadcrumbs In Footer (Solved for Cloud)

    Ok so I was playing around with static modules and found a way to put breadcrumbs in the footer for the cloud hosted version of vbulletin. This works on version 5.4.1 but I'm sure it will work on others b/c it uses javascript that has been around for a bit since breadcrumbs are not much of a new feature these days.

    So I went to sitebuilder > edit page > add static html module and I put it below my channel display module

    Inside the HTML code I put the following javascript

    HTML Code:
    <script language="JavaScript">
    <!--
       String.prototype.capitalizeFirstLetter = function() {
          return this.charAt(0).toUpperCase() + this.slice(1);
       }
    
    //Bread crumb script - Kevin Lynn Brown
    //Duplicate directory names bug fix by JavaScriptKit.com
    //Visit JavaScript Kit (http://javascriptkit.com) for script
    
    var path = "";
    var href = document.location.href;
    var s = href.split("/");
    for (var i=3;i<(s.length-1);i++) {
    path+="<A HREF=""+href.substring(0,href.indexOf("/"+s[i])+s[i].length+1)+"/">"+s[i]+"</A> > ";
    }
    i=s.length-1;
    path+="<A HREF=""+href.substring(0,href.indexOf(s[i])+s[i].length)+"/">"+s[i]+"</A>";
    var url = "<a href='{{.Site.BaseURL}}'>Home</a>" + " > " + path;
    document.writeln(url);
    //-->
    </script>
    I wanted to give credit to Kevin Lynn Brown for the code as I used his script and modified it to fit my needs. I didn't write most of it so it is not all my code but this fits for what the breadcrumbs look like at the top of the screen.

    Here is the CSS I used to make everything look like the top. The only difference on my site between the top and bottom breadcrumbs is the arrow. It's not the standard keyboard arrow but it uses a sprite that vbulletin has. This can be changed to be standard but would require some additional coding or possible CSS changes. You will have to get the ID of the widget and modify it to fit the number of the widget that you will have added.

    HTML Code:
    #widget_195 .b-icon__toggle-collapse {
      display: none;
    }
    
    #widget_195 .module-title {
      display: none;
    }
    
    #widget_195 .widget-header-divider {
      display: none;
    }
    
    #widget_195 ul.breadcrumb {
      margin: 0;
      padding: 0px 0px;
      background-color: #FFFFFF;
    }
    
    #widget_195 h2 {
      display: none;
    }
    
    #widget_195 .widget-header {
      display: none;
    }
    
    #widget_195 {
        background-color: #FFFFFF;
        border: none;
        padding: 0;
        margin: 0;
        font-size: 12px;
        text-transform: capitalize;
        font: small-caps bold 12px Arial,sans-serif;
    }
    
    #widget_195 .widget-content, .post-content {
      color: #D2D2D2;
    }
    Let me know what you guys think but I put this together over the last day or so and it looks good on my end.


    #2
    How it looks on the top of the page:

    Click image for larger version

Name:	Screen Shot 2018-04-26 at 6.12.34 PM.png
Views:	138
Size:	3.2 KB
ID:	10657

    How it looks on the bottom of the page:

    Click image for larger version

Name:	Screen Shot 2018-04-26 at 6.13.24 PM.png
Views:	78
Size:	6.5 KB
ID:	10658

    Comment


      #3
      There's a small difference in the top and the bottom VIP words but I do not know how to solve that one yet.

      Comment


        #4
        Thanks for sharing pgreenway!
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


          #5
          It didn't work on my board.

          The members are clamouring for some form of jump box or nav menu at the bottom of the page.

          Comment


            #6
            Originally posted by nincompoop View Post
            It didn't work on my board.

            The members are clamouring for some form of jump box or nav menu at the bottom of the page.
            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 &gt; edit page


            how about this?

            Comment


              #7
              Originally posted by nincompoop View Post
              It didn't work on my board.

              The members are clamouring for some form of jump box or nav menu at the bottom of the page.
              With the code updates to vb5.5.4 it could be that the code I posted needs updating as well. I haven’t looked at it in a while but it’s working on my board still

              Comment


                #8
                Thanks, I will try adding it again.

                Doe it matter which page it gets added to?

                we have a lot of content on the forums page, and the masses want something at the bottom.

                I did look at the top drop down navigation, and will have a go at adding that, and hopefully get something at the bottom as well..

                Comment

                Users Viewing This Page

                Collapse

                There is 1 user viewing this forum topic.

                • Guest Guest

                Latest Posts

                Collapse

                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 "|||"