Announcement

Collapse
No announcement yet.

vBulletin 4.1.10 "Remove Orphan Stylevars" Tool

Collapse
X
Collapse
 

  • vBulletin 4.1.10 "Remove Orphan Stylevars" Tool

    In vBulletin 4.1.10, we added a new "Remove Orphan Stylevars" tool (VBIV-8845) to clean up any orphan or deprecated stylevar data that exists on your installations. The new tool is located at:

    Admin CP -> Maintenance -> General Update Tools -> Remove Orphan Stylevars (at the bottom of the list)

    To ensure your stylevar list is always clean from any deprecated stylevar, it is recommended that you run this tool after each upgrade, especially after the 4.1.10 upgrade: there were 109 stylevars removed in 4.1.10 over 4.1.9, thus you will have 109 deprecated stylevars after upgrading to 4.1.10, and if you also went through all previous vB4 versions, you've most likely cumulated over 200 deprecated stylevars.

    Running the tool will one-click remove:
    • Any deprecated vBulletin default stylevar - These can exist only on upgraded forums. If a stylevar existed as default in the master style of a previous vBulletin version, and you upgrade to a newer version where the stylevar no longer exist in the master style, it won't be "hard-removed" from your board by the upgrade script, because there is the possibility that it is used in your custom styles or in custom CSS you may have added, so "hard-removing" it would most likely do more harm than good.
    • Any oprhan custom product stylevar - If a custom product had stylevars associated with it, the stylevars were not being removed upon product uninstall. This was an issue resolved in 4.1.10, however the stylevars of products removed before upgrading to 4.1.10 would still be there.
    • Any orphan custom style stylevar value - This means, any stylevar that exists only in custom styles but not in the master style. These are oprhan data that still exist in your database but that cannot be viewed/edited anywhere. A typical situation that could create these is importing a style that was made for a different vB version than the one you're using: if a stylevar that was customized existed only in that version, it will create an orphan stylevar record when you import the custom style.


    The phrases associated to any stylevar that this tool removes will be removed as well.
    Before running the tool, ensure you don't actually need anymore any of the orphan or deprecated stylevars, and that custom CSS you may have added is not referencing any of them.

    • The Vegan Forum
      #24
      The Vegan Forum commented
      Editing a comment
      Dosn't the 'Find Updated Templates' page only list the same templates which are being warned about in the Administrator Attention Required message in the Admin CP after an update?

      I already have updated and dismissed/ignored some of these messages, because these are changes I want and have manually entered - *not* using Stylevars.

      One of the reports is about a 3 point floating header I have in one of the skins. It's still marked in red.

      What would happen with that change if I would be removing orphan custom styles after the 4.1.10 update? Are you suggesting that this change is Stylevr related and could be reverted if I removed the orphan stylevars?

      I've made other changes as well, whuch aren't listed in 'Find Updated Templates' - stuff that has to do with removing join date/post count from postbit, the size of thread titles, the size of main forum names on the main page etc., but these are not listed under 'Find Updated Templates'. Are these changes safe even if I remove orphan stylevars?

    • Sebastiano Vassellatti
      #25
      Sebastiano Vassellatti commented
      Editing a comment
      Originally posted by The Vegan Forum
      Dosn't the 'Find Updated Templates' page only list the same templates which are being warned about in the Administrator Attention Required message in the Admin CP after an update?

      I already have updated and dismissed/ignored some of these messages, because these are changes I want and have manually entered - *not* using Stylevars.
      It should be listing also templates whose changes were succesfully merged by the upgrade, giving you the option to dismiss them as they don't need further updating. So I don't think it's a problem if you already dismissed these or others you've checked already.
      Originally posted by The Vegan Forum
      One of the reports is about a 3 point floating header I have in one of the skins. It's still marked in red.

      What would happen with that change if I would be removing orphan custom styles after the 4.1.10 update? Are you suggesting that this change is Stylevr related and could be reverted if I removed the orphan stylevars?
      That really depends on the specific change. Look at that template and compare your current version to the default template version: does your custom version reference any stylevar that is not there in the default version? If no, then that's just fine to run the Remove Orphan Stylevars tool.
      Originally posted by The Vegan Forum
      I've made other changes as well, whuch aren't listed in 'Find Updated Templates' - stuff that has to do with removing join date/post count from postbit, the size of thread titles, the size of main forum names on the main page etc., but these are not listed under 'Find Updated Templates'. Are these changes safe even if I remove orphan stylevars?
      They were probably either in templates you've already dismissed or in templates that were not updated in 4.1.10, so didn't need any change. If the changes are not in templates whose name ends by ".css" then the stylevars have no direct relation with them.

    • The Vegan Forum
      #26
      The Vegan Forum commented
      Editing a comment
      Thanks. So - the bottom line is to look for templates - which are marked in red, - and ends with .css - and see if they reference any stylevar. What do I need to know in order to indentify if the template references any stylevar? Is the word "stylevar" in there, or do I need to read all the code and see if there's any terms in there which looks like a styevar name?
    Posting comments is disabled.

Related Topics

Collapse

Working...
X