Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Bigguy on September 07, 2006, 07:45:15 PM

Title: Audible PM v1.0
Post by: Bigguy on September 07, 2006, 07:45:15 PM
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.
Title: Re: Audible PM v1.0
Post by: URPG on September 10, 2006, 08:15:06 AM
Does this install for all themes or do i have to add it to all themes that are not the default one myself?
Title: Re: Audible PM v1.0
Post by: Bigguy on September 10, 2006, 12:12:19 PM
You will have to add it, but it's a small edit it should not be any problems
Title: Re: Audible PM v1.0
Post by: Bigguy on September 10, 2006, 07:51:49 PM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 10, 2006, 08:59:41 PM
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
Title: Re: Audible PM v1.0
Post by: URPG on September 11, 2006, 05:13:26 AM
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?
Title: Re: Audible PM v1.0
Post by: Bigguy on September 11, 2006, 12:05:40 PM
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.
 
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 12:11:36 AM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 12:23:43 AM
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.
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 12:29:55 AM
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?
Title: Re: Audible PM v1.0
Post by: 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. ;)
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 12:44:52 AM
I think it's in the PersonalMessage.template.php
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 12:45:36 AM
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??
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 01:14:57 AM
Well, I'm still looking. I haven't found it yet but I have found alot on Pm's and stuff.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 01:38:27 AM
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"
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 01:41:55 AM
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.
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 02:19:41 AM
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?';
Title: Re: Audible PM v1.0
Post by: 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. ???
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 02:52:21 AM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 02:55:45 AM
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. ???
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 03:49:02 AM
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)
Title: Re: Audible PM v1.0
Post by: 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 :-(
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 11:10:01 AM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 11:52:00 AM
Ok I'll work on this today.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 09:14:06 PM
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.
Title: Re: Audible PM v1.0
Post by: steve in houston on September 13, 2006, 10:14:11 PM
ive never submitted a mod before.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 10:22:32 PM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on September 13, 2006, 11:39:00 PM
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>

Title: Re: Audible PM v1.0
Post by: URPG on September 14, 2006, 08:10:20 AM
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 :)
Title: Re: Audible PM v1.0
Post by: diegolyanky on September 14, 2006, 03:06:45 PM
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 ;)

Title: Re: Audible PM v1.0
Post by: Bigguy on September 14, 2006, 03:15:41 PM
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.
Title: Re: Audible PM v1.0
Post by: URPG on September 14, 2006, 07:28:27 PM
If you mark the code displayed i could do a german translation...
Title: Re: Audible PM v1.0
Post by: steve in houston on September 14, 2006, 07:32:46 PM
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)?';

Title: Re: Audible PM v1.0
Post by: URPG on September 15, 2006, 05:45:26 AM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on October 11, 2006, 10:33:21 PM
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.
Title: Re: Audible PM v1.0
Post by: Garry1953 on October 24, 2006, 10:01:24 PM
Installed and work fine.
Thanks
Title: Re: Audible PM v1.0
Post by: Bigguy on October 24, 2006, 10:04:43 PM
Your welcome. Did you install version 1 or 1.5 ???
Title: Re: Audible PM v1.0
Post by: Vinspire on October 25, 2006, 04:39:59 AM
Bigguy, i think it would be good if there is a screenie of this mod :D
Title: Re: Audible PM v1.0
Post by: Garry1953 on October 25, 2006, 06:35:59 AM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on October 25, 2006, 12:03:06 PM
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.
Title: Re: Audible PM v1.0
Post by: URPG on November 01, 2006, 05:19:40 AM
Can i change the sound that is played?

