Previous Thread
Next Thread
Print Thread
Rate Thread
#279243 09/03/2004 12:36 AM
Joined: Mar 2001
Posts: 145
Member
Member
Offline
Joined: Mar 2001
Posts: 145
I would think this would be easy for someone who knows what they're doing (which would NOT be me).

Anyway, I want to totally disable post counts. I don't mean just not displaying them - I mean not counting them at all.

I want to blank all my users post counts, and then prevent them from going up from zero any more. I took a look around, and didn't see this.

Anyone?

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
First the query to zero all of them out:

UPDATE w3t_Users
SET U_TotalPosts = 0


Then disable the code which updates in addpost.php

Find this:
Code
<br />   // --------------------------------------<br />   // Now update some stuff in their profile<br />      $query = "<br />        UPDATE {$config['tbprefix']}Users<br />        SET    U_Totalposts = U_Totalposts + 1,<br />               U_Laston     = '$date',<br />               U_Title      = '$UserTitle_q'<br />        WHERE  U_Number   = '{$user['U_Number']}'<br />      ";<br />      $dbh -> do_query($query);<br />   }<br />


Change to this:
Code
<br />   // --------------------------------------<br />   // Now update some stuff in their profile<br />      $query = "<br />        UPDATE {$config['tbprefix']}Users<br />        SET    U_Laston     = '$date',<br />               U_Title      = '$UserTitle_q'<br />        WHERE  U_Number   = '{$user['U_Number']}'<br />      ";<br />      $dbh -> do_query($query);<br />   }<br />

Joined: Mar 2001
Posts: 145
Member
Member
Offline
Joined: Mar 2001
Posts: 145
As usual, Josh is right on it. Danke^2

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
See - don't you miss me? LOL


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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
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,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)