Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
Details »»

Version: , by bira bira is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 05-05-2001 Last Update: Never Installs: 3
 
No support by the author.

Hi All,

This is a very small hack, but one that my users requested:

When you send a fellow member an e-mail via the BB mailform, you can select to also receive a copy of this e-mail to your address.

The "installation" (for lack of better word) includes inserting a small piece of code into member.php, adding a small piece of HTML into one template, and creating a simple text-only new template.

Enjoy!

Installation Instructions:

1. Open member.php. Almost completely at the end of the script, find:

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

PHP Code:
  if ($getcopy) {
    
$subject "FW: ".$subject;
    eval(
"\$sendmessage = \"".gettemplate("email_copymessage",1,0)."\";");
    
mail($bbuserinfo[email],$subject,$sendmessage,"From: \"$bbtitle Mailer\" <$webmasteremail>");
  } 
Save file and upload.

2. Edit template mailform.

Find, almost at the bottom:

Code:
<input type="hidden" name="action" value="emailmessage">
	<input type="hidden" name="userid" value="$userid">
	<input type="submit" class="bginput" name="submit" value="Send email">
	<input type="reset" class="bginput" name="reset" value="Clear Fields">
And ABOVE it add:

Code:
	<input type="checkbox" name="getcopy" value="1"> <smallfont><b>Check this box if you want to receive a copy of this message to your e-mail</b></smallfont>
	<br><br>
3. Create new template, called email_copymessage with the following content:

Quote:
This is a copy of an e-mail message you sent to $destuserinfo[username] at $bbtitle ( $bburl/index.php ):
--------------------------------------------------------------------------

$message
(change the text to whatever you like really)


THAT'S IT!

The mailform will now look like this:



If you check this box, a copy of the e-mail you just sent will also be sent to you.

Cheers,

Bira

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-06-2001, 09:11 PM
bokhalifa bokhalifa is offline
 
Join Date: Oct 2001
Location: U A E Dubai
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good work

bira

workin good


thank


I waet for you now hack
Reply With Quote
  #3  
Old 11-28-2001, 12:41 AM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just to confirm, this hack works with all vB 2.x.x versions up to and including the latest 2.2.1
Reply With Quote
  #4  
Old 11-28-2001, 02:43 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey bira .. missed you over at vbulletin.com forums

how ya doin ?

hack
Reply With Quote
  #5  
Old 11-28-2001, 02:47 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for confirming bira... installed here of course.
Reply With Quote
  #6  
Old 11-28-2001, 03:00 PM
mem mem is offline
 
Join Date: Oct 2001
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack!!!
I like it.
Reply With Quote
  #7  
Old 11-28-2001, 03:11 PM
bira's Avatar
bira bira is offline
 
Join Date: Nov 2001
Posts: 387
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by eva2000
hey bira .. missed you over at vbulletin.com forums

how ya doin ?

hack
hi eva2000 - good to see you

I usually surf up around this time of year, because we have the winter break in Formula One, which means I go knee-deep in website development

Since I postponed upgrading vB for ages (I ran 2.0.1 until last week), there was not much I could do on vB, so there.

But now I'm back, heh.
Reply With Quote
  #8  
Old 11-28-2001, 04:57 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by bira


hi eva2000 - good to see you

I usually surf up around this time of year, because we have the winter break in Formula One, which means I go knee-deep in website development

Since I postponed upgrading vB for ages (I ran 2.0.1 until last week), there was not much I could do on vB, so there.

But now I'm back, heh.
well welcome back then

now i'll have to follow you around this forum seeing what goodies you produce for us
Reply With Quote
  #9  
Old 09-16-2002, 08:24 PM
Kathy's Avatar
Kathy Kathy is offline
 
Join Date: Nov 2001
Location: Texas, ya'll
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I would love to use this hack...but when I add the code on the member.php page...where indicated I end up with "parse error on line 1533 of member.php" ...whether I have the templates up and running or not.

ANy ideas what I'm messing uP?

PS....please remember I'm PHP challenged.
Reply With Quote
  #10  
Old 09-16-2002, 10:40 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Welcome back, bira. Your hacks have always been excellent.
Reply With Quote
Reply

Thread Tools

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 11:14 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.11815 seconds
  • Memory Usage 2,295KB
  • Queries Executed 23 (?)
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
  • (2)bbcode_code
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)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_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