In your sites root, open the file member.php for editing
Find the code below:
if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, 10, -1))) PageCode(); }
Add the line of code in red:
if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, 10, -1))) PageCode(); echo "<embed src =\"welcome.wav\" hidden=\"true\" autostart=\"true\"></embed>"; }
Upload welcome.wav to your site root directory, or some other sound file. Done.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Thanks HL!!
Boy, you just opened the door to a whole lot of crazy stuff! There is so many welcome noises to play as you log on, this will be fun to change every week to listen to my members reactions!LOL
Back to pulling my hair out! (ouch, ouch,ouch) |
To play a sound when a member logs out, put the line of code below, immediately before the closing php tag in logout.php
echo "<embed src =\"goodbye.wav\" hidden=\"true\" autostart=\"true\"></embed>";
Then upload goodbye.wav, or other sound file to your sites root.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
ManOfTeal.COM a Proud UNA site, six years running strong! |
And.....
To find some wav files to play, use this Google Search
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
|
Does this play a sound for you or does it play the sound for the member who is logging in and out? My signature can beat up your signature! |
Does this play a sound for you or does it play the sound for the member who is logging in and out?
No matter where you are on the face of the earth, when a member logs into your site, you will hear a little sound in your head.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Hey HL…it seems like the welcome at login will only work if you are using the generic login…however, if you are using Facebook connect, it doesn't work. The coding is different as well. See below…
if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, 10, -1)))
{Redirect($site['url_admin'], array('ID' => $member['ID'], 'Password' => $member['Password'], 'relocate' => BX_DOL_URL_ROOT . 'member.php'), 'post');}
PageCode();
Jeremy |
That's OK... Facebook logins aren't welcome on my site anyway. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
LOL…I figured you were going to say something to that effect…considering I have ready many of your posts regarding facebook. Thanks bud…just wanted to share something I found. Jeremy |
LOL…I figured you were going to say something to that effect…considering I have ready many of your posts regarding facebook. Thanks bud…just wanted to share something I found.
... and I appreciate it. Perhaps a more befitting sound for Facebook connects would be "Hey you #@!! jerk... are you too ###ing lazy to fill out our join form?"
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Hi HL,
Works fine but it seems that there needs to be a time delay, so that the entire wav file to finish playing. I tried a long one first did not play, then I tried the goodbye wav but it was cut off at "good". Is there a way to place a time delay?
Thank you,
Jeff
|
Speaking of FaceBook, did you know you can now buy a vehicle that has FaceBook app installed so you can hear all your wall postings from your car at a push of a button...hughhhhhhh seriously, do we need another thing for the young kids to be distracted while driving? BAD BAD idea! You possess an intuitive intelligence so powerful it can help you heal, and relieve stress. |
|
HL is there a way to do this for when someone receive a new mail What's that falling? its a bird, its a plane, oh wait its Facebook |
This will be nice if we can play a sounf when some one login let say i'm using the chat and another member login or my friend will be nice to play a sound so people know some on login to the site Post Reply - if you going to help - No for - bla bla bla bla |
All these things are possible, I just gave one example. Sound notifications for various events would be a good mod for someone to develop. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
All these things are possible, I just gave one example. Sound notifications for various events would be a good mod for someone to develop.
agree
I yes think will be good I dea to do that two
Post Reply - if you going to help - No for - bla bla bla bla |
Hey...HL...it is pretty sweet find...however, do we really want to try and re-create AOL here? LOL Just as you despise Facebook...I just as much feel that way about AOL.
Hearing Welcome...you've got mail on my dolphin site is not something I particularly look forward to hearing in the near future.
Jeremy |
I never said I despised Facebook.... and that's OK... you won't have to hear 'welcome'. We won't force you to add this to your site. My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
This would be great if it only applied to friends.
I'm just imagining a site with thousands of members. The login sound could be constant and slow the site to a crawl. (Not to mention have people pulling their hair out)
Cool little mod for smaller sites anyway. Thanks!
|
This would be great if it only applied to friends.
I'm just imagining a site with thousands of members. The login sound could be constant and slow the site to a crawl. (Not to mention have people pulling their hair out)
Cool little mod for smaller sites anyway. Thanks!
I'm not sure what you mean by 'the login sound would be constant'. That welcome.wav file I posted is only 17KB, so serving up a small file like that to the person logging in, is a negligible load.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
I think I misunderstood this post, sorry.
The way I took it was that all members would receive a notification whenever any other member logged in. I was thinking that, if 20 members logged in within 10 seconds, the sound would then be almost constant for all online members. The 17kb file would also be served to so many members that it would be multiplied several times over as well - thus increasing the server load & slowing things down (if there were 400 members online and 20 logged in nearly at once for instance)
|
I think I misunderstood this post, sorry.
The way I took it was that all members would receive a notification whenever any other member logged in. I was thinking that, if 20 members logged in within 10 seconds, the sound would then be almost constant for all online members. The 17kb file would also be served to so many members that it would be multiplied several times over as well - thus increasing the server load & slowing things down (if there were 400 members online and 20 logged in nearly at once for instance)
Noooo...... it plays a sound when the member logs into their own account, that's all.
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |
Ahhh.... that explains my brain fart.
This is actually a great idea. A site could serve up a custom greeting with each login if they wanted to by just swapping the audio file. Clever & easy.
This confusion of mine did give me an another idea too. It would be interesting if a person could record their own short audio greeting that would announce to their friends they had come online whenever they login. I don't think that's been done before & could be a premium feature.
A little off the subject here, but thought it might be worth sharing in case anyone wanted to take the idea and run with it.
|
Hi HL,
Works fine but it seems that there needs to be a time delay, so that the entire wav file to finish playing. I tried a long one first did not play, then I tried the goodbye wav but it was cut off at "good". Is there a way to place a time delay?
Thank you,
Jeff
|
If your sound cuts off before completing the message... open your wave file using a free sound editor like Audacity and add 2 seconds of dead silence after the message... That should fix your problem.
~Gary
|
Compatibility
Dolphin 7.0.x
License
IMPORTANT: This is a non-commercial product made by houstonlively. It can be modified for other than personal usage. The "personal usage" means the product can be installed and set up for ONE domain name ONLY. To be able to use this product for another domain names you have to order another copy of this product (license). This product can be redistributed for free and not for a fee without written permission from houstonlively.
Version
1.1.0
In your sites root, open the file member.php for editing
Find the code below:
if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, 10, -1))) PageCode(); }
Add the line of code in red:
if(isAdmin($p_arr['ID']) && !in_array($iCode, array(0, 10, -1))) PageCode(); echo "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"0\" HEIGHT=\"0\"> <PARAM NAME=\"movie\" VALUE=\"welcome.swf\"> <PARAM NAME=\"quality\" VALUE=\"high\"> <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\"> <EMBED src=\"welcome.swf\" quality=\"high\" bgcolor=\"#FFFFFF\" WIDTH=\"0\" HEIGHT=\"0\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED> </OBJECT>"; }
Upload welcome.swf to your site root directory, or some other sound file. Done.
To play a sound when a member logs out, put the line of code below, immediately before the closing php tag in logout.php
echo "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\" WIDTH=\"0\" HEIGHT=\"0\"> <PARAM NAME=\"movie\" VALUE=\"goodbye.swf\"> <PARAM NAME=\"quality\" VALUE=\"high\"> <PARAM NAME=\"bgcolor\" VALUE=\"#FFFFFF\"> <EMBED src=\"goodbye.swf\" quality=\"high\" bgcolor=\"#FFFFFF\" WIDTH=\"0\" HEIGHT=\"0\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\"></EMBED> </OBJECT>";
Then upload goodbye.swf, or other sound file to your sites root.
This modification is only because Internet Explorer have a problem to open this sound TYPE="application/x-wav"
FLASH component (the tumor) is not the best solution and I know the battle that houstonlively bring forward but lets see it on many PCs as surely installed on any type of computer and mobile or tablet pc
Compatibility Now: Internet Explorer, Mozilla/Firefox, Opera, Chrome
|
This is great stuff and easy to do. Any ideas on how to do something like this when someone messenges you? A lot of times people don't see the yellow dot on the bottom menu when you messenge them |
Any ideas on how to do something like this when someone messenges you?
As a matter of fact, I do. Just apply this free modification provided by AntonLV
http://www.boonex.com/unity/extensions/entry/Messegner_Sound_Notification
My opinions expressed on this site, in no way represent those of Boonex or Boonex employees. |