vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Email notification of PMs have PM inside (https://vborg.vbsupport.ru/showthread.php?t=109186)

majorxp 03-01-2006 06:50 AM

Email notification of PMs have PM inside
 
I'm looking for a way to include (in the email notification) the subject and body of the PM when you have "Receive Email Notification of New Private Messages" enabled.

Thoughts?

majorxp 03-07-2006 12:52 PM

I am surprised that I'm the only one interested in such a feature.

chinch 03-07-2006 02:01 PM

i used to have this working ONLY for moderators/admins (not members - i want them to login to check). Any help in this thread appreciated :)

movielist 03-16-2006 11:31 AM

I'd also be interested.

ChuckH 03-16-2006 02:47 PM

That would be pretty sweet

jimp 04-20-2006 04:36 PM

I was looking for the same thing, and was beginning to write a hack for it. Instead, I found the solution could be implemented with a phrase override.

Change pmreceived to:
Code:

Dear $touserinfo[username],

You have received a new private message at $vboptions[bbtitle] from $fromusername. Please click here to log in and read it:
$vboptions[bburl]/private.php

All the best,
$vboptions[bbtitle]

_______________
Subject: {$this->pmtext[title]}

{$this->pmtext[message]}

(Tested with vB 3.5.x)

I hope this helps!

Code Monkey 04-20-2006 08:17 PM

I'm working on a plugin for this.

Rukbat 04-23-2006 09:46 PM

I had a hack like this installed when I was still running phpBB2. Essentially just added phrasing to email template like Jimp did in above post. It worked fine except for some really clueless members we had.... they'd hit reply in their email client and I'd of course get what they were sending back to whomever along with the quoted original... was a bit aggravating, I ended up haveing to add to the email template in big bold red letters "DO NOT REPLY TO THIS NOTIFICATION VIA EMAIL, YOU MUST GO TO FORUM AND LOG IN TO REPLY" across the top... as well as emailing the clueless everytime that everytime they did this I was getting to read their PRIVATE messages....

majorxp 04-30-2006 01:38 AM

Thanks Jimp!! Brilliant! Simple and effective.

Rukbat, I decided based on your experience to only include the subject. I could see folks doing that and that would be annoying. The subject is good enough to see if you want to login and read it immediately or not.

Boofo 04-30-2006 01:52 AM

Quote:

Originally Posted by jimp
I was looking for the same thing, and was beginning to write a hack for it. Instead, I found the solution could be implemented with a phrase override.

Change pmreceived to:
Code:

Dear $touserinfo[username],
 
You have received a new private message at $vboptions[bbtitle] from $fromusername. Please click here to log in and read it:
$vboptions[bburl]/private.php
 
All the best,
$vboptions[bbtitle]
 
_______________
Subject: {$this->pmtext[title]}
 
{$this->pmtext[message]}

(Tested with vB 3.5.x)

I hope this helps!

This will show it for everyone. Users won't log in to read them as often. ;)

*sigh* I guess I'll have to wait for the plug-in. :(

God job, though. ;)

tei727 04-30-2006 01:54 AM

Quote:

Originally Posted by jimp
I was looking for the same thing, and was beginning to write a hack for it. Instead, I found the solution could be implemented with a phrase override.

Change pmreceived to:
Code:

Dear $touserinfo[username],

You have received a new private message at $vboptions[bbtitle] from $fromusername. Please click here to log in and read it:
$vboptions[bburl]/private.php

All the best,
$vboptions[bbtitle]

_______________
Subject: {$this->pmtext[title]}

{$this->pmtext[message]}

(Tested with vB 3.5.x)

I hope this helps!

Help a n00b out..Where is pmreceived? lol

Boofo 04-30-2006 02:52 AM

Do a search in phrases in the Admin CP. ;)

jimp 04-30-2006 03:08 AM

Quote:

Originally Posted by tei727
Help a n00b out..Where is pmreceived? lol

AdminCP > Languages & Phrases > Search in Phrases
Search for Text: pmreceived
Search in ... : Phrase Variable Name Only
Rukbat, majorxp, and Boofo,

My forum is internal to my company. I would rather have my employees only log in if they need to reply. :D

Quote:

Originally Posted by Boofo
*sigh* I guess I'll have to wait for the plug-in. :(

God job, though. ;)

This one can't be a plugin. It would require hacking the vB_DataManager_PM class, which is where I looked to figure out what variables to add to the pmreceived phrase. Do you want me to post a hack, so only Administrators, Moderators, and Super Moderators receive the body of the PM?

Boofo 04-30-2006 03:16 AM

Quote:

Originally Posted by jimp
This one can't be a plugin. It would require hacking the vB_DataManager_PM class, which is where I looked to figure out what variables to add to the pmreceived phrase. Do you want me to post a hack, so only Administrators, Moderators, and Super Moderators receive the body of the PM?

Yes, sir. ;)

Tralala 05-09-2006 12:19 AM

Quote:

Originally Posted by jimp
Do you want me to post a hack, so only Administrators, Moderators, and Super Moderators receive the body of the PM?

Yes, please. Pretty please? :banana:


All times are GMT. The time now is 12:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01099 seconds
  • Memory Usage 1,748KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (15)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete