vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   including templates with a product (https://vborg.vbsupport.ru/showthread.php?t=93273)

endquote 07-31-2005 09:24 AM

including templates with a product
 
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

Quote:

Originally Posted by MarcoH64
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

Quote:

Originally Posted by Odysseus
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.


All times are GMT. The time now is 12:32 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
  • Page Generation 0.02010 seconds
  • Memory Usage 1,735KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete