vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Add templates and phrases for the product? (https://vborg.vbsupport.ru/showthread.php?t=238323)

zanthor 03-15-2010 03:55 PM

Add templates and phrases for the product?
 
From the vbulletin manual (http://www.vbulletin.com/docs/html/creating_a_product) on how to create a product I can't find any documentation on step 3...

3. Add templates and phrases for the product?

I've created a plugin, I've got that associated with the product, but it depends on 3 templates and one CSS I created to function... I'd like to include those in the product, but cannot figure out how to associate them so they export all together...

Thanks,

TalkVirginia 03-16-2010 03:58 PM

Quote:

Originally Posted by zanthor (Post 2004146)
From the vbulletin manual (http://www.vbulletin.com/docs/html/creating_a_product) on how to create a product I can't find any documentation on step 3...

3. Add templates and phrases for the product?

I've created a plugin, I've got that associated with the product, but it depends on 3 templates and one CSS I created to function... I'd like to include those in the product, but cannot figure out how to associate them so they export all together...

Thanks,

For the CSS I believe you would need to replicate that into a StyleVar. I'm not sure what is involved in creating a new one though.

As for the templates, when creating a new template in the template manager, you would specify what product it belongs to. Then when you export your product, your template(s) will be included in the xml file.

zanthor 03-16-2010 06:04 PM

Quote:

Originally Posted by TalkVirginia (Post 2004867)
For the CSS I believe you would need to replicate that into a StyleVar. I'm not sure what is involved in creating a new one though.

As for the templates, when creating a new template in the template manager, you would specify what product it belongs to. Then when you export your product, your template(s) will be included in the xml file.

Adding a new template I have the following fields associated:
  • Style
  • Title
  • Template
  • Search in template
  • Save in template history
  • comment
Nothing about which product... am I going about this wrong? (AdminCP->Styles&Templates->Style Manager->Add new template)

TalkVirginia 03-16-2010 11:33 PM

1 Attachment(s)
Yep you're looking in the right place.. See the attachment below for clarification:

zanthor 03-17-2010 01:24 AM

I've created a product and that option is certainly not there... is there something magical to getting it to show up?

TalkVirginia 03-17-2010 01:41 AM

Try putting your site in debug mode. Add the following line to the bottom of your forumroot/includes/config.php file.



PHP Code:


$config
['Misc']['debug'] = 1


zanthor 03-17-2010 02:14 AM

Thats it...

Have to add it to the master style as well it appears.

I'll setup my dev environment and .htaccess protect that bastard before doing more work.

Thanks!

Assopoker 12-15-2010 07:29 PM

Thanks to this I placed my template on master style and now it works.
Also the option for the product appears only when its a master style.

Everything is tricky with vb4 :D

Lynne 12-15-2010 07:36 PM

Quote:

Originally Posted by Assopoker (Post 2134410)
Thanks to this I placed my template on master style and now it works.
Also the option for the product appears only when its a master style.

Everything is tricky with vb4 :D

Actually, it's been like this since it was first introduced. :)

Assopoker 12-15-2010 07:40 PM

How can I display the master style templates without setting it everything to debug?


All times are GMT. The time now is 08:31 AM.

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.01071 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_php_printable
  • (3)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