Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Forward Private Message to User's Email Details »»
Forward Private Message to User's Email
Version: 1.00, by jamoss jamoss is offline
Developer Last Online: Jan 2021 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 07-24-2003 Last Update: Never Installs: 1
 
No support by the author.

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.

Show Your Support

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

Comments
  #2  
Old 07-27-2003, 09:14 PM
iggy123's Avatar
iggy123 iggy123 is offline
 
Join Date: Jan 2003
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sounds good - will try it out later
Reply With Quote
  #3  
Old 09-06-2003, 03:57 PM
translucent translucent is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 09-06-2003, 04:13 PM
jamoss's Avatar
jamoss jamoss is offline
 
Join Date: Apr 2002
Location: Los Angeles
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You have to check your paths. It looks like it can't find the pm_forward.php script.
Reply With Quote
  #5  
Old 09-06-2003, 04:18 PM
translucent translucent is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 09-06-2003, 07:58 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try chmod the file 777. See if that works.
Reply With Quote
  #7  
Old 09-06-2003, 08:40 PM
translucent translucent is offline
 
Join Date: Apr 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 10-30-2003, 02:46 AM
kippesp kippesp is offline
 
Join Date: Jan 2002
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
Reply


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 12:39 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.04465 seconds
  • Memory Usage 2,268KB
  • 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
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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