Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
2 registered (Gizmo, SteveS), 38 Guests and 14 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 06/07/07
Posts: 4
Top Posters (30 Days)
Ruben 50
DennyP 24
Gizmo 23
Dunny 15
SteveS 13
AllenAyres 12
dbremer 10
SD 10
drkknght00 9
doug 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Topic Options
#36666 - 12/28/02 03:02 AM How do I increase a members post count.
Anonymous
Unregistered

I imported 12000 members from my old Classic board and it seem some did not move over.

They have had to register again but lost their post count.

Can I bump that figure somehow?

Regards,
Tony S.
www.chevyforums.org
"The largest online Chevrolet enthusiast community in the world"
Top
#36667 - 12/28/02 03:09 AM Re: How do I increase a members post count.
Anonymous
Unregistered

UPDATE w3t_Users SET U_Totalposts = XXX WHERE U_Username = 'WHOEVER'

where:
XXX = total number of posts
WHOEVER = user's display name

or:

UPDATE w3t_Users SET U_Totalposts = U_Totalposts + YYY WHERE U_Username = 'WHOEVER'

where:
YYY = number to add to total number of posts

Don't forget the WHERE clause, or you'll change everyone's post count. [Wink]
Top
#36668 - 12/27/02 04:45 PM Re: How do I increase a members post count.
Anonymous
Unregistered

Thanks Dave..

Worked like a charm. [Big Grin]

Regards,
Tony S.
www.chevyforums.org
"The largest online Chevrolet enthusiast community in the world"
Top
#36669 - 12/28/02 01:50 AM Re: How do I increase a members post count.
Anonymous
Unregistered

Under the catagory of people are never satisfied.


How would I modify the registration date?

Regards,
Tony S.
www.chevyforums.org
"The largest online Chevrolet enthusiast community in the world"
Top
#36670 - 12/28/02 03:51 AM Re: How do I increase a members post count.
Anonymous
Unregistered

The query is simple

UPDATE w3t_Users
SET U_Registered = 'xxxxx'
WHERE U_Username = 'yyyyy'

Now the trick is that the xxxxx (date) above needs to be in a numerical epoch format.

epoch format is basically the number of seconds since Jan 1, 1970 GMT.

Because I've had to do some fooling with threads dates and times... I wrote a little script which will convert a real date and time to epoch format...... and convert an epoch format to a human readable format.

You can use it at http://www.joshuapettit.com/time.php

Hope that helps. [Wink]

Josh
Measurection.com Admin | ThreadsDev.com Moderator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire.
Top
#36671 - 12/28/02 04:09 AM Re: How do I increase a members post count.
Anonymous
Unregistered

I've used this little script for a while when I've needed to modify things.

If you want it for yourself, I finally posted it here at threadsdev.com. [Smile]

Josh
Measurection.com Admin | ThreadsDev.com Moderator
Register to see my How To/Site Help Library Forum at ThreadsDev.com.
My threads 'tweaking' abilities are for hire.
Top
#36672 - 12/28/02 05:48 AM Re: How do I increase a members post count.
Anonymous
Unregistered

Or you could do it this way:

UPDATE w3t_Users
SET U_Registered=UNIX_TIMESTAMP('2002-11-27 23:35:00')
WHERE U_Username='whomever'

UPDATE w3t_Users
SET U_Registered=UNIX_TIMESTAMP('2002-11-27')
WHERE U_Username='whomever'

The second example sets the time of day to 00:00:00.
Top
#36673 - 01/04/03 12:42 AM Re: How do I increase a members post count.
Anonymous
Unregistered

I had the same problem crossgrading. i had hundreds of users just 'disappear'.

I had them re-register and updated their post totals and reg date.

// Change post totals
UPDATE w3t_Users SET U_Totalposts='###' WHERE U_Username='username'

// Change registration date
UPDATE w3t_Users SET U_Registered=UNIX_TIMESTAMP('2002-12-25 12:00:00') WHERE U_Username='username'

BUT

If you are going to upgrade to 6.2 BEWARE. The username is no longer part of the search processes, it's been changed to a posterid number instead.

So that means that any posts that were created by your 'lost users' before they re-registered, will now show as Anonymous (or blank) when you upgrade.

To avoid this, you will need to do a manual update for each user that re-registered.

First you will need to find out what the user number (U_Number) is for your re-registered user in the w3t_users table.

Then you will do this query...

UPDATE w3t_Posts SET B_PosterID='usernumber' WHERE B_Username='username'

I'm still trying to figure out why those 'lost users' got lost in the first place. I've spent so many hours trying to fix the 'flawless conversion' [Confused]

GOOD LUCK
Top



Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Temporary Password email not being received
by
05/24/12 10:02 PM
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Forum Stats
10492 Members
36 Forums
33842 Topics
181709 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image