![]() |
not sure how much bigger really, as each page generally uses what, about 20 templates probably not much more than that it is only an extra 20 templates (max) which aint much i would think.
going to try. |
don't forget to change this $gettemp=$DB_site->query_first("SELECT template FROM template WHERE title='".addslashes($templatename)."' AND (templatesetid=-1 OR templatesetid='$templatesetid') ORDER BY templatesetid DESC LIMIT 1"); piece of code in the gettemplate function
|
thanks so much Mas*Mind for all the help here, that change does work perfectly. No idea what the performance issue would be but either way it works :)
a more powerful inheritance system would be quite useful i think though |
hmm..the order here (templatesetid=-1 OR tempatesetid='10' OR templatesetid='$templatesetid')) doesn't matter btw... The result is allready ordered by templatesetid.
This is fairly important because now when A has to inherit from B the templatesetid of A has to be bigger then the one of B |
Quote:
|
Glad I could help you :) You made me think though...I think it wouldn't be really difficult to implement an unlimited inherit-system.
Just let me think on this matter :) |
Quote:
But as -1 is less than 1 (default set) this is probably correct as the inheritance here is also working "downwards". |
Actually I think Kier and I (but mostly Kier) have already worked out an infinite depth inheritable system. (just a concept; havent actually coded it)
But we're not talking so nyah! ;) It'll probably end up being more efficient than the current system actually... (Now, why the heck do I keep clicking "quote" instead of "edit"? Argh!) |
cool :)
is what i have done going to cause any considerable performance problems though Ed? or should it be ok? all i did in the end was the extra OR templatesetid = 10 in both queries. |
No, not a ton of performance overhead. But you will be retrieve more records than necessary.
|
All times are GMT. The time now is 01:26 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|