[master] User titles not updating with addition or removal of comments

brianV - January 4, 2008 - 14:47
Project:User titles
Version:5.x-1.0-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

#1

batbug2 - January 5, 2008 - 11:10

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

gaijinu - March 31, 2008 - 12:34

I believe the user_titles_posts table is not updated when a user posts a comment or the comment is deleted.

#3

jamix - May 24, 2008 - 09:17

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:

<?php
  db_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

pramudya81 - August 27, 2008 - 06:19

yeah mine too...

I even reset and recount the user points back but still user title doesnt update

#5

Justin W Freeman - December 16, 2008 - 03:47
Title:User titles not updating» [master] User titles not updating

Making master.

Duplicates:
#305950: User Title Uncalculated
#242576: It doesn't count comments.

#6

Justin W Freeman - December 16, 2008 - 03:48
Title:[master] User titles not updating» [master] User titles not updating with addition or removal of comments

#7

Justin W Freeman - December 19, 2008 - 05:18
Status:active» fixed

This is fixed in 5.x-1.0

#8

System Message - January 2, 2009 - 05:20
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.