Exporting a VBulletin Mod...
Okay, so I wrote a vBulletin mod, and I would like to be able to use it on a website that DOESN'T have vBulletin on it. I was wondering if there was a way I could write aliases for the vBulletin functions, and then simply add an include at the beginning of the php file...
For instance, I am using the following function: $vbulletin->db->query_read()... I know I can simply REPLACE the line in my script with mysql_query(), but I would prefer to use the same files for both versions of my script.
Is there a way I can do something like...
$vbulletin->db->query_read() = mysql_query();
$vbulletin->db->query_write() = mysql_query();
Is this possible?
|