vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Private Message Quick Reply (https://vborg.vbsupport.ru/showthread.php?t=106553)

bcmedia 01-27-2006 10:00 PM

Private Message Quick Reply
 
Be nice cuz this is my first distributed hack here.

=============================
Credit for orginal idea by Erwin
https://vborg.vbsupport.ru/showthread.php?t=59999
=============================

What is this hack?

This hack will show your users a quick reply box on view private message page.

<b>If you have other hacks installed to enhance your private messages, or other hacks that are displayed on your private messages pages, I cannot guarantee that this hack will work for you.</b>

Details:

XML Product Import
1 Plugin
1 Template Edit

BUG FIXES Version 1.1

1. Added Smilies Into Reply Box Area
2. Upgraded instructions to reflect new 3.6.x template changes

BUG FIXES Version 1.0.1

1. Add Additional options checkboxed
2. Quoted Message In Message Box
3. Javascript Error ("require_click is undifined") fixed
4. "Re:" doesn't keep repreating anymore
5. Removed quotes around username
6. Fewer code to insert in "pm_showpm"


Installation Instructions:

1. Import the product.
2. Template Edits (1)

If you need to uninstall:

1. Uninstall in your product manger
2. Revert template "pm_showpm"

I've tested this on my live message boards and it seems to be bug free (meaning, no complaints), however if you experience bugs, please reply, and I'll do my best to fix them quickly.

=====================
UPDATE 04.03.07
=====================

-- Liz

Daniel 01-28-2006 05:09 PM

What I've been waiting for! Thanks!

Zachariah 01-28-2006 05:19 PM

I'll give it a go.
- Thank You for your time and energy.

Megareus Rex 01-28-2006 05:21 PM

Excellent, but I just have a couple questions.

Could you possibly set it so users can choose whether to, by default, have it save a PM recepit or save a copy of the PM? Its annoying to have both of those things chosen automatically, and the way you did it, you can't choose to NOT have a receipt/saved message, so I'm stuck with having to manually delete them every time.

bcmedia 01-28-2006 05:30 PM

Quote:

Originally Posted by Megareus Rex
Could you possibly set it so users can choose whether to, by default, have it save a PM recepit or save a copy of the PM? Its annoying to have both of those things chosen automatically, and the way you did it, you can't choose to NOT have a receipt/saved message, so I'm stuck with having to manually delete them every time.

ok so basically just add the checkboxes back in? That's probably a good idea. Thanks! I'll update the install instructions here in a sec.

but basically

find:
Code:

<div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked="checked" />Show your signature</label></div>
after that add:
Code:

<div><label for="cb_receipt"><input type="checkbox" name="receipt" value="1" id="cb_receipt"  />Request a read receipt for this message</label></div>
<div><label for="cb_savecopy"><input type="checkbox" name="savecopy" value="1" id="cb_savecopy" tabindex="1" checked="checked" />Save a copy of this message in your <a href="private.php?folderid=-1">Sent Items</a> folder.</label></div>

then find and delete the hidden fields

Code:

<input type="hidden" name="receipt" value="1" />
<input type="hidden" name="savecopy" value="1" />


Megareus Rex 01-28-2006 05:48 PM

Quote:

Originally Posted by bcmedia
ok so basically just add the checkboxes back in? That's probably a good idea. Thanks! I'll update the install instructions here in a sec.

but basically

find:
Code:

<div><label for="cb_signature"><input type="checkbox" name="signature" value="1" id="cb_signature" tabindex="1" checked="checked" />Show your signature</label></div>
after that add:
Code:

<div><label for="cb_receipt"><input type="checkbox" name="receipt" value="1" id="cb_receipt"  />Request a read receipt for this message</label></div>
<div><label for="cb_savecopy"><input type="checkbox" name="savecopy" value="1" id="cb_savecopy" tabindex="1" checked="checked" />Save a copy of this message in your <a href="private.php?folderid=-1">Sent Items</a> folder.</label></div>

then find and delete the hidden fields

Code:

<input type="hidden" name="receipt" value="1" />
<input type="hidden" name="savecopy" value="1" />


It looks good, but now it says
"require_click" is undefined, in an IE error message.

Oh, and any chance you could add choosing whether Save a copy is checked by default as a user option? There's another hack I installed that let's users choose whether to save a copy, get a receipt, or delete the PM upon reply in Edit Options, and I'm thinking either this hack's own options, or if you're up for it, adding an alternative that let's this check their settings in the other hack (I dunno how much work that'd be, but the other hack seems pretty popular, so it might be a good idea).

Snake 01-28-2006 05:53 PM

Thanks man. This is quite useful! :D

.Tim 01-28-2006 06:31 PM

Yes! Glad this is available for 3.5. Nice job.

IrPr 01-28-2006 06:52 PM

WOw NICE WORK

Thanks Liz :)
but
The following errors occurred when this message was submitted:

Quote:

1. The following users were not found:
1. 'Username'
this will make quotation mark around username when im trying to reply to PMs using QR
im using vB3.5.3 and using some another Hack that placed in private_showpm_start hook location ( Reply to PM without Quote ... )
any suggestion?

.Tim 01-28-2006 08:03 PM

One minor issue, if you and a person go back and forth several times responding with quick reply each time you'll end up with 'Re:' a bunch of times like:

'Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Message Title'

And that's no big deal but can be kind of annoying. Any way to fix that?


All times are GMT. The time now is 09:59 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.01506 seconds
  • Memory Usage 1,749KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete