Previous Thread
Next Thread
Print Thread
Rate Thread
#228409 11/26/2002 10:11 PM
Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15
Greetings..

As currently set up..when we delete a user all the posts they have made are eliminated.

Is there a way to simple delete the user from the database..but keep their posts

In this case the person I deleted did not have a lot of big contentful posts and so it really has npt thrown the conversation off ..
Hopwever I can see where deleting all posts would throw the conversation off.

In addition if we want a record of what went on....when we delete a user its gone.


Best
Renee

Sponsored Links
#228410 11/26/2002 11:58 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Right now... when you delete a user... their posts do not go away.

The display name should stay....it just will no longer be clickable to a profile.

There is a separate function under "Post Management" which lets you delete all posts by users.

So normal threads function should function the way you describe.

Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15
Hmmm Josh that would make sense.

Here is what I did:
I went to show/edit users...then the username and clicked delete this user.

All this users posts have disappeared entirely

However if I do a search by username I can get a list of the posts this user had made...I cannot actually get to these either by clicking..nor by looking inthethread...the posts are not there

Thankx Renee

#228412 11/27/2002 4:01 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hmmmm....

That might be a database issue.

I'm not sure.

You could try closing the forums, then do the optimize command from the Admin menu... see if that helps.

If not, you might need to run the SQL command REPAIR TABLE w3t_Posts and perhaps w3t_Users

I won't pretend I know. If it were me... I'd probably try it.... but I would always backup first.

But since you can see the posts, and they aren't appearing... I'm thinking it's a database thing that somehow the delete went wrong and the usernumbers are confused.

Maybe a bug... I don't know.

I'll defer.... maybe one of the Daves or Rick will have an idea.

#228413 11/27/2002 12:29 PM
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
It's possible your placeholder user isn't there. Try running the following SQL query:

SELECT U_Username FROM w3t_Users WHERE U_Number='1'

That should come up with **DONOTDELETE**

If not then try running

SELECT U_Number FROM w3t_Users WHERE U_Username='**DONOTDELETE**'


UBB.threads Developer
Sponsored Links
Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15
tHE FIRST GOT:

Your SQL-query has been executed successfully


SQL-query :
SELECT U_Username FROM w3t_Users WHERE U_Number='1' LIMIT 0, 30

tHE SECOND:

ur SQL-query has been executed successfully
SQL-query :
SELECT U_Number FROM w3t_Users WHERE U_Username='**DONOTDELETE**' LIMIT 0, 30

#228415 11/27/2002 4:05 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Those are the queries...

I think he'll want to know what results they returned.

Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15
LOL Josh

I know

what I think this means is NO nothing was found ;-)

#228417 11/27/2002 6:09 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Try this query:

SELECT U_Number,U_Username FROM w3t_Users WHERE U_Number=1 OR U_Username LIKE '%DONOTDELETE%'

If there is still no result, that probably means that you need to create a user#1. U_Number would be 1, and U_Username would be '**DONOTDELETE**'. I'm not sure if the other columns matter, so you should probably wait for Rick to explain what to do.

By the way, which version of UBB.threads are you using?

Last edited by Dave_L; 11/27/2002 6:15 PM.
Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15
Ran it and again no results come up ...



Sponsored Links
#228419 11/27/2002 6:59 PM
Joined: Apr 2002
Posts: 1,768
Addict
Addict
Offline
Joined: Apr 2002
Posts: 1,768
Which version of UBB.threads are you using?

Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15


Its 6.1.1

#228421 11/27/2002 11:33 PM
Joined: Nov 2002
Posts: 15
Newbie
Newbie
Offline
Joined: Nov 2002
Posts: 15
Greetings!

Ok all fixed...
I ran these two sql commands:

First:

INSERT INTO w3t_Users (U_Username,U_Groups) VALUES ('**DONOTDELETE**','-4-')

Then:

UPDATE w3t_Users SET U_Number='1' WHERE U_Username='**DONOTDELETE**'

Thanx again
Renee


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)