Can users switch it on/off in their Profile?
Title: Re: Audible PM v1.0
Post by: Bigguy on November 01, 2006, 09:56:15 AM
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.
Title: Re: Audible PM v1.0
Post by: URPG on November 01, 2006, 07:08:20 PM
There is no version 2 (yet)? :(
Title: Re: Audible PM v1.0
Post by: Bigguy on November 01, 2006, 07:13:37 PM
No not yet but it is being worked on.
Title: Re: Audible PM v1.0
Post by: URPG on November 02, 2006, 06:22:49 AM
*evil smile*

Hurry up, or my members may go insane by the sound ;)
Title: Re: Audible PM v1.0
Post by: Bigguy on November 02, 2006, 12:34:59 PM
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.
Title: Re: Audible PM v1.0
Post by: URPG on November 02, 2006, 12:46:56 PM
Yes, it's 1.5 that i have installed, and no complains... not yet anyway, i know my people...
Title: Re: Audible PM v1.0
Post by: Xarcell on November 02, 2006, 02:37:58 PM
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?
Title: Re: Audible PM v1.0
Post by: Bigguy on November 02, 2006, 02:44:01 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.
Title: Re: Audible PM v1.0
Post by: 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...
Title: Re: Audible PM v1.0
Post by: Bigguy on November 02, 2006, 04:34:42 PM
I haven't heard of this happening before. can you uninstall and re-install it to see what happens.
Title: Re: Audible PM v1.0
Post by: Xarcell on November 02, 2006, 11:15:06 PM
I uninstalled and reinstalled. It doesn't work at all...
Title: Re: Audible PM v1.0
Post by: Bigguy on November 02, 2006, 11:37:00 PM
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.
Title: Re: Audible PM v1.0
Post by: Xarcell on November 04, 2006, 08:55:12 AM
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...
Title: Re: Audible PM v1.0
Post by: Xarcell on November 04, 2006, 08:59:23 AM
Any chance we can get someone to make a "you've got messages" voiceover?

Title: Re: Audible PM v1.0
Post by: Bigguy on November 04, 2006, 12:50:37 PM
Glad you got it workin. :)
Title: Re: Audible PM v1.0
Post by: Gobo on November 06, 2006, 03:00:58 PM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on November 06, 2006, 04:20:13 PM
You DON"T want me to put it on the first post ???
Title: Re: Audible PM v1.0
Post by: Gobo on November 06, 2006, 09:05:47 PM
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
Title: Re: Audible PM v1.0
Post by: Xarcell on November 06, 2006, 11:40:31 PM
I tested your TP install and it does not install properly. You might want to check your xml.
Title: Re: Audible PM v1.0
Post by: Gobo on November 06, 2006, 11:41:54 PM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on November 07, 2006, 12:31:14 AM
First post updated, thanks alot for the contribution. :)
Title: Re: Audible PM v1.0
Post by: Xarcell on November 08, 2006, 12:19:05 AM
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....
Title: Re: Audible PM v1.0
Post by: Bigguy on November 08, 2006, 02:07:21 AM
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. ???
Title: Re: Audible PM v1.0
Post by: Xarcell on November 08, 2006, 11:33:40 AM
IT was the first mod I installed.

It mixes with the TP comment start line.
Title: Re: Audible PM v1.0
Post by: Bigguy on November 08, 2006, 12:01:25 PM
Ok, thanks I will ask at Tiny Portal and see if anyone has had problems. What version do you have 1 or 1.5 ???
Title: Re: Audible PM v1.0
Post by: Xarcell on November 08, 2006, 12:16:53 PM
1.5
Title: Re: Audible PM v1.0
Post by: RoarinRow on November 09, 2006, 12:15:15 AM
v.1.5 works fine for me.  only thing I've done lately was to change the swf file to a female voice.
Title: Re: Audible PM v1.0
Post by: 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. ???
Title: Re: Audible PM v1.0
Post by: RoarinRow on November 09, 2006, 02:57:01 AM
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)
Title: Re: Audible PM v1.0
Post by: Gobo on November 30, 2006, 02:31:39 AM
i updated the sound style file with a few more sounds :)
Title: Re: Audible PM v1.0
Post by: internetbrother on December 12, 2006, 04:18:43 PM
I have the animated envelope mod when I receive pm can I install this one too.
I have the latest smf 1

