vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   delete and rename template via product command (https://vborg.vbsupport.ru/showthread.php?t=131051)

nasser71 11-08-2006 07:57 AM

delete and rename template via product command
 
hi
I need to know what code should I use to rename a template via a product and what is the code that I should use to delete a template also via product.

thanks

Paul M 11-08-2006 08:02 AM

The product system wasn't designed to delete or rename templates, and I can't really understand why you would ever want or need to - what are you trying to do ?

nasser71 11-08-2006 10:46 AM

thanks for your reply

i have made a code to hide bbcodes like code php quote and html codes
im traying to make a product to rename the orignal templates thin make a new template
and for the uninstall the product the product wil delete the templates and rename the old templates

Antivirus 11-08-2006 04:18 PM

I don't understand why you need to rename or delete any templates, as doing so could render calls to those tempLates by vbulletin to cause errors... but if you absolutely had to, I suppose you could write a SQL query and include it in your product's install code.

mfyvie 06-01-2007 01:21 PM

I think what you meant to say is that you'd like to remove the contents of a given template in memory, because your plugin is already executing a different plugin. I had exactly the same requirement and I solved it like this (change template name as appropriate):

Code:

$vbulletin->templatecache['modifyavatarbit'] = "";


All times are GMT. The time now is 01:35 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.01487 seconds
  • Memory Usage 1,709KB
  • 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_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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