Back to vBulletin 3.5 Add-ons

Random Sound on PM Message
Mod Version: 1.00, by DjTaz

This modification is in the archives.
vB Version: 3.5.4 Rating: (0 vote - 0 average) Installs: 9
Released: 19 May 2006 Last Update: Never Downloads: 32
Not Supported Template Edits Additional Files  

What is this ?
This is a little hack that plays random sounds for users that have unread private messages. There are presently 10 sounds.

Modifications ?
1 template modification
1 folder upload (10 sound files)

Some History
I had a similar hack on 3.0.9 and when i went to search for it on 3.5 i discovered there was only one similar hack with only one sound and it used the embedding system which microsoft seem to dislike as it pops up an annoying activex window, so i did some research and came up with this.

What i cant do
I havent looked into making plugins and all that yet, so if someone else wants to go away and do as they wish with this to make it easier for everyone , please feel free, the easier things are for people the better.

ENOUGH OF THIS CHAT, WHAT DO I DO !!
ok,ok, heres what to do :

In the Navbar Template Find :
Code:
<if condition="$show['pmstats']"><br /><phrase 1="$vbphrase[unread_x_nav_compiled]" 
2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></if>
below it add :
Code:
<!!-- RANDOM PM SOUNDS FOR UNREAD PM [DJTAZ] --!!>
<if condition="$vbulletin->userinfo[pmunread]>0">
<SCRIPT LANGUAGE="JavaScript">
	var p = 10; 
	var whichSound = Math.round(Math.random()*(p-1));
document.write('<bgsound src="sounds/message'+whichSound+'.wav" autostart="true" loop="0" hidden="true">');
</script>
</if>
<!!-- RANDOM PM SOUNDS FOR UNREAD PM [DJTAZ] --!!>
Save and close the template , upload the sounds folder to your forum root , Click http://www.vbulletin.org/forum/vborg_miscactions.php?do=uninstallhack&threadid=116037 and your done - its simple enough as it stands really.


Support:
I will do my best to support this hack if there are any troubles , though i dont invisage any, but from today , i'll be on holidays for 2 weeks , and i may not have net access. Ill check things after that. Please do not ask for support if you havent clicked INSTALL

AfterThought :
After i did this thread i noticed that the 3.0.9 version was ported by paul and this version has an option to disable PM sounds - you can find it here :http://www.vbulletin.org/forum/showt...hlight=pmsound - its an excellent hack if you want that option

Download

This modification is archived and cannot be downloaded.

Similar Mods

VB PM Random Sound Notification vBulletin 3.5 Add-ons
Private Message Sound Notification vBulletin 3.0 Full Releases
Play Sound When Private Message Received - the Amy Way vBulletin 2.x Full Releases

vblts.ru supports vBulletin®, 2022-2024