vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   database change for mods. (https://vborg.vbsupport.ru/showthread.php?t=241326)

Mad-Man 04-26-2010 08:48 PM

database change for mods.
 
Is there a way to change a mod from using the default vbulletin database to one of my choosing? If so, where would I begin. And when in doing that, will that be against the rules as far as the mod creator would be concerned.

I do understand that this is a very broad question and for that I do apologize. It's for a ban list and I don't want to use the default database for this.

Any help would be greatly appreciated.

Paul M 04-26-2010 10:20 PM

Do you actually mean a completely different database, or just another table within the same database ?

Mad-Man 04-26-2010 10:25 PM

A completely different database, on the same server of course. We run a gaming league, and want the gaming league bans to be in this mod, not the bans from the forums.

Paul M 04-26-2010 10:37 PM

Then you will need to change the sql in the mod to read the data from the correct table in the other database, and also select the other database first - you can use $vbulletin->db->select_db('database') for that.


All times are GMT. The time now is 07:55 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.02822 seconds
  • Memory Usage 1,706KB
  • 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
  • (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