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 "CC" back to member sending... (https://vborg.vbsupport.ru/showthread.php?t=43614)

Kathy 09-16-2002 09:20 AM

Email "CC" back to member sending...
 
Okay, I've done a search and don't see this hack...and the need for it makes me think that perhaps I've missed something obvious all these years in the admin control panel options.

I'd like the option of sending a "CC" or "BCC" of the emails sent to members through the VB back to the member who is sending the email.

This is for my moderators who need "email documentation" of what they send to members when we need to contact one of them.

It would be optional....like a button near the SEND button to have a copy sent to sender....

Any thoughts? Did I miss an option already in the script?

Thanks ahead of time!

Logician 09-16-2002 10:49 AM

1 Attachment(s)
Isnt that default feature? We use it here in vbulletin.org so I thought it was default..

Kathy 09-16-2002 04:02 PM

Welll, no...that isn't on my VB's email function page. I looked again and don't see it in my VBulletin admin control panel "options" either.

Is there a hack somewhere for this in the full releases I can't seem to find?

Thanks!

Logician 09-16-2002 06:56 PM

yes AFAIK there is no hack released in full releases. In fact I was thinking this was default vb behavior.. Anyway it's an easy one:

Edit member.php, find:
PHP Code:

 mail($destuserinfo[email],$subject,$sendmessage,"From: \"$bbuserinfo[username]\" <$bbuserinfo[email]>"); 

After that add:
PHP Code:

if ($sendme)
{
 
mail($bbuserinfo[email],$subject,$sendmessage,"From: \"$bbuserinfo[username]\" <$bbuserinfo[email]>");


Edit mailform template and add this somewhere you like before </form>

PHP Code:

<input type="checkbox" name="sendme" value="1">
<
normalfont>Send one copy to yourself?</normalfont><br

You can format the template line better if you want by putting inside a table etc. If you want to have a different template for CC mails use line:

PHP Code:

eval("\$sendmessage = \"".gettemplate("xxx",1,0)."\";"); 

after

PHP Code:

if ($sendme)


replace xxx with your template name and customize it according to your wish..

Not tested, should work, if not holler and I'll fix it.. :)

Kathy 09-16-2002 10:05 PM

<sigh> I keep getting a parse error method. Copy/paste is doing funky things and I'm not sure enough when it comes to the code...removing extra spaces and returns...doesn't seem to fix it either.

:( Wah!

Logician 09-17-2002 05:49 AM

Are you using Opera as your browser? Try IE or Netscape while copying from here. Or just type it manually, it's a short code anyway.. :)

Kathy 09-17-2002 10:25 AM

I'm using IE....never been on Opera before in my life (except when I went to the theatre to see a few ;) )

I'll have a go at typing in the code by hand...but I still worry.

At the end of line, there is a return.....

but at the beginning of a line where the code is indented, is that a tab or spaces? Does it matter?

:D

See why I wanted to copy/paste? I've followed other smallish hacks here before where the copy/paste worked and the hacks are functioning. But I am PHP challenged....to say the least. :ermm:

Thanks for your help!

Logician 09-17-2002 11:22 AM

Quote:

Originally posted by Kathy
I'm using IE....never been on Opera before in my life (except when I went to the theatre to see a few ;) )

If you are not on Opera, it's weird you get a parse error. I checked the code and it did not give me any parse errors. Anyway if you cant handle it, send me your member.php (via PM), tell me whether you want custom template or not and I'll add the code for you..

Logician 09-18-2002 06:27 AM

ok I fixed your file, there was some strange chars. which shouldnt be in it. It's very likely your program that you edit the file put them in. You should use Notepad for hack editing.. More info here:

https://vborg.vbsupport.ru/showthrea...threadid=39142

:)

Kathy 09-18-2002 09:12 AM

Thanks! Errr....I don't have notepad...as I'm on an IMac :cool:

I do use BBedit though, which is the suggested "text" editor for macs...

I guess it messed up somewhere :lol:

Thanks for your help,
Kathy


All times are GMT. The time now is 10:23 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.01623 seconds
  • Memory Usage 1,744KB
  • 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
  • (5)bbcode_php_printable
  • (1)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