Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
Dump private messages and letters of visitors and reset the counters Details »»
Dump private messages and letters of visitors and reset the counters
Version: 1.00, by w-elbalad.com w-elbalad.com is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: Private Messages Enhancements - Version: 4.0.x Rating:
Released: 01-28-2010 Last Update: Never Installs: 24
DB Changes
Re-useable Code Translations  
No support by the author.


Given our need to unload the stored private messages we have for all groups with messages that the number of visitors and a large accumulated for a period of up to four years and more which is the span of the Forum and put pressure on the tables and a forum for memberships of close to 70 thousand member

Needed for the work of this product is very simple and effective

Away from the plant orders that make it difficult for some

Installation

Only the highest product you annex

And will delete all your messages (outgoing + incoming) and letters of visitors and reset counters

Then delete the product from the Control Panel Forum and keep with you for future use

Suitable for copying 3.6.x + 3.7.x + 3.8.x +4.0.x</SPAN>
Annexes 3 products
First dump private messages and visitor messages
The second dump Visitor Messages only
Third dump private messages only

The process of product 3azoob

Download Now

File Type: xml empty pm vis.xml (890 Bytes, 115 views)
File Type: xml empty vis msg.xml (699 Bytes, 80 views)
File Type: xml empty pm.xml (644 Bytes, 135 views)

Show Your Support

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

Comments
  #2  
Old 01-29-2010, 01:31 PM
movslow movslow is offline
 
Join Date: Aug 2008
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What counters does it reset?
Reply With Quote
  #3  
Old 01-29-2010, 01:40 PM
w-elbalad.com's Avatar
w-elbalad.com w-elbalad.com is offline
 
Join Date: Aug 2009
Location: EgYpT
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by movslow View Post
What counters does it reset?
this XXXXXXXX/private.php?do=showpm&pmid=290
and Notifications of messages
Reply With Quote
  #4  
Old 06-30-2010, 08:03 PM
vBRiP vBRiP is offline
 
Join Date: Feb 2010
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wow thanks, this is great, install
Reply With Quote
  #5  
Old 11-25-2010, 09:49 PM
Binoy Binoy is offline
 
Join Date: Mar 2006
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i installed the product.. but where in ACP can i find the options to run the product?
Reply With Quote
  #6  
Old 11-27-2010, 01:53 AM
w-elbalad.com's Avatar
w-elbalad.com w-elbalad.com is offline
 
Join Date: Aug 2009
Location: EgYpT
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Binoy View Post
i installed the product.. but where in ACP can i find the options to run the product?
Just install it
and product will delete msg
after u install it u can delete product
Reply With Quote
  #7  
Old 11-28-2010, 12:41 PM
BiZiMDiYaR BiZiMDiYaR is offline
 
Join Date: Aug 2006
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

would deleting the PM's make much difference.. ? last I deleted them but I didn't see much difference... it think the PM's are quite small...
Reply With Quote
  #8  
Old 11-30-2011, 08:08 PM
top dogs 360 top dogs 360 is offline
 
Join Date: Jul 2010
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is a quick fix then to clean out messages then remove and save for later use?
Reply With Quote
  #9  
Old 04-27-2012, 06:38 AM
MikeF MikeF is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

empty pm vis.xml doesn't have the table prefix for PM's I haven't checked the others yet. Could've just posted the SQL query Thank you though very much.
Reply With Quote
  #10  
Old 04-27-2012, 06:53 AM
MikeF MikeF is offline
 
Join Date: Jan 2006
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Problem: Private messages do not get deleted when a table prefix is used for the database.
Solution: The code has been updated to include this data. I have performed this update without permission, so w-elbalad.com can do whatever he wants with it. Update the code in your XML file or download my new one.

Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="pm" active="1">
	<title>Empty PMs and VMs</title>
<description>Empty PMs and VMs by installing. Original w-elbalad.com. 1.1 bugfix by Windows7Forums.com</description>
	<version>1.1</version>
	<codes>
		<code version="1">
			<installcode><![CDATA[$db->hide_errors();
	$db->query_write("TRUNCATE " . TABLE_PREFIX . "pm;");
	$db->query_write("TRUNCATE " . TABLE_PREFIX . "pmreceipt;");
	$db->query_write("TRUNCATE " . TABLE_PREFIX . "pmtext;");
	$db->query_write("TRUNCATE " . TABLE_PREFIX . "visitormessage;");
	$db->query_write("TRUNCATE " . TABLE_PREFIX . "visitormessage_hash;");
	$db->query_write("UPDATE " . TABLE_PREFIX . "user SET pmtotal = '0', pmunread = '0';");
	$db->query_write("UPDATE " . TABLE_PREFIX . "user SET vmunreadcount = '0', vmmoderatedcount = '0';");
	$db->errno = 0;]]></installcode>
			<uninstallcode />
		</code>
	</codes>
	<templates>
	</templates>
	<plugins>
	</plugins>
	<phrases>
	</phrases>
	<options>
	</options>
</product>
Problem: I'd like to run it as a SQL Query from AdminCP
Solution:

Run each line separately. Remember, you can only run one line queries from AdminCP SQL. Replace prefix_ with your database prefix, or nothing at all, depending on if you are using one.

TRUNCATE `prefix_pm`;
TRUNCATE `prefix_pmtext`;
TRUNCATE `prefix_pmreceipt`;
TRUNCATE `prefix_visitormessage_hash`;
TRUNCATE `prefix_visitormessage`;
UPDATE `prefix_user` SET `pmtotal` = 0, `pmunread` = 0;
UPDATE `prefix_user` SET `vmunreadcount` = 0, `vmmoderatedcount` = 0;

Consider using phpMyAdmin or Navicat for Windows as it is much easier and you can run them all from there.

This is Mike Fara from Windows 7 Forums. I hope that this has resolved the issue for someone other than myself using a forum database prefix Take care, and thanks for the excellent script.
Attached Files
File Type: xml mike_empty-pmvm.xml (1.0 KB, 17 views)
Reply With Quote
Reply

Thread Tools

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:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05842 seconds
  • Memory Usage 2,313KB
  • Queries Executed 24 (?)
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
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete