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
Quick PM Reply Box Details »»
Quick PM Reply Box
Version: 1.00, by Erwin Erwin is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 05-02-2002 Last Update: Never Installs: 166
 
No support by the author.

Quick PM Reply Hack Version 2.4 - by Dr. Erwin Loh
-------------------------------------------------------------------

Inspired by Firefly, Neo, Vincent "MW" Chan


Version 2.4 for vBulletin 2.3.0 - 23rd of March 2003
-----------------------------------------------------------------

This is a simple hack that puts a "Quick PM Reply" box underneath a PM that you have received, with the username, subject and message in quotes already inserted. All you need to do is to just type the reply and click send. In the new version, you also have the option of deleting the original PM when you send the reply, as well as multiple options like saving the copy, and message tracking.

Upgrading from version 1.x - just make the 2nd PHP file changes, and copy and paste the the new template changes over the old one.


Version 2 additions:
--------------------------

Added options using checkboxes to:

1) Delete original: Delete original PM from PM box when you send reply
2) Automatically parse URLs.
3) Show Signature.
4) Save a copy: Also save a copy in the 'Sent Items' folder.
5) Request Read Receipt: Choose message tracking.


Version 2.1 - minor bug fix to make the icon change after a message is sent.
Version 2.2 - minor bug fix to make sure the delete tickbox works.
Version 2.3 - fixed a minor template issue
Version 2.4 - fixed the multiple RE: bug

NEW: Added minor addition to make cursor go automatically to the PM Quick Reply Box.

NOTE: To get the newest attachment, you need to clear your browser cache - otherwise you may download the previous version text file.

Show Your Support

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

Comments
  #82  
Old 07-28-2002, 11:59 AM
MalaK_3araby MalaK_3araby is offline
 
Join Date: Dec 2001
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Erwin.

* Installed *
Reply With Quote
  #83  
Old 07-28-2002, 07:19 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
I'm sorry, I guess i didn't explain it right.

It worksd fine for me except when it is quoted from someone else. Then it still shows the [disable]/me[/disable] code instead of that person's name in the quote.

Like I said, the /me code works for me in both the reply and the quoted section. If it doesn't work for you, then you didn't install the /me code or my hack properly. I didn't do anything extra for it to work.
Reply With Quote
  #84  
Old 07-28-2002, 07:22 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
I must be doing something wrong then, because I have that hack installed and I still get more than the last quote if there is more than one (but only in the Quick Reply PM Box, the regular reply box works as it should).

The RE: RE: fix is working fine now. Thanks, Erwin.

Now, all we have to do is figure out the quote problem, for now, anyway. Is anyone else having the quote problem in the Quick PM Reply Box after the hack install?

That's weird, because I installed the "remove quote hack" and it fixed up my quote problems. Did you install that hack properly - you need to place the variables in the right spot.
Reply With Quote
  #85  
Old 07-28-2002, 08:41 PM
Virix Virix is offline
 
Join Date: Oct 2001
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The Re: problem is because your hack just keeps adding Re: to the title, it does not strip the old one out:

Code:
In template privmsg:

Find:
<input type="text" class="bginput" name="title" value="RE: $message[title]" size="40" maxlength="85" tabindex="2">


Replace with:
<input type="text" class="bginput" name="title" value="$quicktitle" size="40" maxlength="85" tabindex="2">



In file private.php:

Find:
$touserinfo = getuserinfo($message[touserid]);


Under that add:

    if (strtolower(substr($message[title],0,3))=="re:") {
      $quicktitle=trim(substr($message[title],3));
    }else{
     $quicktitle=$message[title];
    }
  
  $quicktitle="Re: $quicktitle";
I got several complaints abou the Re:'s so I went though and fix it..

Hope this is what you want....
Reply With Quote
  #86  
Old 07-29-2002, 01:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How can you install it wrong? Herer is that section of code to prove it.

PHP Code:
$message['message'] = preg_replace('#^/me(.*)$#im'"[color=yellow]* $fromuserinfo[username]\\1[/color]",
$message['message']);
$message['message'] = trim(preg_replace('~\[quote\](.*)\[/quote\]~si'''$message['message']));
      eval(
"\$message[message] = \"".gettemplate("priv_reply",1,0)."\";");
  } else {
    
$message = array();
  } 
Quote:
Originally posted by Erwin


That's weird, because I installed the "remove quote hack" and it fixed up my quote problems. Did you install that hack properly - you need to place the variables in the right spot.
Reply With Quote
  #87  
Old 07-29-2002, 01:34 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There is no need to do anything to the private.php file for the /me hack to work with my hack. Nothing at all. Just remove all those things from the private.php if they are there. (Trust me, the /me code works for me.)
Reply With Quote
  #88  
Old 07-29-2002, 01:50 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

But we need the code above to make it work in the Regular Reply for private messages, don't we?
Reply With Quote
  #89  
Old 07-29-2002, 03:35 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Like I said, it all works - just install the /me hack as normal, and then my hack as normal, no need to do anything else.
Reply With Quote
  #90  
Old 07-29-2002, 03:40 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whatever. The reason I put the code in above is I couldn't get it to work in private messages (Quick reply or regular) until Firefly gave me that code to put in there. Then it started working in the regular replies. I don't use the Quick PM Reply Box much anyway, so UNINSTALL. The support isn't that good anyway. Anyone can say "I don't know, works good for me".

Quote:
Originally posted by Erwin
Like I said, it all works - just install the /me hack as normal, and then my hack as normal, no need to do anything else.
Reply With Quote
  #91  
Old 07-29-2002, 07:20 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
Whatever. The reason I put the code in above is I couldn't get it to work in private messages (Quick reply or regular) until Firefly gave me that code to put in there. Then it started working in the regular replies. I don't use the Quick PM Reply Box much anyway, so UNINSTALL. The support isn't that good anyway. Anyone can say "I don't know, works good for me".

You haven't given me anything to work with. Your problem could be caused by a million things - another hack interfering with this one etc. I support this hack - I cannot be expected to support Firefly's hack to make it compatible with this one. Like I said, it IS compatible. You posted a piece of code but don't tell me where it is. It's not in my private.php. Where is that code from? What do you expect me to do? I don't have access to your PHP files or your templates?

Also, I work full-time as well - I posted this hack up as a gesture of thanks for the multiple hacks I have taken from here. Don't expect 24 hour instant support.
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 04:04 PM.


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.07262 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_code
  • (1)bbcode_php
  • (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
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete