vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   PM Notification - Include copy of message? (https://vborg.vbsupport.ru/showthread.php?t=92545)

teonix 07-20-2005 05:57 AM

PM Notification - Include copy of message?
 
Hello,

I was wondering if anyone has already done this, or if it would be an easy task to accomplish the following.

A user can choose to receive a notification in their email if they receive a new Private Message. Currently that notification only says something simple like "you have a new PM, login and check it" in more words than that.

What I would like, is for the notification to include a copy of the message text.

So the notification would read something like:

Dear User,

You have received the following new Private Message at [Forum Name]. To reply to this private message, please log in to your account.

----------- Private Message Content ---------------

Message Content Displayed Here

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

Marco van Herwaarden 07-20-2005 06:19 AM

Edit the 'pmreceived' Phrase. In the end add the following:
Code:

----------- Private Message Title---------------
$title
----------- Private Message Content ---------------
$message
---------------------------------------------------

This is not tested, but i think it should work.

teonix 07-20-2005 09:42 AM

Well I tested it a couple times, and it seems to be working perfectly.

Thank you very much, that was much easier then I expected :P

mkdevo 07-20-2005 11:43 AM

thanks! i actually posted a mod request for this a while back.. turned into a discussion, but no solution.. wish i knew it was so easy!

teonix 07-20-2005 07:54 PM

Yay, happy to have helped you find your solution too :)

The only thing that may inconvenience some is that the message isn't formatted in the email, so it displays kind of like the following:

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

[qoute]message blah blah[/quote]

blah blah message blah blah

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


I also even went a step further and added the $title to the notification subject, you may consider doing that too.

mkdevo 07-21-2005 09:46 AM

yeah, i did the following.. sort of setting it up like an email header..

Code:

$touserinfo[username],

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


    FROM: $bbuserinfo[username]
      TO: $touserinfo[username]
 SUBJECT: $title

 $message


Rocket_Cowboy 01-03-2006 04:12 PM

Quote:

Originally Posted by mkdevo
yeah, i did the following.. sort of setting it up like an email header..

Code:

$touserinfo[username],

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


    FROM: $bbuserinfo[username]
      TO: $touserinfo[username]
 SUBJECT: $title

 $message


What version of VB has this been tested against? In a quick test I did with 3.5.2, I don't get anything for $title and $message ... althought the other variables ($bbuserinfo, $touserinfo) did translate correctly.


All times are GMT. The time now is 03:03 AM.

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.01106 seconds
  • Memory Usage 1,727KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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