Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=454)
This is a small mod that gives an Audible alert when you receive a PM ("You've Got Mail") Every time you refresh the page it gives the warning until you read your PM.
*Audible Pm 1.5 and 2.0* uses sessions so that the "gotmail" sound is not going off every time you change to a new page. (Tiny Portal version also available)
*Audible PM 2.1* uses sessions so that the "gotmail" sound is not going off every time you change to a new page.
Versions:
-AudiblePm15 supports the 1.1.x line of SMF
-AudiblePmTp_15 installs with Tiny Portal
-apm20/21 both install with 2.0.15
-apm21 supports 2.1 beta 3/4
Thanks to:
"Psyclones" for the code, and to everyone else that tested and helped me package it, you know who you are, and your mentioned in the readme.txt
Changes
-Updated to work with 2.1 beta 3/4
-There was a small problem with users being called guests after they logged in, this is taken care of now.
-There was also a problem with a space in the header when the sound would play, this is also taken care of.
Does this install for all themes or do i have to add it to all themes that are not the default one myself?
You will have to add it, but it's a small edit it should not be any problems
I'm working on a version for TP 0.9.5 The original package doesn't or might not work when you have the "Show userinfo/news at the top" turned off in TP settings. It is done now I do believe but has not been tested yet. Just thought I would let everyone know.
Would anyone like to help test this. I already have the code on my site so I can't really and I don't have a test site with TP installed.
EDIT: I have tested it now and it does work with SMF 1.1RC3 and TP 0.9.5
I am upgrading to RC3 and TP.95 some time later today... I can send you the results...
Could you post the code to be added to other themes, please?
I have packaged up a mod for TP and all the code is in the modification.xml file.
For Tiny Portal In the Index.template.php file find:
if($context['TPortal']['showtop']==1)
And before that add:
//Sound Notify On Messages
if (($context['user']['unread_messages']) >= 1){
echo '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
}
And it should work for you. Remember to put the "gotmail.swf" file in the root of your SMF.
how hard would it be to make an option on the profiles so
members have to click it to be able to use it. my forum
is mostly used by office people from work and i would hate
to alarm them with that sound and get in trouble with their
bosses.
thanks
Well I can certainly look into that for the next version. It would be a nice feature. I'm not sure how long it would take me to do as this is my first mod. I will see what I can do.
i was just looking for the script for the
"Show a popup when you receive new messages?"
option on Profile. i would like to replace the
javascript alert function with your code.
think it will work?
if so, wanna help me find the snippet?
It might work but I have no idea were that code is. You have me interested so I am on the hunt now, lol. ;)
I think it's in the PersonalMessage.template.php
Quote from: Bigguy on September 13, 2006, 12:38:33 AM
It might work but I have no idea were that code is. You have me interested so I am on the hunt now, lol. ;)
cool. i figured the alert would be useless with the audible mod.
im going to search too. jay, where is it??
Well, I'm still looking. I haven't found it yet but I have found alot on Pm's and stuff.
In "Profile.template.php I found this. Would this be it:
// Extra options available to the user for personal messages.
echo '
<tr>
<td colspan="2">
<input type="hidden" name="default_options[copy_to_outbox]" value="0" />
<label for="copy_to_outbox"><input type="checkbox" name="default_options[copy_to_outbox]" id="copy_to_outbox" value="1"', !empty($context['member']['options']['copy_to_outbox']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['copy_to_outbox'], '</label><br />
<input type="hidden" name="default_options[popup_messages]" value="0" />
<label for="popup_messages"><input type="checkbox" name="default_options[popup_messages]" id="popup_messages" value="1"', !empty($context['member']['options']['popup_messages']) ? ' checked="checked"' : '', ' class="check" /> ', $txt['popup_messages'], '</label><br />
<label for="pm_email_notify">', $txt[327], '</label>
<select name="pm_email_notify" id="pm_email_notify">
<option value="0"', empty($context['send_email']) ? ' selected="selected"' : '', '>', $txt['email_notify_never'], '</option>
<option value="1"', !empty($context['send_email']) && ($context['send_email'] == 1 || (empty($modSettings['enable_buddylist']) && $context['send_email'] > 1)) ? ' selected="selected"
i dont think so.
that looks like the markup to show the options on the Profile page.
this shows up when you view source the webpage. its in the head section:
<script language="JavaScript" type="text/javascript"><!--
if (confirm("You have received one or more new personal messages.\nView them now (in a new window)?"))
window.open("http://www.xxx.com/xxx/index.php?action=pm");
// --></script>
This is found in index.english.php:
$txt['show_personal_messages'] = 'You have received one or more new personal messages.\\nView them now (in a new window)?';
so we need to search for $txt['show_personal_messages']
FOUND IT!!!!!!
sub.php
the javascript function is in there.
im going to comment it out and put your embedded flash in to see if it works.
OK, I got it working now.
Only need to alter 2 files.
FILE sub.php
Search for
// This is done to make it easier to add to all themes...
if ($context['user']['popup_messages'] && !empty($options['popup_messages']))
{
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript"><!--
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");
// --></script>';
}
Replace with
// This is done to make it easier to add to all themes...
if ($context['user']['popup_messages'] && !empty($options['popup_messages']))
{
$context['html_headers'] .= '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
}
FILE Profile.english.php
Search for
$txt['popup_messages'] = 'Show a popup when you receive new messages?';
Replace with
$txt['popup_messages'] = 'Allow an audible alert when you receive new messages?';
So this shows the popup window for a new PM and an audible alert so if you turn off the popup window the audible alert turns off. ???
Quote from: Bigguy on September 13, 2006, 02:47:07 AM
So this shows the popup window for a new PM and an audible alert so if you turn off the popup window the audible alert turns off. ???
no, i removed the popup window entirely cause its no use if there is an audio alert.
ive never really liked the javascript popup.
if you want both, leave the javascript and add the flash embed code just below it.
Ah, so basically it now has the on/off button you wanted. Maybe I will throw this into a package to, with credit to you of course for your hard work and testing. :)
EDIT: Unless you have any objections. ???
basically i just hijacked the on/off switch that was for a popup box and made it
work for the audible.
i have no objections 8)
Sorry, still waiting for my 3 main themes to be up to date, can't try the PM thingy before that :-(
Quote from: URPG on September 13, 2006, 07:32:51 AM
Sorry, still waiting for my 3 main themes to be up to date, can't try the PM thingy before that :-(
the original mod will require each theme to be changed.
the new update that replaces the popup box changes 1 core file
so it will work on all themes.
Ok I'll work on this today.
THIS MOD HAS ERRORS DO NOT DOWNLOAD
DOWNLOAD (http://www.smfhelper.com/au1.5.zip)
hey steve in houston can you check this out and see what might be wrong with it. or actually anyone that knows how to pack mods. I am ABSOLUTELY positive I have this right. It might just be my test server I don't know.
ive never submitted a mod before.
Oh, well.....damn, lol. I guess we will wait till someone is brave enough to try it out. I can post the contents of the modification.xml maybe that would be better. Like I said I think I got it right I just don't see the problem but if someone could give me a hint it would be great. it debugs fine and all but it fails on doing the edits to the Subs.php file.
the code I find in Subs.php is this and with the cdata stuff in the middle of the javascript it makes it hard to replace the code. I have bolded the code you left out in your post:
// This is done to make it easier to add to all themes...
if ($context['user']['popup_messages'] && !empty($options['popup_messages']) && (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'pm'))
{
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");
// ]]></script>';
}
The bolded part is part of the package code. This:
[CDATA[ code you are replacing goes here]]>
can not be in the code you are trying to add to the package. (If that makes sense.) There is another way but I have never done that. I will keep trying though.The full "modification.xml" file I have is this:
<modification xmlns="http://www.simplemachines.org/xml/modification" xmlns:smf="http://www.simplemachines.org/">
<id>bigguy:AudiblePM</id>
<version>1.5</version>
<file name="$sourcedir/Subs.php">
<operation>
<search position="before"><![CDATA[ // This is done to make it easier to add to all themes...
if ($context['user']['popup_messages'] && !empty($options['popup_messages']) && (!isset($_REQUEST['action']) || $_REQUEST['action'] != 'pm'))
{
$context['html_headers'] .= '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");
// ]]></script>';
}]]></search>
<add><![CDATA[ // This is done to make it easier to add to all themes...
if ($context['user']['popup_messages'] && !empty($options['popup_messages']))
{
$context['html_headers'] .= '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
}]]></add>
</operation>
<operation>
<file name="$languagedir/Profile.english.php">
<search position="replace"><![CDATA[$txt['popup_messages'] = 'Show a popup when you receive new messages?';]]></search>
<add><![CDATA[$txt['popup_messages'] = 'Allow an audible alert when you receive new messages?';]]></add>
</file>
</operation>
</file>
</modification>
Great news, thanks, still i need the themes i want to install to be RC3 compatible, and they are not... so i need to wait until the themes i need will run under TP0.95/RC3 then i can go check your mod :)
Great MOD !!!....
I translated to SPANISH ... If anyone need the Spanish file ( Tienes un mensaje nuevo ) , just replace the gotmail.swf file with THIS ONE (http://www.dtforum.com.ar/gotmail.swf) in the SMF root director after installed the MOD.
Thanks bigguy for the MOD and for the idea ;)
Thats great that you translated it, thanks alot. Did you translate the code above or the first version of Audible PM. ??? The version above is not packed yet but the code should work.
If you mark the code displayed i could do a german translation...
Quote from: URPG on September 14, 2006, 07:28:27 PM
If you mark the code displayed i could do a german translation...
This is found in index.english.php:
$txt['show_personal_messages'] = 'You have received one or more new personal messages.\\nView them now (in a new window)?';
That's all you need?
Informal: 'Du hast ein oder mehr persönliche Nachrichten empfangen.\\nJetzt anzeigen (in einem neuen Fenster)?';
Formal you replace the Du with Sie.
There is a new version available for download, either here or at my site: www.smfhelper.com This version was made (tweaked) with the help of JayBatchatero. it was made so that the "You've got mail" sound will turn off automatically after the first page refresh, so its not going off until you answer you PM's. There is also a Tiny portal version for download.
Installed and work fine.
Thanks
Your welcome. Did you install version 1 or 1.5 ???
Bigguy, i think it would be good if there is a screenie of this mod :D
Quote from: Bigguy on October 24, 2006, 10:04:43 PM
Your welcome. Did you install version 1 or 1.5 ???
Version 1.5 on RC3
I'm glad you got the latest installed. Well I would put a screenie up but it's an AUDIBLE mod so I don't think I can do that. The next version could have a screenie though.
Can i change the sound that is played?
Can users switch it on/off in their Profile?
Version 2 members should be able to switch it on/off. v1.5 members will only hear it once or twice then it shuts off. Yes you should be able to change the file and 1 small line of code. I don't have the code open right now or I could tell you what that is.
There is no version 2 (yet)? :(
No not yet but it is being worked on.
*evil smile*
Hurry up, or my members may go insane by the sound ;)
Have you installed version 1.5 yet. ??? That version only lets the "You've got mail" sound go off 1 or 2 times then quits.
Yes, it's 1.5 that i have installed, and no complains... not yet anyway, i know my people...
This is a cool mod. I enjoyed it. However it doesn't seem to work every time.
It only seems to work on the first PM and that's it. Isn't it supposed to say "you've got mail" everytime you get a new PM?
Yes everytime a new PM comes in it should sound off. The 1.5 version only sounds off once or twice and the first version goes off until your read the email.
For me it doesn't sound off on each new PM. Only the very first one i got. Not for any after...
I haven't heard of this happening before. can you uninstall and re-install it to see what happens.
I uninstalled and reinstalled. It doesn't work at all...
You are using v1.5 ??? Check to see if the edits were taken out of the index.template.php file. There is no reason why it shouldn't work unless the gotmail.swf was removed or another mod changed the code somewhere.
I looked in the template and here's what I found:
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
} if($context['TPortal']['showtop']==1)
That doesn't look right so I changed it to:
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
}
// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
if($context['TPortal']['showtop']==1)
and now it works fine. BTW, I was using the TP version...
Any chance we can get someone to make a "you've got messages" voiceover?
Glad you got it workin. :)
here are some new sound styles I have made in SWF file format for anyone wanting to use it
download zip pack here (http://path-to-peace.net/soundstyles.zip)
Simply rename the file you wish to use and replace on your server accordingly
enjoy
PS: not to mod maker - if u can also put this on the 1st post so that users have more alternatives :)
You DON"T want me to put it on the first post ???
lool that was a typo i meant "note" to the mod maker
yup put it in the 1st post - feel free to use
ill be posting more files over time so that this mod has like a lot of variety :D
I tested your TP install and it does not install properly. You might want to check your xml.
xarcell bro just put the code for the audible pm anywhere in the index temlate
worked for me
i put it just near the copyright notice and works :D
First post updated, thanks alot for the contribution. :)
I got it working, I'm just saying the installation doesn't work properly and should be fixed with TP.
It's a nice mod....
It has been tested on TP and SMF before release, but I will check again for any errors. I assume you had mods installed when you tried to install this one. ???
IT was the first mod I installed.
It mixes with the TP comment start line.
Ok, thanks I will ask at Tiny Portal and see if anyone has had problems. What version do you have 1 or 1.5 ???
1.5
v.1.5 works fine for me. only thing I've done lately was to change the swf file to a female voice.
Did you get the female voice from the first post in this thread or did you find it on the web somewhere. ???
Quote from: Bigguy on November 09, 2006, 01:26:57 AM
Did you get the female voice from the first post in this thread or did you find it on the web somewhere. ???
I got it from Bloc from Tiny Portal, and Aku posted here, which is now in the first post 8)
i updated the sound style file with a few more sounds :)
I have the animated envelope mod when I receive pm can I install this one too.
I have the latest smf 1
please advise
No I don't think you can. As far as I know both mods change the same code so once one is installed the other would not be able to find the apropriate code to edit.
I downloaded the latest version of this mod but I receive a 'Verification code' to enter before I can send a message?... I looked everywhere but I don't get it! The admin doesn't get this little box... I logged in and out as a member but still get this 'code' box... 'Listen to the Letters'??... beats me!
This has nothing to do with this mod. If you look in your admin panel under "Features and Options" down at the bottom is the settings that control that function.
Thanks Bigguy... for some reason I thought the mod activated that feature because I've never seen it before...lol
Thanks for a great mod! Working now... :)
...one last question... will the mod work with any file extentions like .wav etc.?
@sanax
sounds like your trying to register. That has nothing to do with this mod like bigguy says.
Yes it should if you alter the code just a touch. By looking at it you will see what to edit. ;)
Thanks Bigguy.. i changed the gotmail.swf with a .wav file but it doesn't play... I'll fiddle around and see if I can get it to work...
Placing your code near the copy right worked for me on my TP install (smf 1.1.1)
Thanks for this neat mod. Works a treat :D
aku is right: the code will work anywhere in the template.
Cheers!
May I have manual file edits for Themes/default/index.template.php
I tried to install with the package manager...but got an error.
Thanx.
In your index.template.php file look for:
// If the user is logged in, display stuff like their name, new messages, etc.
After that add:
//Sound Notify On Messages
if (($context['user']['unread_messages']) >= 1){
echo '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
}
ok, i'm going to try that. thanx bigguy
aww, its workd! I LOVE IT, mine says "Master, I have mail for you. " lol.
thats great glad you got it workin.
oi bigchops, I'm havin a prob with this mod, not sure if you have heard this one before..lol sometimes it speaks, sometimes it can't be bothered, but even when it does speak, it only does so as you open the PM, so a bit late by that point..lol
Ok, I will take a look for you tomorrow and see what I can do. :)
chop chop, don't hang about :D
Quote from: Xarcell on November 02, 2006, 04:28:07 PM
For me it doesn't sound off on each new PM. Only the very first one i got. Not for any after...
Same thing here. First message it sounds but as new messages appear -nothing-.
If I restart the browser I get the sound again.
Ver 1.5 TP and SMF 1.1.2
I will look into this in the next couple days. I am fighting a cold rigt now.
Is there a package for TP 0.9.8 and SMF 1.1.2?
Is this no where to be found on the mod site. ???
Audible PmTp_1.5
The version you're offering works perfectly well with TP and SMF 1.1.1 and 1.1.2 (and the other v1.5 (minus the TP) also with those two SMF versions) but members would have to use version emulate or alter the package install file to add those versions...currently it shows:
<install for="1.1RC2,1.1RC3">
Ok, I guess I should upgrade the package-info files for my mods then. I will do this today if I get time.
Another great MOD... i have the latest SMF default at it works like a charm.. my members love it and with the email flash MOD I also have they will never miss an IM... It also made be want to watch that Tom Hanks movie again :)
ok... well it started saying you got mail everytime i member moved about the forums so i turned it off :)
DId you manually install it or through the package manager. ??? I have never heard of this happening before to anyone.
through the package manager... download went without a hitch... it seemed fine for a while and then i got the audible about having mail... i was doing something else and noticed it kept saying youve got mail evertime i moved to a new forum page.. then members started asking me why it it keps doing this... any ideas on what i can do?
Well you could try clearing cache, temp files and cookies and doing a hard refresh. What other mods do you have installed. ???
i tried clearing the cache and cookies and then installed it again... it started doing the multiple you got mails when moving about the forums
here is everything i have installed
1. SMF Achat ALPHA 0.2.0
2. Ad Managment 2.0
3. Welcome Topic Mod 1.0
4. SMF 1.1.1 Update Package 1.1.1
5. SMF 1.1.2 Update Package 1.1.2
6. SMF Gallery Pro 1.2.2
7. Custom Profile Field Mod 3.16
8. Youtube Field by Alan S 1.0
9. YouTube BBC Tag
10. EmailFlash 2.0
11. Add PM Info To header (v1.1) 1.1
12. Users Online Today Mod 1.4.0
13. No Spam by Guests! 0.1
14. Country Flags 1.0.1
15. Avatar on Member List 1.0
thanks for the response :)
uninstall email flash and see what happens.
I doubt that it has anything to do with this issue but I happened to notice that Fillipina is using an old version of SMF Achat...see the forum for it here and you'll find v0.2.0b a package I made that includes a number of important bug fixes.
Could you make it notify by popup too? I know how to do this for one person, but I keep forgetting how to change it for everybody
I tried to install this mod. When I clicked on Apply Mod, I got a blank screen. Is this the proper way of installing this mod?
No, it's not. Check your permissions and verify that there is a temp folder in your Packages directory and that they are both chmodded to 777
Quote from: Gararion on June 23, 2007, 09:17:18 PM
I tried to install this mod. When I clicked on Apply Mod, I got a blank screen. Is this the proper way of installing this mod?
same here, and the packages folder are chmodded to 777
can we install it manually to a custom theme?
No it is not the proper way for it to be installed and yes you can install it manually. Go back over this thread; all the edits are written here somewhere or in the modification.xml file.
Hey Bigguy, I'm interested in installing this mod but it looks like the lastest SMV version it was cleared on was SMF 1.1.2 ?
Have you had a chance to see if it works ok with SMF 1.1.4?
TIA
It should work. If it doesn't I will update it. Try it out. If you get errors don't install. :)
Works like a Champ in SMF 1.1.4 Bigguy, Thanks
Glad you like it. :)
Cool thing!
Is it possible to make a switcher (on/off) in the profile for every user? It should be automaticaly ON, but some people don't like it probably.
I have read something at the beginning of the thread about it, but I didn't find an option in my profile for switching it off.
The other thing is: Can you make it configurable for different languages?
I mean, I use 3 languages. Is it possible to make 3 different sound files which are used by the selected language?
----
I installed this with a modified WoW template on smf 1.1.4
This is how it goes:
Upload the swf file into the forum directory.
Open your index.template.php and look for this:
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
add the following code after it:
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
echo '
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="0" height="0" id="gotmail" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="gotmail.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="gotmail.swf" quality="high" bgcolor="#ffffff" width="1" height="1" name="gotmail" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
// Save a session so it wont loop
$_SESSION['unread_sound'] = $context['user']['unread_messages'];
}
I haven't made a switch for it yet but it is something I am going to look into. As for the language part of it; I think that making a mod with all those different languages in it might make it a bit big. it's not a bad idea though.
For the language part:
It's enough if you make it possible that i can set in the admin panel, how many languages i want to use, name them and attach a swf file to them via upload.
Everybody, who wants to use multiple languages, has to make his own language files (swf).
I think it's fair.
I have no problem to make a language file in hungarian and share it with the community. So you don't have to make them all, but with time, we could get all the requested language files (just like translations of text files)
And then theres ring tones, and, and.....see what you started with this mod Bigguy.........lol
If you want a different sound then why not just find a suitable .swf file for yourself then rename it to gotmail.swf and replace the existing file with your new one...very easy and no code changes needed.
Quote from: TrueSatan on October 11, 2007, 08:14:45 AM
If you want a different sound then why not just find a suitable .swf file for yourself then rename it to gotmail.swf and replace the existing file with your new one...very easy and no code changes needed.
Because I don't want one language, but 3 different languages.
My forum works in english, german and hungarian. People can choose their languages for the template and I want that they get the sound in that language, which they are actually using for the template.
QuoteAnd then theres ring tones, and, and.....
That's the sense of modding ;)
I will certainly look into this. :)
Cool!
Thanks!
I installed this mod and have a problem.
It is working only first time after instalation, and after that not.
I've uninstalled the package and installed again, and it worked only for one pm.
Where is a problem?
EDIT:
I closed my IE, and when I came back I had a pm, and it says again "you got mail", but after that, when I recieved another pm...NOTHING!
The latest version only does it once so as not to bug the user and become an annoyance. If you want it to continually sound until the PM is read then try the very first audible PM mod.
Audible PM version 2 is now complete. Both a TP version and a standalone. It has not been approved by the mod team yet but give it a shot and see if it works out for y'all.
If all is fine then I will submit it to the mod site. Just thought a couple people might like to try it out. I also want to thank Feeble for his help in the second version of this mod. PLease read the readme for more details.
which part of my server do i put the music file into
great mod btw, if only i could get it working :D
Please install the mod in the normal way...that will put the files where they need to be.
i have installed the mod correctly but it isnt working :(
Did you download the mod from this post:
http://www.simplemachines.org/community/index.php?topic=112318.msg1352611#msg1352611
yea, it is installed on my forum because i have the option to disable on my profile, i cant hear the message you got mail :(
great mod aswell
The swf messes up my header..dropping it down a little.
Maybe when you get a pm...
You can redirect to a page where it'll play your sound and let you pick if you want to see your pm.
To replace the popup.
Just an idea.
Hi peeps.
Im not sure if youre still supporting this mod Big, as on another mod, you said you weren't continuing it due to other ventures etc.
Anyways.. I was wondering if somebody could help me install this into the invazion theme. I am also using TP.
I have the first version of this mod.
I have tried to manually install it for this theme, but my index.template.php is very different compared to the default.
ThankYou very much for your assistance :)
The template is attached.
I don't think I have ever said I wont be providing support for this mod. :) I will take a look at your index.template and see what I can do for ya. :)
Try this and see if it works:
Quote from: Bigguy on February 20, 2008, 10:31:52 AM
I don't think I have ever said I wont be providing support for this mod. :)
LOL Sorry mate..
As I skimmed through the pages to see if my theme had been done here, I saw how active you were, and made the misjudgment of thinking you had taken over.
But now see how active you are throughout the fora. The 5,513 posts didnt give it away. lol
My baad :D :D
Quote from: Bigguy on February 20, 2008, 10:31:52 AM
I will take a look at your index.template and see what I can do for ya. :)
Brilliant mate :clap:
That worked a treat :D
1 thing.. if I may be soo rude to ask. :-[
It is only working on the home page, and no other.
I have the first version installed, so people will be nagged everywhere they go onsite, until they answer their damn mail!! lol.
So what would I need to add/change/delete to make this so??
Thank You very much Big :)
Your assistance is greatly appreciated :)
If thats the first version of the mod it should sound anywhere they go on the forum or the front page. Is there any errors from it ??? It always worked fine for me when running TP.
Hey there Big :)
I uninstalled it, and reinstalled it to see if by chance, that made any change.
But unfortunately, no glory.
There are no errors at all.
It is definitely the first version.
On the default theme, its working fine on every page using TP.
Just not in the custom theme, that we added it to.
What theme are you using. ??? If there is no errors in the logs and you put the code in the right place then I can't see where the error would be.
Im using the theme invazion.
With the code, I just installed the index.template.php you had done for me above.
Possibly something small you may have missed??
If you cant figure it out, thats fine mate :)
I'll just chalk it up as one of those things.
No Biggie :)
Thanks bud :)
I downloaded the template again and I will go over it for you once more. :)
I can't see a problem anywhere. :(
I'll download your completed template, and re add it again.
At this point, Im up to trying most anything.. lol
Nope.. No glory :(
I have had the new version installed before. But it uninstalled without any hassle.
Possible there is something left over??
Drop me a link to ur forum and i will stop by tomorrow; if thats ok. :)
Do you accept PMs?
Im not sure if mine went through, as it is not in my sent box *scratch head*
If so, it has your login details, as the site is not yet open to reg.
Thanks mate :)
PM received...I checked it out and I can hear sound. Did you change ANy other code other than the sound file. ???
Nah.
I only changed the audio file.
But after I noticed it not working anywhere else.
Attached is the current index template incase you wanted to check.
EDIT: I just checked your PM.
Could you only hear it on the front/home page, or throughout the forum also?
Just on the Front page. Try this
Isnt that my first zip file I upped for you?
But I installed anyway, and there is no sound at all.
EDIT: Deleted that template, to reinstall the one I previously replaced.
But before I replaced it, I searched my forum without an index template installed.
A bit of a visual mess as you would expect.
But its working throughout the whole site.
Is that because it's now reading from the default theme??
Ok.. Putting template back now :)
I got that index.template from this post:
http://www.simplemachines.org/community/index.php?topic=112318.msg1435869#msg1435869
Yes thats because it's reading from the default but I don't understand why it won't from the theme you are using. It should work just fine. The code should be in the same place in both files.
Well mate, I wont give you anymore headaches, I'll just leave it as it is.
Thanks for all your assistance bud, its been greatly appreciated :-)
I would like to know why this is happening. If I can; maybe tomorrow I will take another look at the files. but all seems to be fine with where it is positioned.
UPDATE.
Switched to the default theme (dont recall why) for a sec.
And noticed that the "youve got mail" is doubling up.
Eg.. "youve youve got got mail mail"
Hope this points to something familiar to you.
Your account details will stay there, so I will leave it in the default theme for today, if you wanna go and check it out.
Cheers :)
I haven't looked yet today but maybe the code is doubled up in the default theme.
Hi
I tried to install the version 2 mod, but got this error from package manager
Installing this package will perform the following actions: Type Action Description
1. Execute Modification /usr./Themes/default/Profile.template.php Test successful
2. Execute Modification /usr./Themes/default/languages/Profile.english.php Test successful
3. Execute Modification /usr./Themes/default/index.template.php Test failed
4. Extract File ./gotmail.swf
I have smf 1.15 and TP 1.0.5 beta
Is it compatible yet with these versions or are there any other problems
If you have other mods installed it's probably one of them interferring with the mod install.
hi big!
just finished installing your mod and at my site, when i tested it using my test account to pm my admin account in vice versa it works. but when i tried to pm my members they dont hear the you "got mail" sound even if they are in the index or home, im using a custom theme. im just wondering why doens't my members hear the "you got mail" sound.
Ask them to refresh the page (ctrl + f5) and see if that makes a difference. There are no permissions for this.
So I have the SMF 1.5 (without TP) and I install the AudiblePm15.zip
I moved the gotmail.swf to my public_html, but no sound....
What should I do ??? ??? ??? ??? ??? ??? ??? ???
pleaseeeeeeeeeeeeee helppppppppp someoneeeeeeeeeeeeeee
Make sure all the edits are done to the files it modifies. I will be working on a new version of this soon. Not much will change I just need to make it comply with SM.
Has this mod been updated as yet? I'd like to try it, but waiting for newest updated version.
Thanks :)
No not yet it hasn't. I'm trying to find the time to do it.
Quote from: Bigguy on August 01, 2008, 11:26:50 PM
No not yet it hasn't. I'm trying to find the time to do it.
Ok I'll sit back and wait. :) It looks like a really neat Mod.
Thanks for the response.
No problem...I'm hoping to find time this weekend but so far no luck. :)
Quote from: Bigguy on August 02, 2008, 03:16:24 PM
No problem...I'm hoping to find time this weekend but so far no luck. :)
:( :( :( patience is not one of my virtues, but (sigh) I will try lol
It's not one of mine either, lol. ;)
Quote from: Bigguy on August 02, 2008, 11:52:38 PM
It's not one of mine either, lol. ;)
:'( :'( :'( :'( :'(
Hoping patience doesn't run out lol ;D
Quote from: NYChamps on August 03, 2008, 04:28:12 AM
Quote from: Bigguy on August 02, 2008, 11:52:38 PM
It's not one of mine either, lol. ;)
:'( :'( :'( :'( :'(
Hoping patience doesn't run out lol ;D
Stop bugging him so he can finish it. :P LOL...just kidding... wanted to try this one 1.1.5 too, but got "test failed" on index.template.php, so I'm hoping the new version works for me.
Oz
I have been working with this long enough that I'm fixin to pull my hair out. :)
I am using the audible pm version 1.5 on a SMF 1.1.5 install. I have gone through the posts and am trying to get it to be able to give the members the option to turn off the pop-up and the audible alert, or have one or both enabled. I did the edits I found here in the posts, but no joy.
Can someone point me in the direction I need to go?
I am seriously NOT a programmer, so a "dummies" version would be preferred. :D
Thanks in advance,
Mickey
I still have not had time to update this mod. For now; I am not going to give a time as time seems to be the one thing I am running out of lately. I will however try to update this mod as soon as I can. Please have patience. I know some of you have been waiting for a bit and for that I am sorry. I will try to get to this soon. :)
Hello there.
I installed apm20.zip manually, but it cant work.
Attached index.template file.
I dont have code:
echo '</form>';
But i have similar code that i edited, but still dont work.
Anyone can help?
Try this and see if it works:
Thank you it works now. :)
Glad to hear it and your more than welcome. :)
i uploaded my custom swf file to the server
but then i don't know why it keeps repeating the sound until i go to another page???
i attached the swf, do u have any idea why?
I would think it's the way the .swf file is made. It would not have anything to do with this mod.
can u help me convert the swf? i have the mp3 file ::)
I don't have a converter. If you do then you can do it but if there is a setting to loop it, turn that off.
i did turn it off but somehow it's still looping
is it possible to play mp3 files with this mod?
It might. I have never tried mp3 before. Maybe someone here on the forums can convert that for you. :)
alright i attached the mp3 file if someone is willing to convert it to swf for me
will be appreciated (how do u say this in appropriate way, i'm not a native english speaker O:)
I don't know how good this is. I downloaded a free one and it says it only converts 60% of the file but try it and see what you think. That's the best I can do for you.
i think that's one of the trail out versions of software i've tried
but none of them went well
as it says it only converts 60% of the whole file... :P
anyways thx for trying for me
most of the mp3 to swf converters ask for almost $40 i think that's totally not worth it
Maybe someone else will be by to help you out. If I find one I will post back and give ya a hand. :)
There is a free program called SUPER. It's the best for converting video/audio.
Just reloaded this on my 2.0.1 forum after a long absence, and works great! Thanks Bigguy!
I have Simple Potral + Custome Theme. This mode is not working WHY?
Probably cause you have Simple Portal and/or a custom theme installed, lol. Parse the mod and add the edit to the file required and you should be good to go. :)
Hi All. This is an awesome MOD! All works well for the users and all, they love the you've got mail sound--a bit nostolgic. But I am well old enough to remember everyone went giddy with aol because of this. The one thing I am not understanding is, as an admin it doesn't seem to work for me. I don't hear anything. But when I log into after pming a test user for me it works dandy. Not complaining at all, and if it makes my users happy I am happy to say the least. It was just one of those pecular things driving me crazy wondering why its not working for me as admin.
Thank you for helping.
William
Hmm, there is no reason it should not work for you as admin. There are no settings for this mod or permissions. That's a bit weird.
Happy Holidays BigGuy,
Do you think as admin, and testing a few things out, I am loggin in and out of my admin session and then into a user session then back again logging in and out each time. Wonder if that is interferring with it?
Thanks.
William
Can you clear your cache and sessions in your browser. (Some browsers allow you to clear seesion) Maybe that would help.
Yes sir it worked after clearing out totally the cache and cookies. Do you create a cookie to see if we have logged in once and then if the cookie is there we don't repeat? Is there a way to link a hook to logout and erase the cookie when we end session? So if they log in again the same day it will play again if they have mail? Don't know if its possible-just a thought. Thanks and Love the mod!
William
This version of audible Pm works with sessions. The audible Pm should not go off every page refresh...just once to let you know there is one.
Thank you so much again. It even works for me. Was easy to install as well.
Maybe you can answer a silly question for me. On the smf board, you can see next to the top page numbers then the word all and the go down. When you go down, you see the page numbers all and go up. How are they doing that ? I cant find a mod for it and it says they are running 2.0.2 on the smf site? Thanks again for a great mod!
William
I know what you are asking, but myself, I can not answer that. Please ask on the boards here in the specific board you need help in, ie: smf 2.0 (http://www.simplemachines.org/community/index.php?board=147.0)
Sorry, just was hoping maybe you knew. Didn't mean to bother. I have asked and noone seems to be able to answer that question or don't want to hehehe Thanks for your time and Thanks for being here to assit in your mod. Appreciate it!
William
I'm sure you will find your answer. If not from me from another SS or interested member. ;)
Congrats on the mod. Simple and functional.
I did my version of gotmail.swf with the familiar sound of ICQ
I found a site that converts online any audio file to .swf
http://www.files-conversion.com/
I had a small problem with this mod. I don't know if others have also had.
The first message sent the audio worked. There onwards could no longer function. So when I was cleaning the history (cache and cookies) from the browser.
I solved the problem by making a small change in the line of the IF
Before:
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (!isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
After:
if ((isset($_SESSION['unread_sound']) && $_SESSION['unread_sound'] < $context['user']['unread_messages']) || (isset($_SESSION['unread_sound']) && $context['user']['unread_messages'] >= 1))
{
I am going to update this mod very soon. Sorry you had problems.
Audible Pm has been updated and has been tested for functionality, install and uninstall. It's still beta cause it should be tested first but this version should install on any theme as there are no theme edits at all. (Thanks Labradoodle-360) You can try the beta out here:
click (http://www.smfhelper.com/community/index.php?action=downloads;sa=view;down=26)
and if there are no complaints I will upload it to the mod site after that.
Installs and works good..would be great if i could add my own mail message.
You can. All you have to do is change one line of code and upload a new file. I have not gotten around to an admin panel for that. Also, I just updated the package again. I will update the download on my site now.
It should be updated now. The updated package has a redirect back to the forum, the old one doesn't.
Installed the latest version of this mod and still have a problem.
The first PM I get works perfectly. Then on the next PMs audio no longer works.
Can you help me? If necessary have a test account on the Forum to provide.
Is it the reply you do not get a noise on or new PM's coming in. This mod also uses sessions so that could be it as well.
same issue, 1st pm received plays the audio, but no other pms received after that play audio, nor does it play audio if you dont read the pm and go to another page
Ok, I will take another look at it. Would you all like it if it went off on each page load. ??
I would like disparace to each page update until the user read the PM.
if that could be made an option great, but if another pm is received it should play the audio anyway.
I appreciate the work !
I'll see what I can do. A bit busy right now with other more serious things. I will get to it though. ;)
I was just playin around and made a few changes to this mod so it would install on 2.1. It does, so I uploaded it to the mod site. Audible PM now works with 2.1 beta 3/4. I have not tested it for 2.0.15 or anything so I am not sure it works for that version of SMF. For some reason I doubt it, lol. Anyway....there are no admin options to set. All it does is play a "You've got mail" sound when a PM comes in. It still uses sessions so there should be no looping or anything of it playing like it used to.