Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Delete PM sent before user reads it Details »»
Delete PM sent before user reads it
Version: 1.0, by pie pie is offline
Developer Last Online: Dec 2005 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 03-23-2005 Last Update: 05-26-2005 Installs: 24
DB Changes
 
No support by the author.

Update:
27th May 2005 -
Counters update on deletion. PM is now authenticated to user.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 03-26-2005, 06:27 AM
pie pie is offline
 
Join Date: May 2003
Location: Devon, England
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Can you please put this in a txt file so others can download it and have it in case they ever need to re-install it?
Sure.
Reply With Quote
  #13  
Old 03-26-2005, 06:35 AM
pie pie is offline
 
Join Date: May 2003
Location: Devon, England
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
3 installs, and none to tell there is a major bug in it... funny how guys click easily.. lol

good hack PIE... but your "WHERE" in the queries are sticked with the rest, so the queries are not correct...

and why this first query about the pmreceipt ?! it's not used elsewhere in this hack...
Yes it is... its where it displays Delete Unread PM (...?)

And what do you not like about my query? I have to admit i just copied the code from PHPMYADMIN as I was being lazy.

Thanks everyone by the way for the kind words.

Quote:
Can you please put this in a txt file so others can download it andhave it in case they ever need to re-install it?
DONE!!
Reply With Quote
  #14  
Old 03-26-2005, 09:37 AM
nexialys
Guest
 
Posts: n/a
Default

@pie... it's not i don't like the query, but it's badly written:
PHP Code:
$pmquery=$DB_site->query("SELECT* FROM " TABLE_PREFIX "pmWHEREpmid='$pm'"); 
have to be
PHP Code:
$pmquery=$DB_site->query("SELECT * FROM " TABLE_PREFIX "pm WHERE pmid='$pm'"); 
that's all... they are all the same, missing some spaces between elements... easy to see anyway, the code will not work if you don't add the spaces...
Reply With Quote
  #15  
Old 03-26-2005, 09:57 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
that's all... they are all the same, missing some spaces between elements... easy to see anyway, the code will not work if you don't add the spaces...
I assume this was a WYSIWIG issue of some kind, as the text file has the queries written fine..
Reply With Quote
  #16  
Old 03-26-2005, 11:55 AM
pie pie is offline
 
Join Date: May 2003
Location: Devon, England
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by nexialys
@pie... it's not i don't like the query, but it's badly written:
PHP Code:
$pmquery=$DB_site->query("SELECT* FROM " TABLE_PREFIX "pmWHEREpmid='$pm'"); 
have to be
PHP Code:
$pmquery=$DB_site->query("SELECT * FROM " TABLE_PREFIX "pm WHERE pmid='$pm'"); 
that's all... they are all the same, missing some spaces between elements... easy to see anyway, the code will not work if you don't add the spaces...
Updated
Reply With Quote
  #17  
Old 03-26-2005, 12:35 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would there be a way to show us exactky what edits need to be made to the pm_receiptsbit template for those that have been altered from the original instead of just replacing the template?
Reply With Quote
  #18  
Old 03-27-2005, 10:34 PM
pie pie is offline
 
Join Date: May 2003
Location: Devon, England
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will sort that A.S.A.P.
Reply With Quote
  #19  
Old 03-27-2005, 10:37 PM
pie pie is offline
 
Join Date: May 2003
Location: Devon, England
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated
Reply With Quote
  #20  
Old 03-28-2005, 06:02 PM
why-not why-not is offline
 
Join Date: Feb 2004
Posts: 218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How about adding a userid to the query! Sure it would be difficult to know who has unread PM(s), but all one has to do is start sending requests with PM ids and they can delete all unread PM(s) even ones that are not theirs! Then you should also check the request, because allowing what you allow, can end up with anyone reading any table they want or even delete your whole database! Nice idea, but it needs to be made secure!

Sonia
Reply With Quote
  #21  
Old 03-28-2005, 06:09 PM
hate's Avatar
hate hate is offline
 
Join Date: Mar 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a nice idea, but the trouble is to many have email when pm, so if they get a email saying so and so pmed them, they will go to their pm box and find nothing.

That is the only draw back stoping me from using it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:49 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.06505 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete