PDA

View Full Version : PM RealQuickReply


JusteCards
05-27-2006, 10:00 PM
I've never really considered including the whole newpm box at the bottom of a pm a very "Quick" way of replying.. So after much tweaking this is what I came up with..

PM RealQuickReply v1.01

Firstly install the attached product file..

Next we need to edit the pm_newpm template.

find:
<tr>
<td class="tcat">$vbphrase[post_new_private_message]</td>
</tr>

replace with:
<tr>
<td class="tcat"><if condition="($_REQUEST['do'] == 'showpm')">Quickreply to $originalposter<else />$vbphrase[post_new_private_message]</if></td>
</tr>

find:
<!-- recipients field -->

add above:
<if condition="($_REQUEST['do'] == 'showpm')">
<input type="hidden" id="pmrecips_txt" name="recipients" value="$pm[recipients]">
<input type="hidden" name="title" value="$pm[title]">

<!-- message area -->
<div class="smallfont">$vbphrase[message]:</div>
<div id="$editorid" class="vBulletin_editor" align="$stylevar[left]">$messagearea</div>
<!-- / message area -->

<else />

find:
$posticons

add above:
</if>

Your done with that template.

Now we need to edit the pm_showpm template.

find and remove:
<form action="private.php" method="post">

now find:
$postbit

<br />

and below it add:
$vBeditTemplate[clientscript]
$quickpmreply
<script type="text/javascript" src="clientscript/vbulletin_quick_reply.js"></script>

<form action="private.php" method="post">


and your done.. Enjoy :bunny: (Please remember to click install to be informed of updates)

Changelog:
v1.00 Initial Release
v1.01 pm_newpm Edit changed in the hope of a more troublefree install.


--------------
Optional Extras
--------------

To add support for Psionic Vision's Advanced PM Options (https://vborg.vbsupport.ru/showthread.php?s=&threadid=100152)

(Firstly Install that hack) Then in the PM RealQuickReply Plugin [private_showpm_start] hook find:
$is_quick_reply = 1;
eval('$quickpmreply = "' . fetch_template('pm_newpm') . '";');

above that add:
$checked['savecopy'] = ($vbulletin->userinfo['advpmoptions_savecopy'] ? 'checked="checked"' : '');

$checked['receipt'] = ($vbulletin->userinfo['advpmoptions_receipt'] ? 'checked="checked"' : '');

$checked['deleteoriginal'] = ($vbulletin->userinfo['advpmoptions_deleteoriginal'] ? 'checked="checked"' : '');

and your done :)

Jon_Simmonds
05-28-2006, 10:06 AM
looks nice, installing now :)

Jon_Simmonds
05-28-2006, 10:15 AM
I get this :S


edit

my bad, i followed the ind:
Code:

<!-- / message area -->


add below:
Code:

</if>


instructions wrong

JusteCards
05-28-2006, 11:03 AM
my bad, i followed the instructions wrong

Yep you need to make sure you place it after:
<!-- / message area -->

and not:
<!-- message area -->

Otherwise you'll run into that problem..

rmxs
05-28-2006, 02:29 PM
Installed

FleaBag
05-28-2006, 03:00 PM
I end up with 2 message boxes? One where it should be and one below the pm reply (which are not where they should be) options. Any ideas? I tried reinstalling twice. :-/

JusteCards
05-28-2006, 03:15 PM
I end up with 2 message boxes? One where it should be and one below the pm reply (which are not where they should be) options. Any ideas? I tried reinstalling twice. :-/
Firstly, make sure you've taken note of this post (https://vborg.vbsupport.ru/showpost.php?p=990789&postcount=4). If so and your still having problems PM Me your pm_newpm template and I'll check it out for you..

I've changed the instructions on this edit slightly as people seemed to be getting confused..

moonclamp
05-28-2006, 03:33 PM
I'm gonna install this to keep an eye on it ...

So far I've noticed that the small "quick reply and quote" button doesn't work.

Also, the texarea width means that a bottom scrollbar appears if a user is on 800x600 resolution

Roms
05-28-2006, 03:44 PM
Does this quote the message in the PM? (like Erwins old version?) Thanks

.Tim
05-28-2006, 03:53 PM
Nice, much better than the other but one complaint, none of the editor buttons work and it doesn't let you quote the pm. Only problems I see.

JusteCards
05-28-2006, 04:03 PM
I'm gonna install this to keep an eye on it ...

So far I've noticed that the small "quick reply and quote" button doesn't work.

Also, the texarea width means that a bottom scrollbar appears if a user is on 800x600 resolution
The reply button should work as nothing has been done to change that, the quickreply should take move your cursor to the start of the quickreplybox.

textarea width is set in the admincp stylevars.

moonclamp
05-28-2006, 04:06 PM
the quickreply should take move your cursor to the start of the quickreplybox..It doesn't though.

JusteCards
05-28-2006, 04:12 PM
Does this quote the message in the PM? (like Erwins old version?) Thanks
No, I'm sorry but the QuickReply box doesn't include the message like that version, but I might be able to sort out quoting the way it does in a thread.. leave it with me..

It doesn't though.
which editor are you using? Basic, Standard of Wysiwyg?

Nice, much better than the other but one complaint, none of the editor buttons work and it doesn't let you quote the pm. Only problems I see.
Thanks :) The buttons should work.. do they work when using the quickreply on a thread? and the quote is a problem I'm now looking into..

moonclamp
05-28-2006, 04:18 PM
which editor are you using? Basic, Standard of Wysiwyg?
wysiwyg

JusteCards
05-28-2006, 04:36 PM
wysiwyg
Okay thanks.. Will look into that..

Strike3ForumsMH
05-28-2006, 05:05 PM
I end up with 2 message boxes? One where it should be and one below the pm reply (which are not where they should be) options. Any ideas? I tried reinstalling twice. :-/
Do you have this hack installed?
https://vborg.vbsupport.ru/showthread.php?t=106553

I forgot to remove the template edit and I had the same problem.

And thanks for the hack, this is perfect!

Tralala
05-28-2006, 05:14 PM
Looks GREAT! But I'm wondering, will it work with the extra options/functionality from this great hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=100152)?

JusteCards
05-28-2006, 05:36 PM
Looks GREAT! But I'm wondering, will it work with the extra options/functionality from this great hack (https://vborg.vbsupport.ru/showthread.php?s=&threadid=100152)?

Yes it should do it hooks into the user options like that hack seems to, but I'll install it and find out..

Edit: You need to make one edit to the Plugin to get the two hacks working together (Details of how its done have been added to the bottom of the first post)

JusteCards
05-28-2006, 05:37 PM
Do you have this hack installed?
https://vborg.vbsupport.ru/showthread.php?t=106553

I forgot to remove the template edit and I had the same problem.

And thanks for the hack, this is perfect!
Ahhh yes, please remove any other private message reply hacks before installing this one..

and thanks :) Please remember to click install to be informed of updates.

.Tim
05-28-2006, 05:45 PM
Thanks :) The buttons should work.. do they work when using the quickreply on a thread? and the quote is a problem I'm now looking into..

Yes they do, I made sure all the template edits were done and done properly. Still nothing. Images are there but nothing happens when clicked.

Strike3ForumsMH
05-28-2006, 06:16 PM
Is it just me or does the delete button when viewing the PM no longer function? Or did I goof up somewhere? Thanks.

rmxs
05-28-2006, 06:37 PM
QR button doens not work...

i can see the QR form byt the button its dead...

JusteCards
05-28-2006, 06:49 PM
Yes they do, I made sure all the template edits were done and done properly. Still nothing. Images are there but nothing happens when clicked.
hmmmm, could you PM me your pm_showpm template.

JusteCards
05-28-2006, 06:49 PM
Is it just me or does the delete button when viewing the PM no longer function? Or did I goof up somewhere? Thanks.
Make sure you've removed the <form action="private.php" method="post">

(first step of the the pm_showpm instructions)

JusteCards
05-28-2006, 06:51 PM
QR button doens not work...

i can see the QR form byt the button its dead...
Yep.. I'm trying to replicate the problem.

projectego
05-29-2006, 03:42 PM
Sounds like a great hack, I'll check this out now. ;)

FFMania
06-02-2006, 04:47 PM
The hack works perfect, the only problem I have is it messes up the table after I installed it. It looks like the attached image after the hack is installed... the table is extended way too far, not sure which part of the hack I have to edit to fix this, any help?

JusteCards
06-02-2006, 07:43 PM
The hack works perfect, the only problem I have is it messes up the table after I installed it. It looks like the attached image after the hack is installed... the table is extended way too far, not sure which part of the hack I have to edit to fix this, any help?
I actually think it's probably the sig image that's pushing out the table..

FFMania
06-03-2006, 04:48 AM
I removed the sig and did a retest... same thing.

Tralala
06-03-2006, 02:22 PM
I removed the sig and did a retest... same thing.

I don't see what's wrong in your screenshot.

FFMania
06-03-2006, 04:01 PM
The posting table is out of the original table. It is stretched out.

moonclamp
06-03-2006, 04:19 PM
The posting table is out of the original table. It is stretched out.
I've got a similar problem (but slightly different as I'm using a different style).
It's the usercp navigation that does it.

When the QR box is used on the rest of the forum there isn't any sidebar to push it across. I think the only solution is to make it smaller throughout the site via admincp -> styles -> stylevars

FleaBag
06-15-2006, 11:20 PM
Took a fresh look at it and all installed well! Thanks! One question though...

I use ALT+S on every vB page to send the text after I finish typing. The problem is when I finish writing the quick reply, using ALT+S hits the "Delete PM" button. Any idea how to change that?

Wifey
06-21-2006, 02:24 AM
I can't even get this to show up in my PM's and I followed everything as I was supposed to. I'm having problems understanding the plugin stuff. I can do the template edits, that's easy -- what the heck is with the other?

Megareus Rex
06-28-2006, 09:16 PM
My problem is that it gives an errir (at least in IE), that is "threaded_mode is undefined." I'm guessing its because I have threaded mode turned off?

How can I fix it? It's not a crippling error, but nonetheless.

Besides that though, AWESOME HACK. I've been waiting forever for this.

Elsie
07-16-2006, 08:59 AM
i found it! :D


thanks hun, you're a star - will install this soon!

Jeordie015
08-15-2006, 01:25 AM
Is there a way to get the options below the postbox. The "quote message in reply" and "show signature" selectors? They're not there for me. I'm not sure if they should be.

EasyTarget
08-31-2006, 02:44 PM
I'll be giving this a shot.

does anyone know how the change the smilies box to the pulldown menu instead of the popup box?

EasyTarget
09-07-2006, 01:25 PM
installed and working on 3.6

is there a way I can apply the smiles in quick reply and quick edit hack (https://vborg.vbsupport.ru/showthread.php?t=99532) to this one as well?

Coldhands
03-13-2007, 09:43 PM
Works great in 3.6.4!

Installed!

Only one thing . . . is there a way to make it so it adds the previous messages below the new quick reply? Like a quote button?

Snake
03-22-2007, 01:10 PM
I'm looking forward to that as well. :)

Gizmo5h1t3
03-22-2007, 07:36 PM
got it workin on mine a treat, installed.

Adam21
06-26-2007, 11:05 AM
Works ok with 367pl1 plus the vb.org PM layout code :)