please advise
Title: Re: Audible PM v1.0
Post by: Bigguy on December 12, 2006, 09:45:07 PM
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.
Title: Re: Audible PM v1.0
Post by: sanax on January 07, 2007, 05:10:07 PM
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!
Title: Re: Audible PM v1.0
Post by: Bigguy on January 07, 2007, 05:15:39 PM
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.
Title: Re: Audible PM v1.0
Post by: sanax on January 07, 2007, 05:21:08 PM
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... :)
Title: Re: Audible PM v1.0
Post by: sanax on January 07, 2007, 05:22:35 PM
...one last question... will the mod work with any file extentions like .wav etc.?
Title: Re: Audible PM v1.0
Post by: Xarcell on January 07, 2007, 05:24:12 PM
@sanax

sounds like your trying to register. That has nothing to do with this mod like bigguy says.
Title: Re: Audible PM v1.0
Post by: Bigguy on January 07, 2007, 05:47:09 PM
Yes it should if you alter the code just a touch. By looking at it you will see what to edit. ;)
Title: Re: Audible PM v1.0
Post by: sanax on January 07, 2007, 05:59:57 PM
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...
Title: Re: Audible PM v1.0
Post by: Stigmartyr on January 26, 2007, 11:29:09 PM
Placing your code near the copy right worked for me on my TP install (smf 1.1.1)
Title: Re: Audible PM v1.0
Post by: WhatsUp on February 05, 2007, 09:37:11 PM
Thanks for this neat mod. Works a treat  :D

aku is right: the code will work anywhere in the template.

Cheers!
Title: Re: Audible PM v1.0
Post by: mohoganybrwn on February 07, 2007, 02:00:27 PM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on February 07, 2007, 03:49:02 PM
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>';

}
Title: Re: Audible PM v1.0
Post by: mohoganybrwn on February 08, 2007, 12:01:56 AM
ok, i'm going to try that. thanx bigguy
Title: Re: Audible PM v1.0
Post by: mohoganybrwn on February 08, 2007, 12:22:24 AM
aww, its workd! I LOVE IT, mine says "Master, I have mail for you. " lol.
Title: Re: Audible PM v1.0
Post by: Bigguy on February 09, 2007, 12:08:54 AM
thats great glad you got it workin.
Title: Re: Audible PM v1.0
Post by: sparky33 on February 09, 2007, 12:17:21 AM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on February 09, 2007, 12:21:12 AM
Ok, I will take a look for you tomorrow and see what I can do. :)  
Title: Re: Audible PM v1.0
Post by: sparky33 on February 09, 2007, 12:23:15 AM
chop chop, don't hang about  :D
Title: Re: Audible PM v1.0
Post by: hobox on April 13, 2007, 05:37:21 AM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on April 13, 2007, 07:59:14 AM
I will look into this in the next couple days. I am fighting a cold rigt now.
Title: Re: Audible PM v1.0
Post by: yrral on April 23, 2007, 09:06:54 PM
Is there a package for TP 0.9.8 and SMF 1.1.2?
Title: Re: Audible PM v1.0
Post by: Bigguy on April 24, 2007, 07:42:15 AM
Is this no where to be found on the mod site. ???

Audible PmTp_1.5
Title: Re: Audible PM v1.0
Post by: TrueSatan on April 24, 2007, 08:42:29 AM
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">
Title: Re: Audible PM v1.0
Post by: Bigguy on April 24, 2007, 09:45:52 AM
Ok, I guess I should upgrade the package-info files for my mods then. I will do this today if I get time.
Title: Re: Audible PM v1.0
Post by: Filipina on May 26, 2007, 01:39:11 AM
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 :)
Title: Re: Audible PM v1.0
Post by: Filipina on May 26, 2007, 04:15:38 PM
ok... well it started saying you got mail everytime i member moved about the forums so i turned it off :)
Title: Re: Audible PM v1.0
Post by: Bigguy on May 27, 2007, 11:17:20 AM
DId you manually install it or through the package manager. ??? I have never heard of this happening before to anyone.
Title: Re: Audible PM v1.0
Post by: Filipina on May 27, 2007, 10:57:19 PM
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?
Title: Re: Audible PM v1.0
Post by: Bigguy on May 28, 2007, 11:28:43 AM
Well you could try clearing cache, temp files and cookies and doing a hard refresh. What other mods do you have installed. ???
Title: Re: Audible PM v1.0
Post by: Filipina on May 28, 2007, 04:10:50 PM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on May 28, 2007, 08:08:34 PM
uninstall email flash and see what happens.
Title: Re: Audible PM v1.0
Post by: TrueSatan on May 28, 2007, 08:57:48 PM
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.
Title: Re: Audible PM v1.0
Post by: ShadowStriker on June 13, 2007, 10:11:04 AM
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
Title: Re: Audible PM v1.0
Post by: 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?
Title: Re: Audible PM v1.0
Post by: Bigguy on June 24, 2007, 11:47:46 AM
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
Title: Re: Audible PM v1.0
Post by: husam on September 11, 2007, 07:08:24 PM
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?
Title: Re: Audible PM v1.0
Post by: Bigguy on September 11, 2007, 09:10:57 PM
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.
Title: Re: Audible PM v1.0
Post by: jaminjavajoe on October 08, 2007, 06:42:58 PM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on October 09, 2007, 09:32:53 AM
It should work. If it doesn't I will update it. Try it out. If you get errors don't install. :)
Title: Re: Audible PM v1.0
Post by: jaminjavajoe on October 09, 2007, 02:42:34 PM
Works like a Champ in SMF 1.1.4 Bigguy, Thanks
Title: Re: Audible PM v1.0
Post by: Bigguy on October 10, 2007, 01:28:07 PM
Glad you like it. :)
Title: Re: Audible PM v1.0
Post by: Hunnenkoenig on October 10, 2007, 05:00:08 PM
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'];
}
Title: Re: Audible PM v1.0
Post by: Bigguy on October 10, 2007, 07:30:20 PM
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.
Title: Re: Audible PM v1.0
Post by: Hunnenkoenig on October 11, 2007, 05:38:37 AM
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)
Title: Re: Audible PM v1.0
Post by: jaminjavajoe on October 11, 2007, 07:51:19 AM
And then theres ring tones, and, and.....see what you started with this mod Bigguy.........lol
Title: Re: Audible PM v1.0
Post by: 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.
Title: Re: Audible PM v1.0
Post by: Hunnenkoenig on October 11, 2007, 08:51:35 AM
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  ;)
Title: Re: Audible PM v1.0
Post by: Bigguy on October 14, 2007, 03:06:43 PM
I will certainly look into this. :)
Title: Re: Audible PM v1.0
Post by: Hunnenkoenig on October 16, 2007, 07:01:18 AM
Cool!
Thanks!
Title: Re: Audible PM v1.0
Post by: DeMar on November 09, 2007, 12:57:56 PM
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!
Title: Re: Audible PM v1.0
Post by: Bigguy on November 12, 2007, 12:10:24 PM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on December 21, 2007, 09:11:17 PM
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.
Title: Re: Audible PM v1.0
Post by: robbie93 on December 31, 2007, 07:44:47 AM
which part of my server do i put the music file into

great mod btw, if only i could get it working :D
Title: Re: Audible PM v1.0
Post by: TrueSatan on December 31, 2007, 08:42:30 AM
Please install the mod in the normal way...that will put the files where they need to be.
Title: Re: Audible PM v1.0
Post by: robbie93 on December 31, 2007, 09:24:55 AM
i have installed the mod correctly but it isnt working  :(
Title: Re: Audible PM v1.0
Post by: Bigguy on December 31, 2007, 12:11:46 PM
Did you download the mod from this post:

http://www.simplemachines.org/community/index.php?topic=112318.msg1352611#msg1352611
Title: Re: Audible PM v1.0
Post by: robbie93 on December 31, 2007, 03:11:39 PM
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
Title: Re: Audible PM v1.0
Post by: Jpg on December 31, 2007, 09:55:32 PM
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.
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 20, 2008, 09:51:27 AM
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.
Title: Re: Audible PM v1.0
Post by: 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. :) I will take a look at your index.template and see what I can do for ya. :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 20, 2008, 10:35:17 AM
Try this and see if it works:
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 20, 2008, 06:51:28 PM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 20, 2008, 06:56:05 PM
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.
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 20, 2008, 09:38:58 PM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on February 20, 2008, 09:45:58 PM
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.
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 20, 2008, 10:33:25 PM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 20, 2008, 11:34:45 PM
I downloaded the template again and I will go over it for you once more. :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 20, 2008, 11:41:33 PM
I can't see a problem anywhere. :(
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 21, 2008, 12:09:09 AM
I'll download your completed template, and re add it again.
At this point, Im up to trying most anything.. lol
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 21, 2008, 12:36:01 AM
Nope..  No glory :(

I have had the new version installed before. But it uninstalled without any hassle.
Possible there is something left over??
Title: Re: Audible PM v1.0
Post by: Bigguy on February 21, 2008, 01:21:45 AM
Drop me a link to ur forum and i will stop by tomorrow; if thats ok. :)
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 21, 2008, 03:24:50 AM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 21, 2008, 01:12:50 PM
PM received...I checked it out and I can hear sound. Did you change ANy other code other than the sound file. ???
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 21, 2008, 05:21:00 PM
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?
Title: Re: Audible PM v1.0
Post by: Bigguy on February 21, 2008, 05:43:18 PM
Just on the Front page. Try this
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 21, 2008, 06:38:05 PM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 21, 2008, 07:32:28 PM
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.
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 23, 2008, 01:46:03 AM
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 :-)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 23, 2008, 03:13:45 PM
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.
Title: Re: Audible PM v1.0
Post by: Sabre™ on February 23, 2008, 08:15:07 PM
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 :)
Title: Re: Audible PM v1.0
Post by: Bigguy on February 24, 2008, 11:56:45 AM
I haven't looked yet today but maybe the code is doubled up in the default theme.
Title: Re: Audible PM v1.0
Post by: Procomp65 on May 11, 2008, 05:43:31 PM
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

Title: Re: Audible PM v1.0
Post by: Bigguy on May 11, 2008, 11:27:13 PM
If you have other mods installed it's probably one of them interferring with the mod install.
Title: Re: Audible PM v1.0
Post by: SIRACOMPUTER on May 20, 2008, 07:19:49 AM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on May 21, 2008, 08:28:02 AM
Ask them to refresh the page (ctrl + f5) and see if that makes a difference. There are no permissions for this.
Title: Re: Audible PM v1.0
Post by: tadi on June 28, 2008, 10:37:54 AM
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  ??? ??? ??? ??? ??? ??? ??? ???
Title: Re: Audible PM v1.0
Post by: tadi on June 29, 2008, 05:51:19 PM
pleaseeeeeeeeeeeeee helppppppppp someoneeeeeeeeeeeeeee
Title: Re: Audible PM v1.0
Post by: Bigguy on July 08, 2008, 04:19:08 PM
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.
Title: Re: Audible PM v1.0
Post by: NYChamps on August 01, 2008, 03:00:54 AM
Has this mod been updated as yet?  I'd like to try it, but waiting for newest updated version.

Thanks   :)
Title: Re: Audible PM v1.0
Post by: 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.
Title: Re: Audible PM v1.0
Post by: NYChamps on August 02, 2008, 12:56:13 PM
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.
Title: Re: Audible PM v1.0
Post by: Bigguy on August 02, 2008, 03:16:24 PM
No problem...I'm hoping to find time this weekend but so far no luck. :)
Title: Re: Audible PM v1.0
Post by: NYChamps on August 02, 2008, 03:39:38 PM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on August 02, 2008, 11:52:38 PM
It's not one of mine either, lol. ;)
Title: Re: Audible PM v1.0
Post by: 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
Title: Re: Audible PM v1.0
Post by: Ozman69 on August 08, 2008, 02:43:27 PM
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
Title: Re: Audible PM v1.0
Post by: KD4FBI on August 17, 2008, 01:23:29 AM
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
Title: Re: Audible PM v1.0
Post by: Bigguy on August 20, 2008, 05:39:14 PM
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. :)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: MarkoKg on February 28, 2011, 06:25:07 PM
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?
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on February 28, 2011, 08:04:15 PM
Try this and see if it works:
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: MarkoKg on March 02, 2011, 05:14:40 AM
Thank you it works now. :)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 02, 2011, 10:16:58 AM
Glad to hear it and your more than welcome. :)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Eudemon on March 03, 2011, 11:07:33 PM
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?
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 03, 2011, 11:43:45 PM
I would think it's the way the .swf file is made. It would not have anything to do with this mod.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Eudemon on March 03, 2011, 11:47:23 PM
can u help me convert the swf? i have the mp3 file  ::)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 03, 2011, 11:54:19 PM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Eudemon on March 03, 2011, 11:55:41 PM
i did turn it off but somehow it's still looping

is it possible to play mp3 files with this mod?
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 04, 2011, 12:09:54 AM
It might. I have never tried mp3 before. Maybe someone here on the forums can convert that for you. :)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Eudemon on March 04, 2011, 01:27:19 AM
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:)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 04, 2011, 01:37:23 AM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Eudemon on March 04, 2011, 01:55:03 AM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 04, 2011, 02:00:25 AM
Maybe someone else will be by to help you out. If I find one I will post back and give ya a hand. :)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Xarcell on April 09, 2011, 01:58:29 AM
There is a free program called SUPER. It's the best for converting video/audio.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: chinaren on January 09, 2012, 09:19:15 PM
Just reloaded this on my 2.0.1 forum after a long absence, and works great!  Thanks Bigguy!
Title: Re: Audible PM v2.0
Post by: MESWEB on March 13, 2012, 01:07:05 PM
I have Simple Potral + Custome Theme. This mode is not working WHY?
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on March 13, 2012, 01:44:23 PM
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. :)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: revwill on December 14, 2012, 01:05:35 PM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on December 14, 2012, 01:21:41 PM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: revwill on December 14, 2012, 03:37:09 PM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on December 14, 2012, 05:22:39 PM
Can you clear your cache and sessions in your browser. (Some browsers allow you to clear seesion) Maybe that would help.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: revwill on December 15, 2012, 12:00:03 AM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on December 15, 2012, 12:10:15 AM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: revwill on December 15, 2012, 12:17:12 AM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on December 15, 2012, 12:25:12 AM
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)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: revwill on December 15, 2012, 12:29:10 AM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on December 15, 2012, 12:33:17 AM
I'm sure you will find your answer. If not from me from another SS or interested member. ;)
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: DSystem on January 04, 2014, 04:18:17 PM
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/
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: DSystem on January 05, 2014, 11:53:45 AM
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))
{
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on January 05, 2014, 04:16:46 PM
I am going to update this mod very soon. Sorry you had problems.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on January 21, 2014, 10:44:13 PM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: MotRude on January 21, 2014, 11:02:39 PM
Installs and works good..would be great if i could add my own mail message.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on January 21, 2014, 11:18:37 PM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on January 21, 2014, 11:20:35 PM
It should be updated now. The updated package has a redirect back to the forum, the old one doesn't.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: DSystem on January 27, 2014, 05:47:04 PM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on January 27, 2014, 06:19:14 PM
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.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Costner on January 31, 2014, 03:27:58 PM
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
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on January 31, 2014, 06:08:03 PM
Ok, I will take another look at it. Would you all like it if it went off on each page load. ??
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: DSystem on January 31, 2014, 06:33:47 PM
I would like disparace to each page update until the user read the PM.
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Costner on February 03, 2014, 05:39:08 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 !
Title: Re: Audible PM v1.0 (Updated for SMF 2.0 RC4,5)
Post by: Bigguy on February 03, 2014, 08:47:32 PM
I'll see what I can do. A bit busy right now with other more serious things. I will get to it though. ;)
Title: Re: Audible PM v1.0
Post by: Bigguy on April 25, 2018, 04:15:09 PM
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.