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)
-   -   PM RealQuickReply (https://vborg.vbsupport.ru/showthread.php?t=116912)

JusteCards 05-27-2006 10:00 PM

PM RealQuickReply
 
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:
Code:

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

replace with:
Code:

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

find:
Code:

<!-- recipients field -->
add above:
Code:

<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:
Code:

$posticons
add above:
Code:

</if>
Your done with that template.

Now we need to edit the pm_showpm template.

find and remove:
Code:

<form action="private.php" method="post">
now find:
Code:

$postbit

<br />

and below it add:
Code:

$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

(Firstly Install that hack) Then in the PM RealQuickReply Plugin [private_showpm_start] hook find:
Code:

  $is_quick_reply = 1;
  eval('$quickpmreply = "' . fetch_template('pm_newpm') . '";');

above that add:
Code:

$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
Quote:

ind:
Code:

<!-- / message area -->


add below:
Code:

</if>


instructions wrong

JusteCards 05-28-2006 11:03 AM

Quote:

Originally Posted by Jon_Simmonds
my bad, i followed the instructions wrong

Yep you need to make sure you place it after:
Code:

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

<!-- 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

Quote:

Originally Posted by FleaBag
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. 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.


All times are GMT. The time now is 10:32 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.01090 seconds
  • Memory Usage 1,747KB
  • 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
  • (13)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)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