PHP Web Host - Quality Web Hosting For All PHP Applications $35/month $250/year (Unlimited) - $25/month - 200,000 impressions - Your Ad Could be Here - Click For Details
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
usgroup1
New Member
New Member


Joined: Aug 21, 2005
Posts: 2

PostPosted: Sun Aug 21, 2005 2:51 pm Reply with quote Back to top

(sorry for my english)

some of the forums post got deleted so I restored db from the backup. I restored these tables from the backup and restored forums posts successfully.

nuke_bbposts
nuke_bbposts_text
nuke_bbtopics
nuke_bbvote_desc
nuke_bbvote_results
nuke_bbvote_voters

I did want to keep my new users in nuke_users so I just left it unchanged but now users post count have been shown incorrectly. I think it's because it is in user_posts in nuke_users table. how can I resync this filed to the real number of user posts. maybe it can be done with a query or maybe a script. is there any ..?
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Sun Aug 21, 2005 5:13 pm Reply with quote Back to top

Not that i know of,if you delete posts then you can only restore it when you have a complete backup..
But that means you have to replace all related to the forums..
Otherwise you see member A has 23 posts but nowhere to be found,or the other way around.
Thats the risk...
Or alter the members post manual...but that can be fun if you have a few thousand posts... Twisted Evil
View user's profile Send private message
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 14924
Location: Kansas

PostPosted: Sun Aug 21, 2005 9:17 pm Reply with quote Back to top

usgroup1, I put this together for you. Make sure that you backup your nuke_users table! Even though I tested this and it seemed to work for me, I take no responsibility in any disasters :LOL:

Use phpMyAdmin and execute this query exactly as written, in the SQL window
Code:
CREATE temporary table tmppostcount as (select poster_id, count(poster_id) count from nuke_bbposts group by poster_id);

UPDATE nuke_users u, tmppostcount t SET u.user_posts=t.count
WHERE u.user_id = t.poster_id
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
usgroup1
New Member
New Member


Joined: Aug 21, 2005
Posts: 2

PostPosted: Mon Aug 22, 2005 12:50 am Reply with quote Back to top

it worked perfect. thank you Raven
View user's profile Send private message
persona_non_grata



Joined:
Posts: 0

PostPosted: Mon Aug 22, 2005 3:35 am Reply with quote Back to top

nice fix raven....this should be a sticky one...
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum