vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Include Private Message text in notification email (https://vborg.vbsupport.ru/showthread.php?t=61159)

telc 02-04-2004 12:38 PM

Include Private Message text in notification email
 
How can I include the private message text in the email that notifies me of a new private message. I just need to know the variable to I can put it into the "phrases manager"

It was able to be done in vb2.x and it works for Reply Notification emails in vb3, so it will work once I know the variable name that holds the pmtext.

M.C. 05-30-2004 10:37 PM

join to that requiest!!! BUMP!

weaver 05-31-2004 12:42 AM

Quote:

Originally Posted by M.C.
join to that requiest!!! BUMP!

Me as well. I didn't know you could do it for replies to PMs so you are one up on me.

culthero 10-01-2004 01:02 PM

i changed the phrase $vbphrase[pmreceived] in the phrase manager to:
Code:

$touserinfo[username],

You have received a new private message at $vboptions[bbtitle]:

From: $bbuserinfo[username]
Subject:

To reply, click here to log in and read it:
$vboptions[bburl]/private.php

but this can be whatever you want. you just need something to search for in the ereg_replace:

then search private.php for
Code:

vbmail($touserinfo['email'], $emailsubject, $emailmessage);
and ABOVE that line, add the following:
Code:

$emailmessage = ereg_replace ( "Subject:", "Subject: ".$title."\n\n".$message, $emailmessage);

chinch 03-10-2005 09:58 PM

can anyone post how to allow this ONLY for the admin?

MikaK 03-10-2005 11:21 PM

Quote:

Originally Posted by culthero
i changed the phrase $vbphrase[pmreceived] in the phrase manager to:
Code:

$touserinfo[username],
 
You have received a new private message at $vboptions[bbtitle]:
 
From: $bbuserinfo[username]
Subject:
 
To reply, click here to log in and read it:
$vboptions[bburl]/private.php

but this can be whatever you want. you just need something to search for in the ereg_replace:

then search private.php for
Code:

vbmail($touserinfo['email'], $emailsubject, $emailmessage);
and ABOVE that line, add the following:
Code:

$emailmessage = ereg_replace ( "Subject:", "Subject: ".$title."\n\n".$message, $emailmessage);

Works super - now this is perfect:)

=M=

jpennington 08-10-2005 05:06 PM

This works great -- I have been looking for this for a while.

Thanks!

Trana 01-31-2006 01:12 AM

Does this work in 3.5.1? Or 3.5.x?

Doric 06-28-2006 10:14 PM

The method listed above doesn't work for my installation, unfortunately - and I'd desperately like to have this functionality.

Version 3.5.4.

d8tabyte 08-14-2006 02:54 AM

would a simple if statement to show the member belongs to a certain usergroup work here? I am trying to figure out if/how it would work for just the admin group - or even just a certain member ( me, as i have other admins).

using 3.5.1


All times are GMT. The time now is 01:42 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.01127 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete