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)
-   -   Quick PM Reply Box (https://vborg.vbsupport.ru/showthread.php?t=38178)

Erwin 05-02-2002 10:00 PM

Quick PM Reply Box
 
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.

Erwin 05-03-2002 01:26 AM

This is a screenshot of what it would look like - this Quick PM Reply box will be located under the PM message that you have received and are reading.

The username, and subject will be automatically added. The PM message that you are reading will automatically be included in the textarea in quotes.

New version screenshot - you can now see the checkboxes that you can tick to automatically delete the original PM when you send the reply, or to enable URL, signature, save to sent folder or message tracking.

EDIT: This hack has been installed in vB.org. Just try it out here. :)

Screenshot:

afterlab 05-03-2002 01:33 AM

Good job, although I doubt i'll use it.

Xanthine 05-03-2002 01:55 AM

Same but good idea.

BigJohnson 05-03-2002 02:32 AM

nice hack

MrLister 05-03-2002 04:08 AM

good job

Corbu 05-03-2002 05:26 AM

very nice ! Thank you !

Logician 05-03-2002 07:40 AM

Good idea, nice job, it's great! :glasses:

Floris 05-03-2002 07:46 AM

We are looking into it!
When we might apply the Quick Reply Hack in the upcomming month(s), we will take this one under consideration too!

John 05-03-2002 12:52 PM

A fine hack :)

John 05-03-2002 02:27 PM

It'd be nice if it followed proper colour formatting though

lordnet 05-03-2002 04:15 PM

nice hack Erwin

thanks :)

LORD

Erwin 05-04-2002 03:45 AM

Quote:

Originally posted by JohnWarwick
It'd be nice if it followed proper colour formatting though
For some reason vbulletin.org changed all my firstaltcolor and secondaltcolor variables to the ones that they use on this site.

I have updated the install text file with the generic variables - although I have uploaded the new file up, when I try to download it, the cache still shows the previous file.

Try to clear your cache and download the text file again. Make sure the file you download is quickpmreply2.txt (not quickpmreply.txt)

The color formatting should automatically reflect your own forum's style.

TheCaver 05-04-2002 05:19 AM

Thanks for the hack.

One minor issue, you have an extra <TR> in there.....near the top....

And a weird double border on the right hand side, which I haven't looked at just yet.....

I'll post the cleaned up HTML unless someone beats me to it.....wink wink.... :)

JC

Erwin 05-04-2002 05:42 AM

Thanks - I've removed the extra <tr> tag - no idea how it got there! :)

kmistry 05-04-2002 03:13 PM

thanks alot erwin, nice hack.

freeshares1 05-06-2002 09:59 PM

Erwin,

Great hack simple and takes about 2 mins to install.

phil

Erwin 05-13-2002 01:29 AM

Thanks for the compliments. :)

Btw, you can use this hack easily as a quick forwarding function as well - I have made it so that you can change the username of the recipient easily so that instead of a quick reply, you can do a quick forward too.

David Bott 05-23-2002 09:41 PM

Hummm...Bug? Every time I use the quick reply to send a PM I get a JavaScript error saying something along the lines of "Validate is not an object", in both IE6 and Netscape 4.x. I looked at the code and the problem is that the <form> tag has a line that reads...

onSubmit="return validate(this)"

but there isn't a function anywhere called validate.

If this line is unintentional, then I think simply removing it will get rid of the problem. If it's suppose to do something I would like to know what.

PLEASE ADVISE

pHAZE_1 05-27-2002 03:03 AM

great hack, thanks.. 1 question though why is the border so thick? its not a prob, im just curious

Erwin 05-27-2002 03:19 AM

I think that's meant to validate the length of the text box, but don't quote me on that. The function may be located elsewhere. I'm not getting any script errors for mine - it works fine, and no one else seem to have that problem... I'm at work at the moment, but I will check it out when I get home. Make sure you have script switched on in your browser - check your browser security settings.

David Bott 05-27-2002 12:04 PM

Sorry...this is an issue (thought not forum or hack stopping) for their is NO SCRIPT to call in the file that was modified. "validate(this)" is no where in the PM code thus the error is their and will be as mentioned above. It is not just me...it was reported by my users. (we see over 30,000 unique visitors a day.)

