Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2010, 03:55 PM
zanthor zanthor is offline
 
Join Date: Dec 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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,
Reply With Quote
  #2  
Old 03-16-2010, 03:58 PM
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Location: Virginia
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zanthor View Post
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.
Reply With Quote
  #3  
Old 03-16-2010, 06:04 PM
zanthor zanthor is offline
 
Join Date: Dec 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TalkVirginia View Post
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)
Reply With Quote
  #4  
Old 03-16-2010, 11:33 PM
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Location: Virginia
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yep you're looking in the right place.. See the attachment below for clarification:
Attached Images
File Type: png 3-16-2010 8-27-52 PM.png (15.7 KB, 0 views)
Reply With Quote
  #5  
Old 03-17-2010, 01:24 AM
zanthor zanthor is offline
 
Join Date: Dec 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've created a product and that option is certainly not there... is there something magical to getting it to show up?
Reply With Quote
  #6  
Old 03-17-2010, 01:41 AM
TalkVirginia's Avatar
TalkVirginia TalkVirginia is offline
 
Join Date: Oct 2008
Location: Virginia
Posts: 545
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 03-17-2010, 02:14 AM
zanthor zanthor is offline
 
Join Date: Dec 2009
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 12-15-2010, 07:29 PM
Assopoker Assopoker is offline
 
Join Date: Dec 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 12-15-2010, 07:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Assopoker View Post
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
Actually, it's been like this since it was first introduced.
Reply With Quote
  #10  
Old 12-15-2010, 07:40 PM
Assopoker Assopoker is offline
 
Join Date: Dec 2007
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:04 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.08564 seconds
  • Memory Usage 2,266KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete