vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Mass marking messages as read (https://vborg.vbsupport.ru/showthread.php?t=312183)

CaptainAwesome 06-16-2014 05:02 AM

Mass marking messages as read
 
I did a import from phpbb to vb4 and now i have all my messages showing as unread, and i have a lot of them. I'm probably just going to delete all my old messages and start clean but i was wondering if there was a way i could mark everything as read for all the members. I've identified the column in the pm database, and see 3 values, 0, 1 and 2. What would i need to change that column to so that the messages show as having been read?

I also seem to have double imported the messages.

Is it possible to export the database into something like excel, adjust it accordingly, delete the old info on the server and replace it with what i have?

Dave 06-16-2014 10:00 AM

What kind of messages are we talking about, threads, posts, private messages?

CaptainAwesome 06-16-2014 06:36 PM

Sorry, PM's.

Dave 06-16-2014 07:26 PM

PM is read is defined as 1, so the following query will set all PM's to read:

PHP Code:

UPDATE pm SET messageread 

Be sure to include your table prefix, in case you have one.

--

I'm not sure about the duplicate PM's. You will have to alter the pm, pmreceipt and pmtext tables to delete the duplicates.

tbworld 06-16-2014 10:19 PM

Quote:

Originally Posted by CaptainAwesome (Post 2502136)
Is it possible to export the database into something like excel, adjust it accordingly, delete the old info on the server and replace it with what i have?

There are plenty of tools that can manipulate a database, "Sqlyog" for an example.
http://en.wikipedia.org/wiki/Compari...database_tools

I am concerned about the duplication, and what else might be duplicated, besides the PM's.

CaptainAwesome 06-16-2014 10:50 PM

I'm not seeing the duplicate messages in my own account, but the person followed up with the following message:

Sorry, I meant on the left side of the screen, where it reads: "My Messages", it shows;

inbox
sent items
imported saved received messages
imported saved received messages
imported saved sent messages
imported saved sent messages

I'm not seeing that in my account.

I had tried to halt the transfer and restart it, and i guess thats where the problem came from. I'm not seeing anything else duplicated....well, i'm not seeing anything duplicated.


All times are GMT. The time now is 07:18 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.01143 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete