Style Variables and Templates Guide?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mrscot
    Member
    • Apr 2011
    • 54
    • 4.1.x

    Style Variables and Templates Guide?

    Is there a guide somewhere that defines what all the style variables and template names refer too? It seems I'm spending a lot of time making educational guesses and trial and error attempts to see how they all behave.
    It would be nice if there was some type of documentation on "How to be a vBulletin developer". Even if it costs a little money.
  • LockedOnLaw
    Senior Member
    • Apr 2010
    • 2311
    • 6.X

    #2
    I highly recommend using Firefox with Greasemonkey. It will give you all of the information you want in one place at one time.

    Download Greasemonkey for Firefox. Customize the way a web page displays or behaves, by using small bits of JavaScript.


    You can also use the built-in web developer tools by pressing F12 but Greasemonkey allows you to make changes and see them before applying them.

    Comment

    • Wayne Luke
      vBulletin Technical Support Lead
      • Aug 2000
      • 74149

      #3
      The areas that a style variable affects is generally built into its name.

      First, they are broken up into groups... BBCODE, Button, Breadcrumb, etc... This is the general location where it is used. All the style variables in the header group affect the header of the page.

      Next, they are named after the area of focus. header_search_* are style variables that change the button in the search tool in the header.

      Finally, they tell you where they are applied. Background, color, font, border, margin, etc... header_search_button_background changes the background color, image, position of that button.

      Templates are responsible for the HTML on a page. So they are named after the page and/or location they affect. Since most of the pages are in vBulletin 5 are created by "widgets" or "modules", their HTML is in the Module Templates group and ordered by module name. Reading them, you can see where they include other template bits to make up the entire module output. So if you wanted to see the HTML of a topic or conversation, you would start with widget_conversationdisplay.

      Though you can turn on the names of templates in the rendered page as well under Settings -> Options -> General Settings.
      Translations provided by Google.

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

      Comment

      • mrscot
        Member
        • Apr 2011
        • 54
        • 4.1.x

        #4
        Thanks, this is very helpful.

        Comment

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