Welcome, Guest. Please Login or Register.
September 29, 2024, 04:24:13 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  General Category  |  Feedback  |  Post count « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Post count  (Read 1924 times)
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Post count
« on: March 30, 2003, 06:44:18 PM »
Reply with quote

If you delete your own posts from a non-counting board (like the test forum here) it lowers your post count for the counting boards correspondingly! So I had 781 posts earlier, but deleting three of my own tests has reduced me to 778...

I suppose I could report this via the bug tracker, but:

1. I've just been there!
2. I'm not sure if it's a bug proper or a necessary evil!

Anyone care to comment?
Logged

Spaceman-Spiff
Mod Team
YaBB God
*****
Posts: 3689


My $txt[228]

Re:Post count
« Reply #1 on: March 30, 2003, 07:43:46 PM »
Reply with quote

yes, it is a bug, tested it on cbeta
Logged

   My mods, ysePak, codes, tutorials
    Support question IMs = bad.
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Post count
« Reply #2 on: March 30, 2003, 08:21:50 PM »
Reply with quote

Quote from: Spaceman-Spiff on March 30, 2003, 07:43:46 PM
yes, it is a bug, tested it on cbeta

Assuming that means you've *just* tested it and didn't know about it already, I've just submitted it to the bug tracker (yes, that was me, not 'nobody', but I didn't log in again first and it didn't 'remember' me from earlier). My apologies if you're trying to tell me that it was already a known issue!
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Post count
« Reply #3 on: March 30, 2003, 09:03:21 PM »
Reply with quote

The problem is that ModifyMessage doesn't take *anything* into account. (>:( stupid thing!)

I fixed this, imho the best way, by just deleting ModifyMessage.php and making Post() do all the work.  It also does Polls, chops, and even blends.  Plus, the ;title=Start+New+Thread business is gone too. ;D

However, it's a bit more difficult to do this in the current 1.5.1.....

-[Unknown]
Logged
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Post count
« Reply #4 on: March 30, 2003, 11:13:55 PM »
Reply with quote

http://sourceforge.net/tracker/index.php?func=detail&aid=712321&group_id=57105&atid=482971
Logged

Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Post count
« Reply #5 on: March 30, 2003, 11:35:57 PM »
Reply with quote

It's not actually a big deal as far as I'm concerned (after a moment of panic when I started to wonder if some of my other posts had been censored!) but, since it appeared to be an undiscovered bug and had the potential to upset someone, I thought you'd like to know...

It also almost certainly explains how both Risto and I ended up with mysteriously negative post counts (fixed through phpMyAdmin before we went 'live') while we were setting up and testing Pixelparity! ::)
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Post count
« Reply #6 on: March 30, 2003, 11:39:48 PM »
Reply with quote

Fixed.

I've fixed a ton of things like this in my secret project, by way of redoing the methodology.... I think any more like this can just be left in 1.5.1....

-[Unknown]
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:Post count
« Reply #7 on: May 14, 2003, 11:23:43 PM »
Reply with quote

So this *was* fixed, but appears to be a problem again in both my 1.5.2 boards! :-\
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Post count
« Reply #8 on: May 14, 2003, 11:52:33 PM »
Reply with quote

Make sure you have this in ModifyMessage.php:

      if ($row['ID_MEMBER'] != '-1' && $row['count'] != 1)
         $request = mysql_query("UPDATE {$db_prefix}members SET posts=posts-1 WHERE (ID_MEMBER=$row[ID_MEMBER] && posts > 0) $doLimitOne;") or database_error(__FILE__, __LINE__);


(don't worry.... illogically enough (count == 1) means it *doesn't* count.)

-[Unknown]
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  General Category  |  Feedback  |  Post count « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.025 seconds with 21 queries.