View Full Version : including templates with a product
endquote
07-31-2005, 09:24 AM
This may be a dumb question, but it's the last thing I'm trying to figure out for this little hack I'm working on.
As part of my product, I want to include one change to a calendar template. I can create the new template as part of MASTER STYLE and associate it with the product, but how do I make sure the end user ends up with it enabled? It is a replacement for calendar_showeventsbit.
Once I get this together I'll post it for you all to pick apart. ;)
Odysseus
11-01-2005, 01:08 PM
I'm also having problems whith templates.
I'm creating a product addon ti which belong some templates.
But when I try to export the product, the templates won't be includes in the product-XML.
I checked the templates, and the all belong to the product "vBulletin" instead of my own product. This happens although I create the template and assign it to the product. But when I open the template after its creation, it belongs to vBulletin instead of my product!?
How can I make a template to be stuck on my product and not switch back to vB??
Marco van Herwaarden
11-01-2005, 01:44 PM
Edit your template again and set it to your product.
Odysseus
11-01-2005, 03:33 PM
Edit your template again and set it to your product.
Hm ... when I open the template editor, I cannot change the product. There is no select box, the value "vBulletin" ist written in plain text.
And if I create a new template and set the product to MyProduct, it will be stored for the product vBulletin, no matter what I selected...
Zachery
11-01-2005, 04:25 PM
Hm ... when I open the template editor, I cannot change the product. There is no select box, the value "vBulletin" ist written in plain text.
And if I create a new template and set the product to MyProduct, it will be stored for the product vBulletin, no matter what I selected...
If you are developing plugins you should be running your dev board in debug mode ;)
Odysseus
11-01-2005, 08:17 PM
Hm ... things can be so easy! :D
Thanks.
//EDIT:
OK, doesn't seem to be so easy at all. :(
I activated the debug mode, but I still can't change a template's product assignment, and I still can't create a template belonging to a different product than vBulletin.
I can select my Plugin's name from a dropdown box, but the product will change back to vBulletin after saving.
I gave my Product a name beginning with "vB". This should not be an issue, since you just are not allowed to let the Product ID begin with "vB2, but not the title. Also, I checked it with another Product named "test", and the Style manager won't "remember" the product assignment, too.
Does anybody know the reason for this strange behaviour?
Odysseus
11-03-2005, 01:24 PM
//EDIT 2:
OK, I figured it out: I have to create the new templates in the MASTER-STYLE.
;)
Andreas
11-03-2005, 01:31 PM
All Templates, Phrases, Settings must be created in the MASTER set if you want to include them with your product.
jpodtbc
11-25-2005, 08:05 PM
if i am modifying existing templates for my product, and modify the master set templates, will importing my product completely over-write the existing forum's templates?
it seems like this would be the case. as such, is there another way to provide these changes or do i basically have to explain the detailed template modification instructions (ie find this line: $attachoption. insert this code after line: ... )?
Marco van Herwaarden
11-25-2005, 08:15 PM
For modifications you will need to write instructions yes.
jpodtbc
11-25-2005, 08:31 PM
thanko marco
Antivirus
01-11-2006, 04:51 PM
All Templates, Phrases, Settings must be created in the MASTER set if you want to include them with your product.
Hmm... MASTER STYLE set, meaning the default style? All i have in my style manager is "Default Style" and 1 "custom style". I still don't see the option to associate a custom template with my new product. Can anyone shed a little more light please?
my bad... I overlooked about having to be in debug mode :)
Zachery
01-12-2006, 10:55 PM
Hmm... MASTER STYLE set, meaning the default style? All i have in my style manager is "Default Style" and 1 "custom style". I still don't see the option to associate a custom template with my new product. Can anyone shed a little more light please?
my bad... I overlooked about having to be in debug mode :)
No, the MASTER STYLE, which can only be edited/ seen in debug mode.
led_belly
02-25-2006, 05:27 AM
Can somebody explain why vbulletin has this behaviour? I've created a new style, added new templates and made changes to templates imported at the time of creation from MASTER STYLE. Why can't I edit these and change their products? If I start editing the MASTER STYLE then I diminish the orgainzation of my site...
Andreas
02-25-2006, 06:22 AM
If it was possible to change the product association for non-Maste-Style Templates, this could end up in a total chaos.
Therefore, this is only possible in the master style.
led_belly
02-25-2006, 05:36 PM
Is there anywhere that explains the reasons the developers chose to design in this way? I'm just curious since it seems counter-intuitive to me; limiting built-in functionality because of (possibly) poor implementation...
I guess now the real question is, do I figure out some batch procedure to move all my style changes into the MASTER STYLE or do I export twice, once for the Product and once for the Styles...
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.