[2.0.18] Extended Private Message Notification

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
31
74%
Very Good
9
21%
Good
1
2%
Fair
1
2%
Poor
0
No votes
 
Total votes: 42

Homeskillet
Registered User
Posts: 231
Joined: Thu Oct 07, 2004 5:00 am
Contact:

Post by Homeskillet » Tue Oct 26, 2004 11:13 pm

Voting is closed, but this MOD works great! Thank You! :D

Shof515
Registered User
Posts: 1169
Joined: Wed Mar 19, 2003 4:36 am

Post by Shof515 » Tue Oct 26, 2004 11:34 pm

voting is still open
Whos missing up my sig?

akscooter
Registered User
Posts: 18
Joined: Tue Oct 26, 2004 9:26 pm

Post by akscooter » Thu Oct 28, 2004 4:55 am

I installed this before I installed PCP by ptorhik or profile control panel. It killed this mod. I can't seem to get it to work again.

I still get a PM notification, but it looks like the username and message body are not comming through.

Any help?

Thanks

Valdier
Registered User
Posts: 8
Joined: Sun Oct 10, 2004 7:40 am

Post by Valdier » Thu Oct 28, 2004 8:20 am

akscooter wrote: I installed this before I installed PCP by ptorhik or profile control panel. It killed this mod. I can't seem to get it to work again.

I still get a PM notification, but it looks like the username and message body are not comming through.

Any help?

Thanks


Same thing happened here... installed before PCP now it is dead :)

Buzdor
Registered User
Posts: 3
Joined: Wed Oct 13, 2004 5:38 pm

Grammar

Post by Buzdor » Thu Nov 04, 2004 3:01 am

A minor, minor alteration for grammar purposes. Note that the browser will wrap these lines which are actually meant to be one line in each section of this alteration.

Code: Select all

# 
#-----[ OPEN ]------------------------------------------ 
# 
/language/lang_english/email/privmsg_notify.tpl

# 
#-----[ FIND ]------------------------------------------ 
# 
Member {SENDER_USERNAME} from "{SITENAME}" have just send you a new private message to your account, and you have requested that you be notified on this event. The content of the message is as follow: 

# 
#-----[ REPLACE WITH ]------------------------------------------ 
# 
Member {SENDER_USERNAME} from "{SITENAME}" has just sent a new private message to your account, and you have requested that you be notified on this event. The content of the message follows: 
Only apply this after you've applied the MOD this thread is about, and only if you're a stickler for grammar. Users of my site would appreciate that kind of attention to detail.
Image

mikechreptak
Registered User
Posts: 4
Joined: Thu Dec 02, 2004 6:48 am

Post by mikechreptak » Thu Dec 02, 2004 6:53 am

I just installed this mod, and am quite pleased with it.

However, I find that its doing this to my messages:

Code: Select all

Oh yeah, & this 
I looked through the code, and found that its using htmlspecialchars, which would explain the &.

My question is tho, does anyone else find it does that, and is there anyway to change it?

I'm using Outlook Express to view the email, which may explain the problem.

Bill Latham
Registered User
Posts: 175
Joined: Thu Aug 26, 2004 3:15 pm

Post by Bill Latham » Thu Dec 02, 2004 4:51 pm

I edited the code just a bit to display a bit more information and correct the grammar to my personal preference. Additionally, I included the sender's name in the subject line, because, after all, if we don't want to hear from that individual for whatever reason, or read a message from that person at the time, it comes in handy:

Subject: New {SITENAME} Private Message from {SENDER_USERNAME}
Charset: iso-8859-1

Hello {USERNAME},

{SENDER_USERNAME} has sent you ({USERNAME}) a Private Message from the forums at {SITENAME}. You are being notified because you have instructed us to send you a notification each time someone sends you a private message. You can disable this automatic notification in your profile settings on the board.

Here is the {SITENAME} message sent by {SENDER_USERNAME} :

--------------------------------------------------------------------------------------

{PM_MESSAGE}
--------------------------------------------------------------------------------------


You may respond to {SENDER_USERNAME} by visiting {U_INBOX}

Remember, you can always choose not to be notified of new messages by changing the appropriate setting in your profile.

***PLEASE DO NOT RESPOND TO THIS EMAIL DIRECTLY***

