Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-20-2005, 05:57 AM
teonix teonix is offline
 
Join Date: Jun 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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

---------------------------------------------------
Reply With Quote
  #2  
Old 07-20-2005, 06:19 AM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 07-20-2005, 09:42 AM
teonix teonix is offline
 
Join Date: Jun 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 07-20-2005, 11:43 AM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #5  
Old 07-20-2005, 07:54 PM
teonix teonix is offline
 
Join Date: Jun 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 07-21-2005, 09:46 AM
mkdevo mkdevo is offline
 
Join Date: May 2004
Location: CT, USA
Posts: 269
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #7  
Old 01-03-2006, 04:12 PM
Rocket_Cowboy Rocket_Cowboy is offline
 
Join Date: Nov 2004
Location: Dallas, TX
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04060 seconds
  • Memory Usage 2,215KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete