A note:
With ajax enable, the counter don't sum post. If you reply a thread in the old way, or if you make a new thread in a forum with the new counter enabled, or if you de-activate "problematic" ajax... then it counts as normal.
But, I make it work with ajax. I simply put this same peace of code:
Quote:
$usrname = $vbulletin->userinfo['username'];
if($foruminfo['enable_jokes_counter']){
$db->query_write("UPDATE " . TABLE_PREFIX . "user SET jokes = jokes + 1 WHERE username = '$usrname'");
}
|
from forumdata_start hook, to newreply_post_ajax... and problem solved.
I'm not to much experience in php. That was just test and try.
Some can give a easy way to update forumcounters now? please?

I look this hack:
http://www.vbulletin.org/forum/showt...t=thread+count
...and try to clone the "install code" to this hack (i packaged it into a product after apply all the plugins showed here). In that install code i put the querys to generate the new rows in user's table. But i can't get it work. I realize in that point of the product import, no forum have the "new counter" variable enabled, yo i try to put the forums ID directly in the query (that i try to copy from Boofo's mod)... but again: i can't get it work. Repeat: i'm not tu much experienced in php.
Someone with a little of time can do the trick?. Please.