|
|
Joined: Mar 2001
Posts: 145
Member
|
Member
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?
|
|
|
|
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: <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: <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
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
|
|
|
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.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,932
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|