Kier
Thu 15th Mar '01, 6:33pm
I see that someone else has an idea along the same lines here (http://vbulletin.com/forum/showthread.php?s=&threadid=11501), but I'd like to put forward my version of the idea, because I feel it is a fundamental flaw in the current template system employed by vBulletin.
I also know that it's not at all difficult to implement, because I've already done it at my boards, so this is really a request to have similar functionality added into the official release, so that I don't have to re-hack every new version that is released.
I want an additional template set added by default. Some of my hacks require that new templates are added, which is fine with the current system, unless you have multiple template sets, in which case you have to add the new templates to every additional template set, and if you ever add more templatesets, the additional templates have to be added to those too.
I thought that I had a solution to this problem, by adding my additional templates to the -1 (master) template set, but upon looking at the code executed by a vBulletin upgrade script, I found that the entire contents of template set -1 are arbitrarily wiped-out whenever you perform an upgrade.
Therefore, I suggest this: There should be an additional global template set, with a template set id of 0. This template set would contain only templates which have been added to the system, and should show up as global (unmodified) templates, along with template set -1. This would allow easy additions to the existing templates, which would be accessible and customizable for every custom template set.
It would require minimal code modifications to the existing vBulletin source (a couple of modified queries with WHERE templatesetid IN(-1,0,$templatesetid)), and would make everyone's life much easier.
I'll even offer to write the code, if it can be included in the vBulletin source.
I also know that it's not at all difficult to implement, because I've already done it at my boards, so this is really a request to have similar functionality added into the official release, so that I don't have to re-hack every new version that is released.
I want an additional template set added by default. Some of my hacks require that new templates are added, which is fine with the current system, unless you have multiple template sets, in which case you have to add the new templates to every additional template set, and if you ever add more templatesets, the additional templates have to be added to those too.
I thought that I had a solution to this problem, by adding my additional templates to the -1 (master) template set, but upon looking at the code executed by a vBulletin upgrade script, I found that the entire contents of template set -1 are arbitrarily wiped-out whenever you perform an upgrade.
Therefore, I suggest this: There should be an additional global template set, with a template set id of 0. This template set would contain only templates which have been added to the system, and should show up as global (unmodified) templates, along with template set -1. This would allow easy additions to the existing templates, which would be accessible and customizable for every custom template set.
It would require minimal code modifications to the existing vBulletin source (a couple of modified queries with WHERE templatesetid IN(-1,0,$templatesetid)), and would make everyone's life much easier.
I'll even offer to write the code, if it can be included in the vBulletin source.