PDA

View Full Version : Automated PM script...


m002.p
09-21-2008, 08:15 PM
Hello everyone

Ive been working on a automated PM script or should I say, trying to.

Basically ive a MYSQL database that contains a list of gaming players. This MYSQL database is separate from the vbulletin one, but on the same web server.

I want to create a plugin that will do the following:

When a certain field in the player database is xxx, then PM an array of users; being the admin team at the website.

A sample structure is as follows in relation to the above example;

// MYSQL Connect to player database

CODE HERE

// If conditional

if ($row['status'] == 'online') {

AUTOMATED PM SCRIPT HERE

}

Anyone who could create such a PM script plugin for me or direct me with examples would be much appreciated.

Please note; the database query is an array where it checks all of the "status" rows within the database for each entry made.

Thanks in advance

Matt

Logikos
09-21-2008, 11:39 PM
Check out this tutorial.
https://vborg.vbsupport.ru/showthread.php?t=82786

m002.p
09-22-2008, 03:19 PM
Thanks Ill check it out :)