vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Creating a Mod with new tables/database fields (https://vborg.vbsupport.ru/showthread.php?t=189650)

komirad 08-31-2008 04:43 PM

Creating a Mod with new tables/database fields
 
I know PHP/MySQL.
I am using VB 3.7.2
I have installed mods.
I have been looking through the code of some of the mods and made some minor changes to them.

I've read https://vborg.vbsupport.ru/showthread.php?t=98009 and https://vborg.vbsupport.ru/showthread.php?t=62164
but there's no explaination of where the installation code is.

I want to write a custom mod for my forums.
I notice there's an xml file that's used to install the mods.
How do I create the install file?

Let's say my mod requires me to create/edit tables on the database.
Where do I put the SQL code? Do I write it on the XML install file manually?
Or is there a way to write the install code in PHP then export it using the Manage Products page? :confused:

Lynne 08-31-2008 05:03 PM

You may want to see this article - [How-To] Product Managament (vBulletin 3.5 RC 1 and up)

When I have created products for my site, I have added the queries manually. I think there is a modification which will take care of that for you though.

edit: I think this is the mod I was thinking of (I don't use it, so I can't say much about it) - [APM] Advanced Product Management 3.0.4


All times are GMT. The time now is 10:41 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.01066 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)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