RoundCube Webmail Forum  

Go Back   RoundCube Webmail Forum > SVN Releases > Requests

For more information about the ads and why they're here, please see the FAQ
Reply
  #1  
Old 02-23-2007, 12:07 AM
Registered User
 
Join Date: Feb 2007
Posts: 29
Downloads: 0
Uploads: 0
Send a message via ICQ to Stevie Send a message via AIM to Stevie Send a message via MSN to Stevie Send a message via Yahoo to Stevie
Default Sound on new mail

Hi,

Ever since I've been downloading the SVN releases I've been altering the code to add in my own ding sound when a new e-mail arrives.

I think it would be a good idea to add it as it's very useful. Maybe an option in the preferences settings for those who don't want a sound as well.

I've been using a flash sound rather than anything that needs a browser plug-in or whatever. I just think it's much easier to load a flash file than a specific .wav, .mp3, etc.

Tell me what you think and if you add it.. fab!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 02-23-2007, 05:09 PM
Registered User
 
Join Date: Oct 2006
Posts: 1
Downloads: 0
Uploads: 0
Default Re: Sound on new mail

dear,

can u upload that code and sound for us in the post.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 02-23-2007, 09:47 PM
Registered User
 
Join Date: Feb 2007
Posts: 12
Downloads: 2
Uploads: 0
Default Re: Sound on new mail

yeah this would be nice to have...
__________________
Roundcube SVN 606, with the 'sound on new email' modification.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 02-24-2007, 04:14 PM
Registered User
 
Join Date: Feb 2007
Posts: 29
Downloads: 0
Uploads: 0
Send a message via ICQ to Stevie Send a message via AIM to Stevie Send a message via MSN to Stevie Send a message via Yahoo to Stevie
Default Re: Sound on new mail

Alright. It does work in IE7, IE6 and FireFox, but I have not used it for more than a few minutes in IE so do report back if there's crashes.

Save the below code as newAlert.js and upload it to your /pogram/js/ directory.

Code:
function makeDing()
{
	var flashObject = document.createElement("embed");
	
	flashObject.setAttribute("type", "application/x-shockwave-flash");
	flashObject.setAttribute("id", "makeNewDing");
	flashObject.setAttribute("src", "./program/newEmail.swf");
	flashObject.setAttribute("width", "1");
	flashObject.setAttribute("height", "1");
	
	document.body.appendChild(flashObject);
}
Edit main.inc in the /program/include/ directory. Find this line:

Code:
$OUTPUT->include_script('app.js');
Add this line after it:

Code:
$OUTPUT->include_script('newAlert.js');
Save that.

Find the file check_recent.inc in the /program/steps/mail/ directory and find the line:

Code:
$commands .= sprintf("this.set_quota('%s');\n", $IMAP->get_quota());
After that line add:

Code:
$commands .= "makeDing();\n";
Save that.

Next download this .swf file here (right click > save as). Upload it to the directory /program/

Refresh (F5) your webmail page and send a new e-mail to yourself to test if it works.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 02-24-2007, 08:00 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Downloads: 0
Uploads: 0
Default Re: Sound on new mail

In my system don't work !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 02-24-2007, 09:13 PM
Registered User
 
Join Date: Feb 2007
Posts: 29
Downloads: 0
Uploads: 0
Send a message via ICQ to Stevie Send a message via AIM to Stevie Send a message via MSN to Stevie Send a message via Yahoo to Stevie
Default Re: Sound on new mail

Quote:
Originally Posted by eghigo
In my system don't work !
Hi, sorry. My fault.

Find this line in your file:
Code:
$OUTPUT->include_script('emailAlert.js');
Change it to:
Code:
$OUTPUT->include_script('newAlert.js');
I've changed my first post, so no one else needs to change this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 02-25-2007, 07:16 PM
Registered User
 
Join Date: Aug 2006
Posts: 7
Downloads: 0
Uploads: 0
Default Re: Sound on new mail

Ok.. !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 02-26-2007, 03:58 PM
Registered User
 
Join Date: Feb 2007
Posts: 12
Downloads: 2
Uploads: 0
Default Re: Sound on new mail

Tested it on SVN versons 495 en 498 with no problems.
Would be nice to see it included in the next svn version.

Solid piece of work!
__________________
Roundcube SVN 606, with the 'sound on new email' modification.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 02-08-2008, 08:49 PM
Registered User
 
Join Date: Oct 2007
Posts: 9
Downloads: 0
Uploads: 0
Default Re: Sound on new mail

anyone updated this to work on the latest version?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

For more information about the ads and why they're here, please see the FAQ

All times are GMT. The time now is 02:45 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright © 2006-2008 RoundCube Webmail Community