HTTPS / SSL and relative URLs in Stylevars

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Makaze
    New Member
    • Jun 2012
    • 7

    [Forum] HTTPS / SSL and relative URLs in Stylevars

    I am trying to convert my vBulletin forum over to HTTPS. Everything is working except for a handful of image URLs that are being generates in CSS templates. An example of the CSS rule:

    Code:
    #top_header .globalsearch .searchbutton {
        background-attachment: scroll;
        background-image: url({vb:stylevar imgdir_misc}/search-button-bg.png);
        background-repeat: no-repeat;
        background-position: left 0;
    }
    Inside the imgdir_misc stylevar is a relative URL of the form: images/metro/blue/misc/

    I have my forum URL set to the https:// url and I have the base setting set to yes.

    It appears that when the CSS file is loaded, it does not actually use the relative path. The CSS file actually renders the full http:// site url as a prefix. Is there any way to get it to either not replace the full path, or, to get it to replace the https:// version, without manually editing every single relative stylevar?

    This is the opposite of what you want for a relative pathname.
  • Makaze
    New Member
    • Jun 2012
    • 7

    #2
    Solved. After setting the base setting to "Yes, always use this as the base URL", I had to go to ACP -> Maintenance -> General Update Tools -> Rebuild Styles. Now it still forces the full pathname, but it correctly forces HTTPS.

    Comment

    Related Topics

    Collapse

    Working...