Announcement

Collapse
No announcement yet.

Importing styles overwrite the base templates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Forum] Importing styles overwrite the base templates

    Hi,

    I posted a problem here: http://www.vbulletin.com/forum/showt...ultiple-styles

    Upon closer investigation I found out that when you import styles, it is possible that templates from the import overwrites the base templates.

    If you look at your template, you have styleids.

    The default style's id is 1. Furthermore, the base templates have a style id of -1.

    If you create a style which has no parent, its parent templates are in fact the templates from style id -1.

    Suppose you importing into a new style with id 2. The problem is that the templates imported don't create new templates with styleid 2, but rather OVERWRITES the old templates with style -1.

    This is evident because the username of templates with styleid -1 should be "Jelsoft", but instead will have the username of the person who made the new style.

    Thus, if the base templates are affected, everytime you import a new style, if the new style does not have its own templates, it will use the base templates, which will have been overwritten. Your styles will be broken then.

  • #2
    The person making your style needs to make changes in the Admin CP and export the style properly instead of editing the Master XML file.
    Translations provided by Google.

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

    Comment


    • #3
      Originally posted by Wayne Luke View Post
      The person making your style needs to make changes in the Admin CP and export the style properly instead of editing the Master XML file.
      thanks, is there a way of knowing from the XML file if its going to affect the Master?

      Comment


      • #4
        When you import a new style you have to set it to make a new style otherwise it overwrites the default style.
        ...

        Comment


        • #5
          Originally posted by setishock View Post
          When you import a new style you have to set it to make a new style otherwise it overwrites the default style.
          Won't matter, the master style does specific things.

          Comment

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