to get the prompt to work, find in battle.php
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderid) VALUES (NULL,$userid,$userid,$originating_user,'".addslashes(htmlspecialchars($title))."','".addslashes($message)."',".time().",0,0)");
and replace with
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderid,deleteprompt) VALUES (NULL,$userid,$userid,$originating_user,'".addslashes(htmlspecialchars($title))."','".addslashes($message)."',".time().",0,0,0)");
also find the second query:
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderid) VALUES (NULL,$userid,$userid,$originating_user,'".addslashes(htmlspecialchars($title))."','".addslashes($message)."',".time().",0,0)");
and replace with
PHP Code:
$DB_site->query("INSERT INTO privatemessage (privatemessageid,userid,touserid,fromuserid,title,message,dateline,messageread,folderid,deleteprompt) VALUES (NULL,$userid,$userid,$originating_user,'".addslashes(htmlspecialchars($title))."','".addslashes($message)."',".time().",0,0,0)");
(although this will alert YOU about it)
New Addon!
The Background Midi Playing System ^_^
All this talk about midis and stuff, i went and rewrote my random midi playing thing, into something more dynamic...
------------------------------
Features: ~
Unlimited Midis
Apply Midis Via the ACP in battlescene-like fasion
Preview Midis in ACP
Selectable During a New Battle: ~
Midis to be SHUT OFF
A Random Midi to play whenever the page is refreshed/viewed
A Specific midi to play in their battle
------------------------------
see attached file, also i would have vbhacker'd it, but i was having problems with vBHackMacker >.<
2 queries, 0 new templates, 2 template edits, 6 file edits
this will add an extra query when setting up a new battle, and an extra query if a midi is selected...
NOTE: if you put what i said earlier, GET RID OF IT ^_^ including the php code and template line