vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Create/Delete File for Product? (https://vborg.vbsupport.ru/showthread.php?t=189746)

Bilderback 09-01-2008 05:54 PM

Create/Delete File for Product?
 
Hi, I am beginning to dive into the Product creation and was trying to find the simplest way
to manage a Product for the admin through the Install/Uninstall process.
The normal process with a Product which includes files is to upload via FTP and import product.xml
Is it possible to completely avoid file uploads and simply write PHP to create & delete files
or will I run into folder permission problems and/or errors?
Or is this possible through .xml or even a practical approach?
I see some forum owners uninstall Products and such and forget to remove relevant files.

Example:
Import product.xml which creates any needed files (product.php,bitfields.xml,cpnav.xml,etc)
And at Uninstall, all these create files would be deleted.

Just curious - thanks

nexialys 09-01-2008 06:03 PM

on a product, there is no file upload, you create and manage it thru the admincp only...

Bilderback 09-01-2008 07:22 PM

"The normal process with a Product which includes files"
meaning a Product / Mod which has custom files in its package.(php,xml,etc)
I too, have found myself uninstalling a Mod due to it becoming outdated, unsupported
or just conflicting with new vbulletin or Mod updates.
Then I need to figure out which files I had uploaded associated with that particular Mod.
If the Mod has hit the graveyard, you can no longer download it for reference.
And if you do not have a local copy for reference, it boils down to scanning the code
to see how the script runs and what it calls.
Mainly the reasoning behind my questions.


All times are GMT. The time now is 03:39 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.01001 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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