No announcement yet.

Is this possible/allowed?

  • Filter
  • Time
  • Show
Clear All
new posts

  • Is this possible/allowed?

    I have one layout, but I wanted to make a different color scheme per page (usercp, showthread, showpost). I realize this may need different styles, but I was wondering if it were possible per page (not per forum), and if doing said change is allowed.

  • #2
    If you have the alternate colors loaded via CSS files then you can use template conditionals to do this. You would call your additional CSS file after vBulletin does its standard CSS for the file in the headinclude.

    For example the User CP:
    HTML Code:
    <if condition="THIS_SCRIPT == 'usercp'">
    <link rel="stylesheet" type="text/css" href="clientscript/usercp.css" />
    THIS_SCRIPT is defined at the top of every file.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API


    • #3
      That's a pretty good way to go about it! Thank you!


      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.