PM Sound system.
PHP-Fusion: V7
Author(s): Domi & fetloser
Web: http://earnit.se

-=[INSTALLATION]=-

1. Extract files.
Go to your administration and infuse it.
Activate the pmsound link for your members.

open your user_info_panel or whatever sort of panels you use..
paste this under the includes.


//Hack up latest mess time
if (iMEMBER) {
include INFUSIONS."pmsound/infusion_db.php";
$pmtimecheck = dbquery("SELECT * FROM ".DB_MESSAGES." WHERE message_to='".$userdata['user_id']."' ORDER BY message_datestamp DESC");
$pmtimecheck1 = dbarray($pmtimecheck);
$timecheck = $pmtimecheck1['message_datestamp'];
//End time hack
$msg_count = dbcount("(message_id)", "".DB_MESSAGES."", "message_to='".$userdata['user_id']."' AND message_read='0'AND message_folder='0'");
$datapm = dbarray(dbquery("SELECT * FROM ".DB_PMSOUND." WHERE user_id=".$userdata['user_id'].""));
$pmsound = $datapm['pmsound'];	
$pmtime = $datapm['time'];	

if ($msg_count > 0 && $timecheck > $pmtime ) {
if ($data['pmsound'] =="nosound") {
} else {
echo "
<object type='audio/x-mid' data='".INFUSIONS."pmsound/sound/".$pmsound."' height='0' width='0'>
<param name='src' value='".INFUSIONS."pmsound/sound/".$pmsound."' />
<param name='autostart' value='true' />
</object>";
$result = dbquery("UPDATE ".DB_PMSOUND." SET time = '".time()."' WHERE user_id='".$userdata['user_id']."'");
}	
}
}

-=[NOTES]=-

* Lets your users choose a PM sound that will play on PM ..
* Automaticly lists the files you have in sound dir.

-=[CHANGELOG]=- -=[VERSION]=- v1.2
This whole update is to be credited to GameAction.

* Added WC3 compability from GameAction (Thank you GameAction)
* Updated code of embedded audio to object, tested with ff and ie7 (Thank you GameAction)
* Included user_info_panel.php from version 7.00.05 with pmsound code (Thank you GameAction)
* Updated infusion.php to look on locale files for language install (Thank you GameAction)
* Fixed "No sound" in select box to point locale file (Thank you GameAction)
* Zipped with italian included (Thank you GameAction)


-=[CHANGELOG]=- -=[VERSION]=- v1.1

* Ported to PHP-Fusion 7
* First release

Grats youre done njoy!.



