The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Template Changes via Products
How would I do this? If I want to make a product that overwrites an entire template, would I just run a query that overwrites the original template? Or is there another way to do this? As many people have several templates, I am not sure how to properly do this.
Help me out. =D Or or or... would I make a new row in the template group with -1 as the styleid? |
#2
|
||||
|
||||
In the cache_templates hook add a line to cache your template ;
PHP Code:
PHP Code:
|
#3
|
||||
|
||||
I'm still lost. I think I'm even more lost than I was before. Do I run an insert query? Do update a template? Do I not run any queries at all? I think I understand what you were saying, but I need to know what to do before I even get to that point. >_<; Don't hate me.
I see you, Xenon!!!! Help me!!! |
#4
|
||||
|
||||
actually: nope
you should not change a template with a product, because what would happen, if two products changes the same template? exactly: a problem... for template changes there should still be a install file, like the traditional one (that may change with new versions of vb) there is just one possibility you might have: manipulating the output of the print_output function, but as said, you shouldn't really do so, because if someone has a custom style, it won't work... |
#5
|
||||
|
||||
Oh my god. I love you both. <3!
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|