vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Quick PM Reply Box for Private Messages (https://vborg.vbsupport.ru/showthread.php?t=59999)

Erwin 01-09-2004 10:00 PM

Quick PM Reply Box for Private Messages
 
Quick PM Reply Box for Private Messages Version 1.4
---------------------------------------------------------

vB3 Enhanced Version!

Finally, I've upgraded this popular hack for vB 3.0.x - it should work with all versions of vB3.

Update:
--------------------

Version 1.4 :

1) Choose to use no toolbars, normal toolbar or WYSIWYG toolbar.

2) Choose to show smilie box or not.

3) Choose to show posticons or not.


To do this, edit these sections of the code you have added:

PHP Code:

// 0 = no toolbar, 1 = standard toolbar, 2 = wysiwyg toolbar
$vboptions['allowvbcodebuttons'] = '2';
// 0 = no smilie box, 1 = smilie box shown 
$vboptions['wysiwyg_show_smiliebox'] = '1'

AND


PHP Code:

// Uncomment line below to stop showing posticons
// $posticons = ''; 




Functions:
--------------------------

It's similar to Quick Reply for Threads, except that this is Quick Reply for PMs - when you go in to read a PM, there is a Quick Reply Box underneath the PM, with the Username inserted, Subject with RE: filled in, and the message already quoted.

This vB3 version also has the WYSIWYG buttons, smilies and posticon choices listed as well, depending on what you have set up in your ToolBar settings in Options. You can also now customize this - you can choose to have no toolbar, the normal toolbar, the WYSIWYG toolbar, the smilie box or the posticons or not! :)

There are also checkboxes to save a copy, show your signature, automatically parse links or disable smilies in text. Also, these options are in a box that is collapsible.

This hack uses the normal vB3 Phrases that are already existent. So no need to do any translating.


Installation:
---------------------------

Very simple. It's a matter of editing 1 PHP file, and 1 template.

Believe it or not, that's all!

The installations instructions are in the install HTML file in the ZIP file below.

Enjoy! :D


Updates:
----------------------

Version 1.2 - Fixed it so it works with WYSIWYG. Removed the Message Tracking checkbox feature I had in Version 1.1 - I'll keep the Popup Windows for now. NOTE: Delete doesn't work in Gamma - this is fixed in RC 1 and 2. ;)


Screenshots:
-----------------------------

This is a bit redundant since this hack is already installed here, but I will put a couple up anyway. :)

The first screenshot shows how the Quick PM Reply Box is underneath the PM you are reading, with the Recipient's username, Subject with RE:, and Message in quotes automatically put in already. You can also see the WYSIWYG toolbar and smilie panel (depending on what you have set up in your User CP Options).

The second screenshot shows the checkboxes to save a copy, show your signature, automatically parse links or disable smilies in text. These options are in a box that is collapsible.

g-force2k2 01-10-2004 07:53 AM

Thanks Erwin for the hard working hacking you've been doing lately :)

I'm sure plenty of people will appreciate this hack.

Cheers,
g-force2k2

SnowBot 01-10-2004 07:58 AM

[high]* SnowBot hits the button :)[/high]

ta fella

Erwin 01-10-2004 07:58 AM

Quote:

Originally Posted by g-force2k2
Thanks Erwin for the hard working hacking you've been doing lately :)

I'm sure plenty of people will appreciate this hack.

Cheers,
g-force2k2

No problems. :) It's my pleasure.

Erwin 01-10-2004 09:29 AM

Okay, I had to re-edit the installation file - I got the name of the template wrong. I also added the Message Tracking checkbox feature to the Quick PM Reply Box.

If you downloaded this hack before this post was made, please re-download and re-install it. :)

You can test the Message Tracking checkbox in the Quick PM Reply Box here at vBulletin.org - it works. ;)

Like I said above, the PopUp Message Tracking Window still happens in the Normal PM Reply Page. For Quick PM Reply - there is no PopUp Window - use the checkbox instead. ;)

hume 01-10-2004 09:33 AM

Quote:

The installations instructions are in the install HTML file in the ZIP file below
I can't see file ZIP???

Erwin 01-10-2004 09:34 AM

Quote:

Originally Posted by hume
I can't see file ZIP???

It's there now. :) I was updating the instructions.

SnowBot 01-10-2004 09:36 AM

nice and fast mate, ta

Boofo 01-10-2004 10:09 AM

Excellent work! Been waiting for this one. ;)

I have run into a small problem, though. The Delete this message checkbox no longer works with the hack installed. Did I miss something when installing it?

EDIT: The delete this message box doesn't work on here now, either.

PranK 01-10-2004 11:04 AM

Erwin - you rock!

/me clicks install

Christian

Zelda-King 01-10-2004 12:27 PM

Hmm, rather than explain this I'll just show it;

I downloaded the file shortly before this post. When I reply to myself thus;

Code:


       
Quote:

       
       
               
       
       

                       

                       
                               

                                        Originally Posted by King
                                       
                               

                               
Test

                       
                       

               

Test

I get;
Code:


       
Quote:

       
       
               
       
       

                       

                       
                               

                                        Originally Posted by King
                                       
                               

                               
Test

                       
                       

               


No reply shows. If I reply to that I get;
Code:


       
Quote:

       
       
               
       
       

                       

                       
                               

       
Quote:

       
       
               
       
       

                       

                       
                                Test
                       
                       

               


                       
                       

               


Again, no reply.
I don't have this problem on vbulletin.org so I'm going to try the installation a third time.

EDIT: No joy. Can anyone verify the updated file works for them?

FleaBag 01-10-2004 03:24 PM

A very handy addition, I never did install this for vB2, actually I did but ran into problems - hopefully no such problems here. :D

Nmidia 01-10-2004 04:11 PM

so far there have only been 3 hacks that worked first time for me, with no messing around. This is one of them:) It worked like a dream. Very nice function mate:)

Zelda-King 01-10-2004 05:23 PM

It did? I'll redownload the file.

EDIT: Still no good. Has this been confirmed working on RC2?

monstergamer 01-10-2004 05:29 PM

now this is really cool :D
thanx for making this and i well install later for now i well click the install button

Boofo 01-10-2004 05:44 PM

Quote:

Originally Posted by Zelda-King
It did? I'll redownload the file.

EDIT: Still no good. Has this been confirmed working on RC2?

Yes. I'm running it on RC2 with no problems (except the Delete this message button doesn't work yet).

M1th 01-10-2004 06:48 PM

Quote:

Originally Posted by Boofo
Yes. I'm running it on RC2 with no problems (except the Delete this message button doesn't work yet).

Very nice but, "Executed 25 queries (13 queries for uncached templates)"!! :D hehe

Might want to add the templates to the precached array. :)

Boofo 01-10-2004 07:24 PM

Quote:

Originally Posted by M1th
Very nice but, "Executed 25 queries (13 queries for uncached templates)"!! :D hehe

Might want to add the templates to the precached array. :)

Woahhh, I'm glad you caught that. I had 15 queries from uncached templates. Took it down to 16 from 31 here. Thanks! ;)

Erwin 01-10-2004 07:47 PM

Quote:

Originally Posted by Boofo
Woahhh, I'm glad you caught that. I had 15 queries from uncached templates. Took it down to 16 from 31 here. Thanks! ;)

Boofo, if you don't mind, can you post here the templates to be cached. ;) I can't believe I missed that. LOL! Also, regarding the delete button, I will look into fixing it. Thanks for pointing it out.

Erwin 01-10-2004 08:01 PM

I updated the ZIP file with the new templates to cache. :)

M1th 01-10-2004 08:03 PM

Quote:

Originally Posted by Erwin
I updated the ZIP file with the new templates to cache. :)

heh, was about to post a fix.. beat me to it. ;P

Boofo 01-10-2004 08:15 PM

Here you go, sir. ;)

Quote:


'pm_newpm',
'editor_clientscript'
,
'editor_jsoptions_font'
,
'editor_jsoptions_size'
,
'editor_smilie_wysiwyg'
,
'editor_smiliebox'
,
'editor_smiliebox_category'
,
'editor_smiliebox_row'
,
'editor_smiliebox_straggler'
,
'editor_smiliemenu_category'
,
'editor_smiliemenu_smilie'
,
'editor_toolbar_wysiwyg'
,
'newpost_disablesmiliesoption'
,
'newpost_quote'
,
'posticonbit'
,
'posticons'
,


Also, is there any way to add this:

&stripquote=1

to strip the extra quotes from the quick pm reply box?

Boofo 01-10-2004 09:11 PM

Erwin, you forgot to add:

Quote:

'editor_smiliebox_straggler',
to the templates to be cached. ;)

Zelda-King 01-10-2004 09:12 PM

1) 'posticons' in the new file has no , after it and that's giving me a parse error.
2) If I add the , it's OK until I go to read my messages, then I get "Fatal error: Call to undefined function: fetch_quote_username() in /domain/forums/private.php on line 1385".

EDIT: I got the last bit fixed by using a different PHP editing program. I still have my original problem though with reply text not being sent.

MGM 01-10-2004 10:12 PM

I loved the hack for vB2, ill be sure to use this one ;)

[high]* MGM clicks Install
[/high]

MGM out

albibak 01-10-2004 10:31 PM

Just a remark.
Erwin, in your instruction in the zip file, you forgot the ',' after 'posticons' in the file private.php ;) and it's the problem of Zelda_King if he does a copy-paste : result "parse error" :)

Thx for the hack

Erwin 01-11-2004 03:49 AM

Quote:

Originally Posted by Boofo
Yes. I'm running it on RC2 with no problems (except the Delete this message button doesn't work yet).

The Delete Button works now. :)

Just a note: The delete button has never worked in vB3 Gamma - it is a known vB3 Gamma bug. The fix is in the vB3 Tracker at vB.com. However, the delete button works in RC1 and 2. This issue brought me 1 hour of grief here at vB.org because we are still using Gamma here - I was trying my best to fix this here, and in the end, realized that the problem here was a Gamma bug and not due to the hack! :) The problem for RC1 and 2 has been fixed by me in any case.

Erwin 01-11-2004 03:52 AM

Update: Version 1.2
--------------------------------

1. Added the correct templates to be cached.
2. Fixed the Quick PM Reply form so that it works when WYSIWYG is fully on.
3. Fixed the Delete PM button bug.
4. Removed the Message Tracking checkbox option - we are back to Popup Windows. (I'm trying to keep the hack simple).


To update:
----------------

1. Revert pm_newpm template to default - we don't have to change this anymore.
2. Replace the PHP code in private.php
3. Edit pm_showpm template and move $quickpmreply to the very BOTTOM of the template.

Done! :)

PranK 01-11-2004 07:01 AM

Thanks Erwin! :)

[high]* PranK thanks Erwin
[/high]
^i love that thing!

Christian

SnowBot 01-11-2004 07:57 AM

Thanks for the update fella :)

[high]* SnowBot updates[/high]

albibak 01-11-2004 09:29 AM

Thx Erwin for the update :)

Zelda-King 01-11-2004 10:21 AM

Just to say since the last update, my problem with replies not showing is solved. The hack works fine. :)

Boofo 01-11-2004 12:37 PM

Quote:

Originally Posted by Erwin
Update: Version 1.2
--------------------------------

1. Added the correct templates to be cached.
2. Fixed the Quick PM Reply form so that it works when WYSIWYG is fully on.
3. Fixed the Delete PM button bug.
4. Removed the Message Tracking checkbox option - we are back to Popup Windows. (I'm trying to keep the hack simple).


To update:
----------------

1. Revert pm_newpm template to default - we don't have to change this anymore.
2. Replace the PHP code in private.php
3. Edit pm_showpm template and move $quickpmreply to the very BOTTOM of the template.

Done! :)

Thank you, sir. ;)

Kier did a little code a while back that makes the pop-up receipt window into a checkbox (like you had here before you changed it). I am using that. Is there anything I neeed to take out of this hack that will interfere with that now?

Also, any luck on getting rid of the extra quotes? ;)

Boofo 01-11-2004 06:28 PM

The delete this message box still doesn't work for me.

Zelda-King 01-11-2004 06:34 PM

Hmm, it reacts more but it takes me to the "Invalid Private Message specified. If you followed a valid link, please notify the webmaster" template and the message doesn't get deleted.

Boofo 01-11-2004 06:37 PM

It is working here, too, now. I forgot to move $quickpmreply to the bottom of the template. Erwin changed that in the new version and I didn't catch that until now. Sorry about that, Erwin. All is well here. ;)

Boofo 01-11-2004 06:38 PM

Quote:

Originally Posted by Zelda-King
Hmm, it reacts more but it takes me to the "Invalid Private Message specified. If you followed a valid link, please notify the webmaster" template and the message doesn't get deleted.

That was a bug in the Gamma. There is a fix for it on vb.com.

Boofo 01-12-2004 08:26 PM

Erwin, I think I found a bug in this hack. It only happens if you have the pm attachments hack installed. Whenever you reply to a message with the quick reply button, it adds all of the attachmnets you have in the pm area to the outgoing message. The regular reply button for the regular reply doesn't do this. Any way to fix this, sir? ;)

Zelda-King 01-12-2004 08:46 PM

Quote:

Originally Posted by Boofo
That was a bug in the Gamma. There is a fix for it on vb.com.

If this is a fixed Gamma bug then why am I seeing it in RC2?

EDIT: Forget all that. It works fine. I can delete messages. I'd just not clicked the checkbox that time. DOH!

Erwin 01-12-2004 11:21 PM

Quote:

Originally Posted by Boofo
Erwin, I think I found a bug in this hack. It only happens if you have the pm attachments hack installed. Whenever you reply to a message with the quick reply button, it adds all of the attachmnets you have in the pm area to the outgoing message. The regular reply button for the regular reply doesn't do this. Any way to fix this, sir? ;)

I can't fix a bug caused by another hack. :)


All times are GMT. The time now is 06:47 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.01427 seconds
  • Memory Usage 1,848KB
  • 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_php_printable
  • (19)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