Quote:
Is there a multiple file attachment hack out yet? I've searched up and down with nothing.
|
https://vborg.vbsupport.ru/showthrea...441#post313441
Quote:
I've also been looking for a way to play random sounds (.wav) from anywhere on vB when recieving a PM.
|
This code will produce the file name in this format : "soundX.wav". X will be randomly between 1 to 10. I guess you can insert it to
this hack
PHP Code:
function make_seed() {list($usec, $sec) = explode(' ', microtime());return (float) $sec + ((float) $usec * 100000);}
srand(make_seed()); $srand_code = rand (1,10);
$wav_file='sound'.$srand_code.'.wav';
Use "$wav_file" variable instead of file name in that hack..