PDA

View Full Version : Forward Private Message to User's Email


jamoss
07-24-2003, 10:00 PM
Hack that one of our users requested, because of the limit on their PM box.

Tested on VB version: 2.2.5
Time to install: Less than 5 minutes
New templates: 2
Modified template: 1
New script to upload: 1
Support: jennifer@babynames.com

1. UPLOAD the attached script "pm_forward.php" to your board main directory.

2. CREATE 2 new templates:

forwardpm_yes

&nbsp;<normalfont>
<P>
The private message has been forwarded the email address
in your profile.
<P>
<a href="private.php">Back to Private Messages</a>
</normalfont>
<P>&nbsp;


forwardpm_no

&nbsp;<normalfont>
<P>
Invalid private message. Try again or contact your board administrator.
<P>
<a href="private.php">Back to Private Messages</a>
</normalfont>
&nbsp;<P>&nbsp;<P>


3. Modify template privmsg and put this code wherever you want the link to appear:

<smallfont>&nbsp; <a href="pm_forward.php?pmid=$privatemessageid">Forward to my EMAIL</a></smallfont>


Let me know if it works for ya!

p.s. If user tries to plug in another privatemessageid, it will give them the 'invalid private message' error for security's sake.

iggy123
07-27-2003, 09:14 PM
sounds good - will try it out later

translucent
09-06-2003, 03:57 PM
I've gotten the following error when clicking on "forward to email": /home/u1/translucent/dead.lett: /home/216/55/171/173/html/board/pm_forward.php

jamoss
09-06-2003, 04:13 PM
You have to check your paths. It looks like it can't find the pm_forward.php script.

translucent
09-06-2003, 04:18 PM
Today at 01:13 PM jamoss said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=431758#post431758)
You have to check your paths. It looks like it can't find the pm_forward.php script.

The error occurs when I get to the pm_forward.php page. The only outside script reference, to global.php, is set up correctly.

BigJohnson
09-06-2003, 07:58 PM
Try chmod the file 777. See if that works.

translucent
09-06-2003, 08:40 PM
Today at 04:58 PM BigJohnson said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=431803#post431803)
Try chmod the file 777. See if that works.
Tried it. I get the following error now:
The server encountered an internal error or misconfiguration and was unable to complete your request.

Premature end of script headers: /home/216/55/171/173/html/board/pm_forward.php

kippesp
10-30-2003, 02:46 AM
Good hack. You may want to consider not using the email address of the PM's author in the FROM field. Some users may not want their email address disclosed to others. Other than that, I'm installing it now...