Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2004, 12:38 PM
telc's Avatar
telc telc is offline
 
Join Date: Dec 2001
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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.
Reply With Quote
  #2  
Old 05-30-2004, 10:37 PM
M.C. M.C. is offline
 
Join Date: Jan 2002
Posts: 463
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

join to that requiest!!! BUMP!
Reply With Quote
  #3  
Old 05-31-2004, 12:42 AM
weaver weaver is offline
 
Join Date: Mar 2004
Posts: 183
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 10-01-2004, 01:02 PM
culthero culthero is offline
 
Join Date: Sep 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
Reply With Quote
  #5  
Old 03-10-2005, 09:58 PM
chinch chinch is offline
 
Join Date: Dec 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can anyone post how to allow this ONLY for the admin?
Reply With Quote
  #6  
Old 03-10-2005, 11:21 PM
MikaK's Avatar
MikaK MikaK is offline
 
Join Date: Nov 2004
Location: Helsinki, Finland
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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=
Reply With Quote
  #7  
Old 08-10-2005, 05:06 PM
jpennington jpennington is offline
 
Join Date: Jul 2004
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Thanks!
Reply With Quote
  #8  
Old 01-31-2006, 01:12 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work in 3.5.1? Or 3.5.x?
Reply With Quote
  #9  
Old 06-28-2006, 10:14 PM
Doric Doric is offline
 
Join Date: May 2006
Location: Denver, CO
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Version 3.5.4.
Reply With Quote
  #10  
Old 08-14-2006, 02:54 AM
d8tabyte's Avatar
d8tabyte d8tabyte is offline
 
Join Date: Nov 2005
Location: Michigan
Posts: 239
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 04:17 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.04993 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
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
  • (6)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete