Quote:
Originally Posted by Revan
the warning will be fixed in v3, as for the midi playing I need you to tell me something.
Open battlefight.php and tell me what your $backmidi is.
|
My code for the $backmidi is as follows:
PHP Code:
if ($battle['midiid'] != 0)
{
if ($battle['midiid'] == -1)
{
$bm = $DB_site->query_first("SELECT url AS url FROM ".TABLE_PREFIX."rpg_battle_midis ORDER BY RAND()");
} else {
$bm = $DB_site->query_first("SELECT url AS url FROM ".TABLE_PREFIX."rpg_battle_midis WHERE midiid=$battle[midiid]");
}
$backmidi = "<bgsound src='$bm[url]' loop='-1'>";
} else {
$backmidi = "";
}
I bvelieve I found the problem... the $backmidi variable was noplace in the battle_arena template. I put the variable in the template and it now works