How to make template edits more manageable for upgrades

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waterwheel
    Senior Member
    • Oct 2004
    • 257
    • 3.6.x

    How to make template edits more manageable for upgrades

    Every time I up grade vB I have to revert a bunch of templates to get my forum back to how it was. It's nothing too hard, like some extra buttons here and there, this, and that, but I was wondering if there were any methods to make this easier.

    Could I make my own plug in that would put the code where I want it, or is there something else I don't know about?
    "Oh, so they have internet on computers now!" --Homer.

  • MRGTB
    Senior Member
    • May 2005
    • 5454

    #2
    If your adding custom code, wrap this arround your code so you know what changes you have made.

    <!-- custom code start -->
    CODE HERE
    <!-- / custom code end -->

    Then all you have to do to find all code changes you made later, is use the template search engine and enter "custom code start" etc to find them all

    Comment

    • waterwheel
      Senior Member
      • Oct 2004
      • 257
      • 3.6.x

      #3
      Originally posted by MRGTB
      If your adding custom code, wrap this arround your code so you know what changes you have made.

      <!-- custom code start -->
      CODE HERE
      <!-- / custom code end -->

      Then all you have to do to find all code changes you made later, is use the template search engine and enter "custom code start" etc to find them all
      Thanks for the good tip!

      I've noticed a few products and plugins over at vb.org that you can use the admin cp to turn them off and on, and they make the necessary template changes. Is there a way that I can make my own product to make some simple code additions in common locations?

      Where can I find some documentation on how to create a plugin/product?
      "Oh, so they have internet on computers now!" --Homer.

      Comment

      • Steve Machol
        Former Customer Support Manager
        • Jul 2000
        • 154488

        #4
        Here is the online documentation for the Plugin system:



        Here is some information regarding vB Plugins at vBulletin.org:

        [How to] Write Plug-ins/Hooks

        [How-to] Hooks and Plugins
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment

        • patrickb
          New Member
          • Jun 2007
          • 27

          #5
          Take a look at the Template Modification System (TMS) plug-in on vb.org.

          Comment

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