Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-31-2005, 09:24 AM
endquote endquote is offline
 
Join Date: Jan 2002
Location: Seattle, WA
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 11-01-2005, 01:08 PM
Odysseus's Avatar
Odysseus Odysseus is offline
 
Join Date: Oct 2002
Location: Regensburg, Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #3  
Old 11-01-2005, 01:44 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit your template again and set it to your product.
Reply With Quote
  #4  
Old 11-01-2005, 03:33 PM
Odysseus's Avatar
Odysseus Odysseus is offline
 
Join Date: Oct 2002
Location: Regensburg, Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #5  
Old 11-01-2005, 04:25 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #6  
Old 11-01-2005, 08:17 PM
Odysseus's Avatar
Odysseus Odysseus is offline
 
Join Date: Oct 2002
Location: Regensburg, Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm ... things can be so easy!

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?
Reply With Quote
  #7  
Old 11-03-2005, 01:24 PM
Odysseus's Avatar
Odysseus Odysseus is offline
 
Join Date: Oct 2002
Location: Regensburg, Germany
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

//EDIT 2:

OK, I figured it out: I have to create the new templates in the MASTER-STYLE.
Reply With Quote
  #8  
Old 11-03-2005, 01:31 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All Templates, Phrases, Settings must be created in the MASTER set if you want to include them with your product.
Reply With Quote
  #9  
Old 11-25-2005, 08:05 PM
jpodtbc jpodtbc is offline
 
Join Date: Sep 2005
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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: ... )?
Reply With Quote
  #10  
Old 11-25-2005, 08:15 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For modifications you will need to write instructions yes.
Reply With Quote
Reply


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 07:01 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04377 seconds
  • Memory Usage 2,251KB
  • Queries Executed 11 (?)
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
  • (2)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
  • (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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete