vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   vBulletin Product Coding - re: Templates (https://vborg.vbsupport.ru/showthread.php?t=133356)

aciurczak 12-06-2006 04:18 PM

vBulletin Product Coding - re: Templates
 
Hi -

I've created a product on my board. Using some code I found on this site, I managed to have the product include some templates and phrases. Everything works fine, and I update the templates in the product from time to time, install the product, and all is well.

However, when I completely uninstall the product, the templates still exist. The phrases that are in the product do not exist. Upon reinstall, the phrases come right back, and the templates are still there, as they should be.

Why does the uninstall not get rid of the templates that were installed by the product file?

Princeton 12-07-2006 02:08 PM

you must add them to the MASTER ... you will need to enable debug mode if it isn't
https://vborg.vbsupport.ru/showthread.php?t=82835

aciurczak 12-07-2006 02:32 PM

Interesting. I don't have debug mode enabled, yet my Product installs the templates in all styles (just checked 'em all). If I just enable debug mode and install/uninstall, it will then cleanly uninstall the product?

Guest190829 12-11-2006 01:40 AM

Quote:

Originally Posted by aciurczak (Post 1133883)
Interesting. I don't have debug mode enabled, yet my Product installs the templates in all styles (just checked 'em all). If I just enable debug mode and install/uninstall, it will then cleanly uninstall the product?

Yes, as Princeton said, you need to enable Debug Mode, and then you will be given the option to add templates in the MASTER style and also associate the template with a product. When that product is uninstalled, its templates will be deleted as well.


All times are GMT. The time now is 01:11 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.00911 seconds
  • Memory Usage 1,713KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete