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)

Jawelin 06-12-2002 03:56 PM

Very very nice hack.

Something I always lack in the PM page was the 'delete original
on reply' flag.
Is it possible to add a checkbox to automatically delete the incoming message when submitting the quick-reply ?

Thank you very much
Bye

Erwin 06-13-2002 12:51 AM

I'll work on it - that shouldn't be too hard to do.

Erwin 06-13-2002 02:08 AM

Mmm... a simple template edit won't do that. The 2 action variables are different. One is dosend, the other is dodelete - this will take further hacking of private.php to combine the 2 variables.

Jawelin 06-13-2002 08:30 AM

Quote:

Originally posted by Erwin
Mmm... a simple template edit won't do that. The 2 action variables are different. One is dosend, the other is dodelete - this will take further hacking of private.php to combine the 2 variables.
Yes, of course.
I asked to you as the original author of the hack... :D

I definetively think the following code :
PHP Code:

  $privatemessageid=verifyid("privatemessage",$privatemessageid);
  
$DB_site->query("DELETE FROM privatemessage 
                  WHERE privatemessageid=
$privatemessageid 
                  AND userid=
$bbuserinfo[userid]"); 

should be added somewhere in the "dosend" section of private.php, managed in an if-clause by a check-box variable in privmsg template...

I think this php mod should make it better called 'hack' ... instead of a template modification, with the addition of more than a row to the script...

:knockedout:

Thanks again.

Jawelin 06-13-2002 09:15 AM

Just an addon.
What will be the behavior of this quick reply about the message tracking and the outbox ?
I mean, are they managed as defaults or not ?

What about adding, beside 'delete' option, even the checkboxes for :
- Signature
- Save a copy
- Message tracking
(defaulted, as in QuickReplyBox hack, upon the user's preferences) ???

Thanks

freakyshiat 06-14-2002 12:27 AM

Quote:

Originally posted by TheCaver

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

i am gettin that too, do u know what it is?

Jawelin 06-14-2002 06:21 AM

Quote:

Originally posted by Fazle

i am gettin that too, do u know what it is?

Wrong colspan number; set it to '6' instead '5' ...
Bye

Erwin 06-15-2002 02:28 AM

Okay, Jawelin, I'll do it just for you... hang on while I add those things you suggested...

Erwin 06-15-2002 03:36 AM

Okay, the hack is updated.

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.

Also fixed up the colspan issue, colors etc.

Refer to the 1st post for the updated text file, and the 2nd post for the updated screenshot.

Boofo 06-15-2002 04:41 AM

I ran into a problem. I had two instances of the specialcharacters line in private.php. If I put the code after one of them, I got an error if I chose to delete the message after sending. It said I didn't specify a message. If I put it under the other one, I didn't get the error, but the message was not deleted. Also, in your oicture (2nd post), There is a preview button under the box. I don't have that on mine. Would there be any way to add that? :)

Quote:

Originally posted by Erwin
Okay, the hack is updated.


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.

Also fixed up the colspan issue, colors etc.

Refer to the 1st post for the updated text file, and the 2nd post for the updated screenshot.



All times are GMT. The time now is 08:01 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.01541 seconds
  • Memory Usage 1,745KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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