Posted by brianV on January 4, 2008 at 2:47pm
Jump to:
| Project: | User titles |
| Version: | 5.x-1.0-beta2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hello.
I am using the most recent beta for User Titles.
One problem I am having is that the titles are not being updated once a user crosses the threshold into the next rank; while their post count continues to increase, their rank doesn't.
Is there anything I can provide to help solve this?
Comments
#1
i have the same problem. i kinda solve it by going to the admin page for user-titles and clicking the "save" button. after that all titles are updated.
#2
I believe the user_titles_posts table is not updated when a user posts a comment or the comment is deleted.
#3
This is caused by a bug in user_titles_comment() function in user_titles.module. You need to replace the line which starts with db_query("REPLACE INTO... with this one:
<?phpdb_query("REPLACE INTO {user_titles_posts} (uid, posts) VALUES (%d, %d)", $a1['uid'], user_titles_get_posts($a1['uid']) + 1);
?>
$a1 is an array, not an object as the old code implied.
#4
yeah mine too...
I even reset and recount the user points back but still user title doesnt update
#5
Making master.
Duplicates:
#305950: User Title Uncalculated
#242576: It doesn't count comments.
#6
#7
This is fixed in 5.x-1.0
#8
Automatically closed -- issue fixed for two weeks with no activity.