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 06-15-2002 05:19 AM

Mmm...

Let me look into it now...

Erwin 06-15-2002 05:19 AM

It works fine on my forums... but my private.php is very modified...

Boofo 06-15-2002 05:21 AM

I can pm you my file if you need to look at it.

Quote:

Originally posted by Erwin
It works fine on my forums... but my private.php is very modified...

Boofo 06-15-2002 05:27 AM

There was a similar problem with the Quick reply Box that would give you a forum specification error (errorid). Could that also be what is going on here? :)

Erwin 06-15-2002 05:30 AM

Okay, I've updated the text file.

Clear your browser cache (delete all files in your browser's temporary folder), and download the new text file.

The difference:

Find this code in private.php

PHP Code:

if ($HTTP_POST_VARS['action']=="dosend") { 

Underneath, add this:

PHP Code:

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

You need to make sure you copy the WHOLE new template across as well. Not just the new checkboxes. This is because I have added this new line in the template HTML code:

Code:

<input type="hidden" name="privatemessageid" value="$privatemessageid">
You need this for the delete function to work.

This needs to be in between the form tags. Just use the WHOLE of the new template and replace the whole of your old one.

It should work now. :)

Boofo 06-15-2002 05:44 AM

That didn't chnage anything here. I still get the same error message when trying to delete a message when sending the reply. :)

Erwin 06-15-2002 06:13 AM

Did you copy the whole template across and replace the old template changes? Did you make sure you have the privatemessageid variable as hidden included?

Make sure you have this:

Code:

<input type="hidden" name="privatemessageid" value="$privatemessageid">
in your privatemsg template in the quick pm reply box form - use the template that I provided.

It does work - trust me. :) You just need to give the delete function the private message id.

Boofo 06-15-2002 06:27 AM

You caught me. No, I didn't copy the whole template. The reason is because the template didn't match vBulletins setup all the way and I had to play with it quite a while last time to get it to look right. If you want the code for my fixed box, let me know and I'll PM it to you. What happened was, in the first version of the quick pm reply box, that line you wanted me to add this time said <input type="hidden" name="previewmessageid" value="$privatemessageid"> instead of what it is now. Once I took that old line out and put the new one ine, then it worked fine. As you can see they look very close when you're going through the code. :) It works great here. Thanks!

BTW you had a preview button in your picture in the second post. Any way we can add that to this? :) Thanks again and sorry for the misunderstanding. (we don't need the old preview message id code in there right?)

Quote:

Originally posted by Erwin
Did you copy the whole template across and replace the old template changes? Did you make sure you have the privatemessageid variable as hidden included?

Make sure you have this:

Code:

<input type="hidden" name="privatemessageid" value="$privatemessageid">
in your privatemsg template in the quick pm reply box form - use the template that I provided.

It does work - trust me. :) You just need to give the delete function the private message id.


Erwin 06-15-2002 12:26 PM

The previewmessageid is for the preview message - different kettle of fish.

The Preview PM hack is located here - just do a search for it. It works well with my hack too.

Glad to know the hack is working! :)

Jawelin 06-15-2002 02:11 PM

Quote:

Originally posted by Erwin
Okay, Jawelin, I'll do it just for you... hang on while I add those things you suggested...
Thank you very much for this dedication... :D
I'll apply it to my files... Thanks again.


All times are GMT. The time now is 04:10 AM.

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.01255 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (3)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