![]() |
Play a sound when new PMs are recieved..
This is a very simple little hack that will play a sound when you have a new (unread) private message.
A friend was asking if there was a hack to do this so I searched the hacks database and this forum and didn't see anything, but I'd be suprised if someone hasn't already done it because its so simple. So if this has already been done by someone else, my appologies.. We just converted over to vB from phpBB a few weeks ago, and for some reason the import script set everyones preferences to not be notified by email or pop-up when new PMs are recieved. So this helps make sure that they notice them anyway. :) |
hehe, cool idea :)
[high]* DWZ imagines AOL's "You've got mail" thing playing on new PM[/high] |
nice one maty :D has any one got any more sounds to have ? ? installed :D
|
Thanks. :)
Here's a couple of sites with a lot of free sound files: http://www.eventsounds.com/ http://www.top50wavsites.com/ |
Quote:
|
But they havent for vB, so good going:)
Nice idea, but I dont like Wav's on websites;) *installs on test board* Satan |
Seems like a kewl hack m8, Thx.
were's the screenshot...HAHAHA |
Works like a charm! :)
I'll be playing around with figuring out how to get random PM's from a folder to play instead of just one. ;) |
A similar hack has been made from FireFly, only his makes the header of the PM table flash a different table.
Nice job on this hack, nevertheless :) |
Thanks. Glad a few others found it useful. 350Chevy is the friend I mentioned above (his idea to do this mod for vB). He's another phpBB traitor like me. :laugh:
I installed the flashing PM hack by Firefly too. Awesome! Yet another way to make new PMs more noticible. :) |
Bleah..I hate using WAVs. They seem to use too much bandwith :(
But nevertheless, great hack :) |
Quote:
|
Nice1. Will it work ok on 2.2.6?
|
It should work fine with 2.2.6. :)
|
It should work with any 2.2.x version of vB;)
Satan |
A midi would be a bit better :)
- miSt |
Quote:
|
very nice, thank you :banana:
|
Removed to release independantly.
|
Removed to improve and release independantly.
|
Im not getting any sound???
is the code supposed to be put like this if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; }//new PM sound hack if ($unreadpm['messages']==0) { $sound=''; } else { $sound='<embed src="message.wav" autostart="true" hidden="true">'; } //end new PM sound hack or have no break in it like this? if ($newpm['messages']==0) { $lightbulb='off'; } else { $lightbulb='on'; } //new PM sound hack if ($unreadpm['messages']==0) { $sound=''; } else { $sound='<embed src="message.wav" autostart="true" hidden="true">'; }//end new PM sound hack |
Quote:
|
Replace it. I am using his sound file or I would have just released it as a new hack :D
Amy |
Thank you very much. ;)
|
Quote:
Or if you don't want to release it seperately I can add your version (as a seperate hack) to the first post of this thread and put your name by it if you want. |
Thank you EvilS1 :)
I am going to delete it for now and tweak it a wee bit. I wasn't paying attention this morning and the version I have now only works if popups are turned on. I'll fix that and release it when it's done tonight or tomorrow. Amy |
Jucin,
Add the code exactly as it is in the instructions.. It should look like this: Code:
//new PM sound hack If you've done that and uploaded message.wav to your forum directory then it should work. |
I installed a hack like this once for vB and it ended up breaking the Popup on PM feature. Does this hack interrupt that feature at all?
Also, could someone show me what would have to be modified to have this feature picked as default when signing up instead of email on pm. |
Quote:
|
All times are GMT. The time now is 02:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|