View Full Version : Sound on PM
Can we please have this hack because its better with a sound than scrolling all the way down to the bottom of the page and finding that you don't have a pm :(
Mobile
Search for this code in your index.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and replace it with this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Now you can use the $pmsound variable in your forumhome template.
Replace the gotmail.wav with your soundfilename!
Steve Machol
14 Aug 2001, 15:38
Good job Znaper! :)
Mobile, you can also do what I did and modify your formhome template to place the PM box at the top of your forums. Just put $pminfo right after the main table info, like this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Also, could you please enter your customer info into your user profile? See my sig for details. Thanks!
@smachol:
I have allready entered my customer info into my profile!
Or you mean Mobile?
Steve Machol
14 Aug 2001, 17:31
Originally posted by Znaper
@smachol:
I have allready entered my customer info into my profile!
Or you mean Mobile?
Sorry, I meant Mobile.
SirSteve
15 Aug 2001, 02:43
Can anyone record a good clip that says this?
mojotim
15 Aug 2001, 09:48
Go here and give it a try, it's what your looking for:
http://www.naturalvoices.att.com/demos/index.html#us_interactive
You type, and it will spit out a wav file for you.:D
webhost
15 Aug 2001, 10:34
ok, I have a question how would you setup a welcome sound message to your board when someone comes to your board?
Like this one would be welcome to the forums by vbulletin or something like that.
Nice one Znaper it worked 100%
Also thanks smachol already had done that but looks no good :)
Thanks Mobile
SirSteve
15 Aug 2001, 19:01
Webhost - that would get irritating quick! Each time you load that page, it'll sound off.
mojotim - thanks! This looks interesting!
webhost
15 Aug 2001, 20:46
it wouldn't be that bad if it only came up the first time you came to site. Though after thinking about it I agree. How about this though when someone register's on your site you give them a voice message wav. welcome message
SirSteve
15 Aug 2001, 22:47
This hack doesn't work on Netscape 4.03
almighty one
15 Aug 2001, 23:10
Originally posted by Znaper
Now you can use the $pmsound variable in your forumhome template.
you just put that anywhere in forumhometemplate?
webhost
15 Aug 2001, 23:15
almighty one
I am attempting to put it in now where it leaves a welcome message after someone register's if you are interested.
almighty one
16 Aug 2001, 00:26
well this wouldnt do me much good seeing how my forums is a locked out community where all users registering come directly through me it is like a family :) but i got pm thing working fine thanx
Steve Machol
16 Aug 2001, 17:28
Originally posted by Mobile
Also thanks smachol already had done that but looks no good :)You already tried to enter your customer info but 'it looks no good'!?! What do you mean? :confused:
moving the pm to the top of the board
Steve Machol
16 Aug 2001, 17:38
Mobile, please enter your customer info into your user profile as I requested. See my sig for details. Thanks.
Steve Machol
16 Aug 2001, 18:07
Originally posted by Mobile
that better
Not really. You still haven't entered a valid customer number and password. What happens when you try to enter this info?
Steve Machol
16 Aug 2001, 18:32
Hmmm.....all I can suggest is that you're not entering a valid customer number and password. Can you use those same things to get into the Members Area?
yes, i'll reply later m8.
Gotta go work :(
Steve Machol
16 Aug 2001, 19:07
Just out of curiousity, why do you have this warning for people entering your site?
! If you are affiliated with any government, or ANTI-Piracy group or any other related group or were formally a worker of one you can NOT enter this web site, cannot access any of its files and you cannot view any of the HTML files.
danielillo
18 Aug 2001, 06:52
Znaper, I've tried your hack in my forum, but if someone reads the PM and returns to main page, the .wav sounds again.
The unic way to disable it is mark all forums read just exiting Private Message Forum, and this is a little bit annoying.
Can we use the $pmsound variable just at the beggining of Head_newpm like:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
?
Excuse my English and my "code", but I've never written PHP code (I think It's gonna be obvious) :p
Ok im fixed this BUG!
The Sound plays so long, till you read the message!
Search for the fowling code into your index.php:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
And replace it with this code:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
When you have read the message, the sound and the light bulb goes off.
would it be possible to implement this for admins only for new post in specific forums?
:water
When I have time, then I code this for the Forums.
Chexbox
19 Aug 2001, 14:49
I think this would be more compatible with most browser versions:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I don't have a way to test that out, but I think it should work.
I know a lot of HTML
NYI Fan
20 Aug 2001, 04:24
Znaper -
Thanks for the help - this was great!
quick question though... you said we should replace the original line with this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Shouldn't it be: (my change in red)
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
I couldn't get mine to work until I did it that way
Thanks again!
NYI Fan
04 Nov 2001, 22:43
OK
I had this working beautifully on 2.0.3
now in 2.2.0, when i try and edit the index.php for this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and ensure that $pmsound is present in forumhome
I still have no sound
and if i make the change
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
as suggested, i get errors on line 24 of index.php
anyone have any ideas???
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.