PDA

View Full Version : database change for mods.


Mad-Man
04-26-2010, 08:48 PM
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.