PDA

View Full Version : [Release vb2.0] Receive copy of e-mail you send via the BB


bira
06 May 2001, 22:32
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:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



BELOW it add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Save file and upload.

2. Edit template mailform.

Find, almost at the bottom:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



And ABOVE it add:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



3. Create new template, called email_copymessage with the following content:


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:

http://www.atlasf1.com/personal/bira/mailform.gif

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

Cheers,

Bira

bokhalifa
06 May 2001, 23:11
good work

bira

workin good:D


thank;)


I waet for you now hack:D

bira
28 Nov 2001, 02:41
just to confirm, this hack works with all vB 2.x.x versions up to and including the latest 2.2.1

eva2000
28 Nov 2001, 16:43
hey bira .. missed you over at vbulletin.com forums :(

how ya doin ? :D

:cool: hack :)

Chen
28 Nov 2001, 16:47
Thanks for confirming bira... installed here of course. :)

mem
28 Nov 2001, 17:00
nice hack!!!
I like it. :D

bira
28 Nov 2001, 17:11
Originally posted by eva2000
hey bira .. missed you over at vbulletin.com forums :(

how ya doin ? :D

:cool: 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.

eva2000
28 Nov 2001, 18:57
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 :D

now i'll have to follow you around this forum seeing what goodies you produce for us :D

Kathy
16 Sep 2002, 22:24
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. :D

Erwin
17 Sep 2002, 00:40
Welcome back, bira. Your hacks have always been excellent. :)