This email was sent automatically by the default {SITENAME} email address, and NOT by the Private Message author. Any replies to this email notification will not reach the intended party. Instead, please log into your account and reply from your Private Message Inbox.

Thank you for your participation!
The {SITENAME} Team!

akscooter
Registered User
Posts: 18
Joined: Tue Oct 26, 2004 9:26 pm

Post by akscooter » Thu Dec 02, 2004 6:49 pm

I like your format, but does anyone know why after installing the mod profile control panel this mod breaks?

From what I can tell, the vars {SENDER_USERNAME} and {PM_MESSAGE} stop working, while the others work just fine.

Anyone else with this problem able to fix it?

Thanks
Jon

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Fri Dec 03, 2004 12:46 am

Bill Latham has made a really nice makeover to the layout of the email and I like it too. I'll probably get a new version out with better email content

~Mac

glenncarr
Registered User
Posts: 73
Joined: Wed Apr 02, 2003 5:41 am

Post by glenncarr » Mon Dec 13, 2004 10:29 pm

mikechreptak wrote: I just installed this mod, and am quite pleased with it.

However, I find that its doing this to my messages:

Code: Select all

Oh yeah, & this 
I looked through the code, and found that its using htmlspecialchars, which would explain the &.

My question is tho, does anyone else find it does that, and is there anyway to change it?

I'm using Outlook Express to view the email, which may explain the problem.


Looks like you can simply remove the call to htmlspecialchars and all should be fine:

Change this:

Code: Select all

				$message_text = htmlspecialchars(trim(stripslashes($HTTP_POST_VARS['message'])));
To this:

Code: Select all

				$message_text = trim(stripslashes($HTTP_POST_VARS['message']));
Appears to work ok for me. Thoughts?

Valdier
Registered User
Posts: 8
Joined: Sun Oct 10, 2004 7:40 am

Post by Valdier » Tue Dec 14, 2004 1:02 am

I also have stopped using the mod till we can find out why PcP kills the mod.

tanner_S.
Registered User
Posts: 446
Joined: Sun Oct 10, 2004 9:04 pm

Post by tanner_S. » Wed Dec 15, 2004 12:42 am

Nevermind. Good MOD.

-Tanner

TMB
Registered User
Posts: 474
Joined: Sat Sep 18, 2004 8:07 am

Re: Grammar

Post by TMB » Thu Dec 16, 2004 3:07 pm

This combination of various contributor's efforts includes the sender's name in the email subject and the PM subject in the email body, and it should satisfy the grammar nerds.

Modify privmsg.php as per the original instructions, then replace privmsg_notify.tpl with....

Code: Select all

Subject: New {SITENAME} Private Message from {SENDER_USERNAME}
Charset: iso-8859-1

Hello {USERNAME},

Your {SITENAME} Profile settings indicate that you wish to be notified of new Private Messages by email.

'{SENDER_USERNAME}' has just sent a new message to your account.

The content of the message is as follows:

--------------------------------------------------
Subject: {PM_SUBJECT}
-------------------------------------------------- 
{PM_MESSAGE}
-------------------------------------------------- 

***PLEASE DO NOT RESPOND TO THIS EMAIL DIRECTLY***

This email was sent automatically from the {SITENAME} email address, and NOT by {SENDER_USERNAME}.
Replies to this email notification will not reach {SENDER_USERNAME}.
Please click on the following link to log into your {SITENAME} account and reply from your Private Message Inbox. 
{U_INBOX}

You can choose NOT to be notified of new messages by email by changing the 'Notify on new Private Message' setting in your {SITENAME} Profile.

Thank you for using {SITENAME}.

{EMAIL_SIG}
And if anyone's wondering, the mod is compatible with 2.0.11 :)

User avatar
LT206
Registered User
Posts: 55
Joined: Mon Dec 13, 2004 11:02 pm

Ok

Post by LT206 » Tue Dec 21, 2004 6:22 am

I used this mod and the above in the TPL but cannot get {SENDER_USERNAME} to show. Additionally, {PM_SUBJECT} and {PM_MESSAGE} dont show up.

Running 2.0.11 along with PCP, and log_actions_mod.

Any clues?

Mike

ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Post by ycl6 » Tue Dec 21, 2004 7:17 am

My guess is PCP, I don't think these two work together, sorry :wink:

~Mac

Post Reply

Return to “[2.0.x] MOD Database Releases”