Customizing SMF > Modifications and Packages

Admin Toolbox

<< < (4/5) > >>

Sapozhnik:
Thanks a lot,
I'll check the mode some times yet and describe in this topic

Sapozhnik:
User has:
Summary  70 messages
==================
1st board - 4 pcs (child board, count off)
2nd board - 5 pcs (child board, count off)
3rd board - 61 pcs (child board, count off)
After recounting, I see the quantity 32 messages in the his profile

PHP Version 5.3.10-pl0-gentoo
SQL    5.1.61-log

 ???

Updated:
Possibly... If user doesn't have any posts in the board with count, counter doesn't change.
Early, the counter in these boards was enable, then I disabled counter.

Spuds:
I'm trying to understand what you are doing ...

So a user had 70 posts in 3 boards ... you went in and disabled the post count in those boards and it dropped to 32 and you were expecting it to be zero?  Are you sure they only had 70 posts in total to begin with?  ... You can try show users posts and see or do it via phpmyadmin.

One thing to try  .... in AdminToolbox.php, at around line 175


--- Code: (find) ---SELECT m.id_member, COUNT(m.id_member) AS posts
--- End code ---


--- Code: (replace) ---SELECT /*!40001 SQL_NO_CACHE */ m.id_member, COUNT(m.id_member) AS posts
--- End code ---

just in case its some cache problem going on with mysql.

Sapozhnik:
sorry for my english.  :-[

Yes, user has only 70 posts. (Maybe i disabled counter when he had 32 posts)
I've tried to move one post to boards where counter is enabled and after recounting quantity of posts was changed to 1.
If all posts of user are placed in boards where counter is disabled, the counter of posts doesn't changed after recounting.
Try on your forum: move all posts of test-user to board where posts don't count and re-count them.
I think the quantity of posts won't change.

Sorry, I'm can't try replace the code now. I'll try it tomorow. I don't have full access to the forum now :(

Spuds:
OK ... I think I understand now!

Hummmm ... need to think about how to properly detect that case.  I do have some processing after the main recount to zero members who have no posts (in countable boards) but it must be getting tripped up by this case of only posts in non countable boards.   The cache thing above is not going to help (but it will not hurt either)

I'lll see what I can do over the next couple of days.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version