Still gettin negative plays after replacing the original coding with the following coding, take a peep
http://bb.hiphop.org/vb_jukebox.php still "-plays"
Quote:
Originally Posted by trafix
ok try this .. open vb_jukebox and remove (aroung line 300)
PHP Code:
// because the jukebox is using credits this overrides the usergroup permissions
if ($vboptions[jb_mode] == "3" AND $bbuserinfo[userid] > "0" AND $mysong > "0")
{
if ($bbuserinfo[vbt_adcredit] > $vboptions[jb_cost])
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
SET vbt_adcredit = vbt_adcredit - $vboptions[jb_cost]
WHERE userid = $bbuserinfo[userid]
");
}
else
{
$DB_site->query("
UPDATE " . TABLE_PREFIX . "vb_jukebox_trax
SET plays = plays - 1
WHERE songid = $mysong
");
$mostplayed[plays] = $mostplayed[plays] - 1;
$canplay = "2";
$warning = "1";
$warningdesc = "$vbphrase[jb_need_credits]";
$songdetails = "$vbphrase[jb_nothing]";
}
}
|