vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Forward Private Message to User's Email (https://vborg.vbsupport.ru/showthread.php?t=55618)

jamoss 07-24-2003 09:00 PM

Forward Private Message to User's Email
 
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
Quote:

&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
Quote:

&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:
Quote:

<smallfont>&nbsp; <a href="pm_forward.php?pmid=$privatemessageid">Forwa rd 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 08:14 PM

sounds good - will try it out later

translucent 09-06-2003 02: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 03:13 PM

You have to check your paths. It looks like it can't find the pm_forward.php script.

translucent 09-06-2003 03:18 PM

Quote:

Today at 01:13 PM jamoss said this in Post #4
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 06:58 PM

Try chmod the file 777. See if that works.

translucent 09-06-2003 07:40 PM

Quote:

Today at 04:58 PM BigJohnson said this in Post #6
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...


All times are GMT. The time now is 03:06 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.01788 seconds
  • Memory Usage 1,724KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete