Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Oct 2002
Posts: 105
ehm
Offline
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 105
When I delete one member's post, the number of post he/she did before won't go donw.
I have some user who send a lot of uselless post, just to get a better 'title'.
There is any way to control it? What I want is someting if the Admin delete the post, 1 is taken of the user's account too.

Sponsored Links
Joined: Feb 2003
Posts: 196
Member
Member
Offline
Joined: Feb 2003
Posts: 196
easy just add the following command in your SQL COMMAND in the admin. Thanks to Omegatron for this command. This command will only reduce or increase the post. But I am sure you wont keep track of it everytime a member puts in useless post for the sake of his post count. If I were you I would just give him a warning or ban him or something. Anyway here is the command:



UPDATE w3t_users SET U_Totalposts='titlegoeshere' WHERE U_Username='usernamegoeshere'


Joined: Oct 2002
Posts: 105
ehm
Offline
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 105
Salin,
The command you post is perfect for the second part of my problem and I will use it. Thank you. But still I have the first part: How can I re-count the number of posts that user has?
What's happen is 2 or 3 times a week I check all 'free' areas of my Forum, and delete those posts who are there only for add up the numbers in title.
There is more than one user, and more then one post. so will be hard to keep track of all.
I was thinking some bacth routine who gets all users, count all posts again, and give the correct titles to the users.
Too hard? I don't know nothing about MySQL
But I thank you for the command. That at least let me do it mannually for one expecific user, and if I can't find a better way, I will count posts mannually too.

Joined: Aug 2002
Posts: 22
Newbie
Newbie
Offline
Joined: Aug 2002
Posts: 22
This should help you count the posts of individual users after you delete the offending posts:

SELECT COUNT(*)
FROM w3t_Posts
WHERE B_PosterId = 'member#'

It should give you an accurate count of posts from that user in the db. It won't help with mass changes but will stop you from having to count the posts manually.

Bill

Joined: Oct 2002
Posts: 105
ehm
Offline
Journeyman
Journeyman
Offline
Joined: Oct 2002
Posts: 105
Thank Bill.
That command helps

Elton

Sponsored Links

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 20221218)