Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Kermit on January 21, 2009, 06:17:14 AM

Title: Enhanced PM Warning Message
Post by: Kermit on January 21, 2009, 06:17:14 AM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1604)


Enhanced PM Warning Message

Version: 1.0 Date 2009-01-21
Compatibility: SMF 1.1.7 , SMF 2.0 Beta 4





This Modification would enhance the pm warning message,see the caps for details...

Greetz
Duncan85

Title: Re: Enhanced PM Warning Message
Post by: edi67 on January 21, 2009, 07:47:08 AM
lovely thx ;)
Title: Re: Enhanced PM Warning Message
Post by: rölyef on January 21, 2009, 10:00:11 AM
good mod. thaks Duncan85
Title: Re: Enhanced PM Warning Message
Post by: kyle007 on January 21, 2009, 05:07:10 PM
Looks simple but very effective, thx Duncan85
Title: Re: Enhanced PM Warning Message
Post by: brandonroy on January 21, 2009, 08:05:06 PM
Very cool. Let's say there's 5 new PM's - Will it display all 5 in the warning message, or just the lastest one/first one?
Title: Re: Enhanced PM Warning Message
Post by: jayc7176 on January 21, 2009, 08:06:44 PM
very nice Mod!  Thanks!
Title: Re: Enhanced PM Warning Message
Post by: Cal O'Shaw on January 21, 2009, 11:59:14 PM
Quote from: brandonroy on January 21, 2009, 08:05:06 PM
Very cool. Let's say there's 5 new PM's - Will it display all 5 in the warning message, or just the lastest one/first one?

Yes, my question also.  Could you make that clear in the MOD description?  Earliest sent unread or most recently sent unread.

Otherwise, really great MOD!
Title: Re: Enhanced PM Warning Message
Post by: Kermit on January 22, 2009, 02:47:39 AM
Quote from: brandonroy on January 21, 2009, 08:05:06 PM
Very cool. Let's say there's 5 new PM's - Will it display all 5 in the warning message, or just the lastest one/first one?

It should be the latest one
Title: Re: Enhanced PM Warning Message
Post by: TW1ST3D on January 22, 2009, 10:58:14 PM
Great Mod !!!   Installed flawlessly on a Heavily modded 1.1.7 forum
Title: Re: Enhanced PM Warning Message
Post by: Sudhakar Arjunan on January 24, 2009, 07:39:11 PM
Cool Updates.

Nice Thinking you have got.
Title: Re: Enhanced PM Warning Message
Post by: fatesjoke03 on February 17, 2009, 04:53:07 PM
I am having a slight issue with this mod.

It pops up just fine but I have to reload the original window to get back to my forum. It opens a new tab for the message but I get a blank screen on my original screen.
Title: Re: Enhanced PM Warning Message
Post by: MalastiC on March 01, 2009, 04:17:21 PM
   
Good night. I got it installed on 1.1.8
How do I activate it?
I'm going crazy ....

Best regards,
Title: Re: Enhanced PM Warning Message
Post by: Kermit on March 01, 2009, 04:35:48 PM
Quote from: MalastiC on March 01, 2009, 04:17:21 PM
   
Good night. I got it installed on 1.1.8
How do I activate it?
I'm going crazy ....

Best regards,

Profile -> Personal Message Options -> Show a popup when you receive new messages?
Title: Re: Enhanced PM Warning Message
Post by: MalastiC on March 01, 2009, 04:38:38 PM
   
Thank you very much. :)

Is it possible to define this default for all users? Where will this take?
Best regards,
Title: Re: Enhanced PM Warning Message
Post by: Kermit on March 01, 2009, 04:50:42 PM
Quote from: MalastiC on March 01, 2009, 04:38:38 PM
   
Thank you very much. :)

Is it possible to define this default for all users? Where will this take?
Best regards,


.Themes/default/Profile.template.php

Code (find) Select

<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 />


Code (replace with) Select

<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" checked="checked" class="check" /> ', $txt['popup_messages'], '</label><br />
Title: Re: Enhanced PM Warning Message
Post by: searchgr on July 21, 2009, 03:35:28 PM
The greek characters are not supported in the subject of the pop up window.
Title: Re: Enhanced PM Warning Message
Post by: aw06 on October 08, 2009, 07:12:00 PM
Duncan85 can this mod be output to ssi ?? see the problem i'm having here ..
http://www.simplemachines.org/community/index.php?topic=341197.0
Title: Re: Enhanced PM Warning Message
Post by: aw06 on October 10, 2009, 01:46:47 AM
bump
Title: Re: Enhanced PM Warning Message
Post by: Kermit on October 10, 2009, 04:29:51 PM
Quote from: aw06 on October 08, 2009, 07:12:00 PM
Duncan85 can this mod be output to ssi ?? see the problem i'm having here ..
http://www.simplemachines.org/community/index.php?topic=341197.0


Tomorrow i will have a look  ;)
Title: Re: Enhanced PM Warning Message
Post by: aw06 on October 10, 2009, 04:34:23 PM
ok thanks
Title: Re: Enhanced PM Warning Message
Post by: flamechica on November 19, 2009, 03:36:30 AM
Will this be updated for RC2?
Title: Re: Enhanced PM Warning Message
Post by: Kermit on November 19, 2009, 05:04:26 AM
Quote from: flamechica on November 19, 2009, 03:36:30 AM
Will this be updated for RC2?

The mod works already on RC2,so an update is not necessary
Title: Re: Enhanced PM Warning Message
Post by: flamechica on November 19, 2009, 05:34:25 AM
Ok, thanks...it didn't say that on the mod page when I looked, but I see it does now.
Title: Re: Enhanced PM Warning Message
Post by: ABCDiamond on January 16, 2010, 12:13:10 AM
Is there a way to have this appearing by default for all members on 1.1.11

I have looked everywhere I can think of, to try to set this.  But it seems that each member has to choose it.  Hopefully I am just missing something.

Thanks
Title: Re: Enhanced PM Warning Message
Post by: ABCDiamond on January 16, 2010, 12:48:27 AM
Quote from: ABCDiamond on January 16, 2010, 12:13:10 AM
Is there a way to have this appearing by default for all members on 1.1.11

I have looked everywhere I can think of, to try to set this.  But it seems that each member has to choose it.  Hopefully I am just missing something.

Thanks

I obviously didn't look everywhere, I just found this from 2008

Quote from: karlbenson on July 20, 2008, 02:55:19 PM
SMF has this functionality.

Profile > Personal Messaging
Check Show a popup when you receive new messages?

For everyone
Admin > Current Theme > Reset Options (Called Member Options in 2.x)

For both links
Reset default (guest) options for this theme (0 options currently set.)
Reset all members' current options for this theme

Again set to change, and check Show a popup when you receive new messages?
(do it for guests aswell so that when guests register, they get it enabled by default).

This happens to me so often. I look for things, can't find them, ask for help, and then almost immediately I find the answer before anyone replies...  ;D
Title: Re: Enhanced PM Warning Message
Post by: JungleBunny on September 10, 2010, 11:20:02 AM
Only stop by to say : THANKS :)
Title: Re: Enhanced PM Warning Message
Post by: Chalky on April 15, 2012, 02:20:05 PM
I have installed this on 2.0.2, but my popups don't have the pretty little colons and line break as shown in the picture.  I have just spent the last 20 minutes playing with the code, but I'm not a coder and have had no success.  Please, what can I do to make my popup look like the popup in the screenshot for this mod?
Title: Re: Enhanced PM Warning Message
Post by: Kermit on April 15, 2012, 05:54:22 PM
Quote from: Sabrinova on April 15, 2012, 02:20:05 PM
I have installed this on 2.0.2, but my popups don't have the pretty little colons and line break as shown in the picture.  I have just spent the last 20 minutes playing with the code, but I'm not a coder and have had no success.  Please, what can I do to make my popup look like the popup in the screenshot for this mod?

That screenshot is from 1.x branch,which you have is how it should be in 2.0.x
Title: Re: Enhanced PM Warning Message
Post by: Chalky on June 30, 2012, 09:43:00 AM
I have noticed that the PM popup shows the "from" as the sending member's username, which may be, and in the case of some of my members is, different from their display name.  I'm guessing it's this bit of code that's doing it:

'sender' => $row['from_name'],

So how would I make it show the display name instead?
Title: Re: Enhanced PM Warning Message
Post by: Chalky on July 03, 2012, 04:59:03 PM
Any ideas?  I know I could just make my members let me change their usernames to match their display names, but that's annoying for them and could become rather cumbersome...
Title: Re: Enhanced PM Warning Message
Post by: Kermit on July 04, 2012, 03:28:31 AM
The mod retrieves the data from smf_personal_messages table,for changing it i need to add new column to that table and honestly i have not big wish to improve this little mod
Title: Re: Enhanced PM Warning Message
Post by: Chalky on July 04, 2012, 03:36:30 PM
Thanks for the reply.  I have changed the affected member's username to match display name and have disabled all members from changing their own display name, so this should not be an issue again  :)