You could be right on the reason seeing the code was taken from the other Quick Reply hack.

Erwin 05-28-2002 02:16 AM

You missed out on the whole Javascript function that should be placed above the form tags. It is in the installation text file.

Please look at the installation text file again, and make sure you place the Javascript function before the form tags.

Erwin 05-28-2002 02:24 AM

I checked - for some reason the Javascript function was missing in the 2nd version of the installation text file.

I have fixed this now - sorry to those who installed the 2nd version. For those who have installed this already, just copy the Javascript function and paste it ABOVE the form tags. It should work fine now.

Boofo 05-28-2002 03:01 AM

It works great, thanks! The wife loves it! (You done good :)). I still have the double white line on the right. What do I need to take out and where? I just downloaded the file about 20 minutes ago.

Erwin 05-28-2002 03:39 AM

Mmm... it's to do with the table alignments... I did it and it works for my forums, but obviously not aligning correctly with others.

Try to play around with the tables in your templates, and see if you can make it look better. :)

Boofo 05-28-2002 03:45 AM

If I could do that then I wouldn't have bothered you with it. :) Can you make it like the Quick reply Box as far as the box itself goes? I noticed you have a border around the inside of the box, too. Is that supposed to be there?

Boofo 05-28-2002 11:27 PM

Is there any way to have it save a copy (to your sent folder) of the message you are replying to or forwarding (if you have it set to save a copy), when you use the quick pm reply box?

Erwin 05-29-2002 03:21 AM

Boofo:

Change this line:

Code:

<input type="hidden" name="savecopy" value="no">
to this:

Code:

<input type="hidden" name="savecopy" value="yes">

As for the table alignment, I will try to find time to fix it up for you - if you have a web editor, just plug the tables in there and change it to however you want it to look. :)

Boofo 05-29-2002 03:41 AM

I guess if I would have looked closer, I would have found that. :) Thanks! As far as table alignment goes, thanks and let me know when you have some time. :)

Boofo 05-29-2002 05:05 AM

Just found something interesting. If the message contains a quote box inside of a quote box, the whole message is not transferred to the Quick PM reply Box. It stops after the first [/quote], so there are two [quote] and one that ends it. :)

Erwin 05-29-2002 05:55 AM

I sent you a PM, Boofo, regarding the table alignment change. See if it works better.

moosey 05-29-2002 10:04 AM

very nice idea mate.. like it

cheers for your work

Boofo 05-30-2002 02:12 PM

Erwin,

After taking the box apart and reassembling it, I finally got it worked out. I just followed Firefly's Quick Reply Box hack and the box looks like it should now. Thanks for all of the help. If you want my code for the box, let me know. I added a few things to it that make it much easier to use, like the Verify User accepts PMs hack and the Find User Name feature along with a drop down box for the message icons.

By the way, how did you get the Automatic smilies and Fonts in the left side of your box? Can you post the code for that here? :)

ZiRu$ 06-01-2002 04:10 AM

thanks I'll install it.....

Erwin 06-01-2002 07:56 AM

It's just a link to the "Reply PM" page. It's for my members who like using the automatic smilies etc.

Boofo 06-01-2002 08:16 AM

Great idea...would you mind sharing the code to put it in? :)

JZarate 06-01-2002 09:12 PM

thanks, works great!

Erwin 06-02-2002 11:43 AM

Quote:

Originally posted by Boofo
Great idea...would you mind sharing the code to put it in? :)
It's just the URL to the private message reply page - here it is:

Code:

<smallfont><a href="private.php?s=$session[sessionhash]&action=newmessage">Click here for<br>
<b>Automatic Smilies</b><br>
and <b>Font Effects!</b><br>
</a></smallfont>


Boofo 06-02-2002 12:32 PM

Thanks. I guess I should have known that. DOH!!!

Is there any way to have it put the message recipient, subject and the quote into the reply (the regular one) after clicking on that link? That would be great to have it be able to transfer that information if a user wanted to do that. :)


All times are GMT. The time now is 09:37 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.01406 seconds
  • Memory Usage 1,809KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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