2.0 to 2.2 minor bug fix re: # of posts
List posts in the topic
2.0 to 2.2 minor bug fix re: # of posts
msg# 1
My posts weren't incrementing when a user uploaded a picture in 2.2. I fixed it and wanted to share it with you. Around line 200 in submit.php, change:
$xoopsDB->query( "UPDATE ".$xoopsDB->prefix('users')." SET posts=posts+'$myalbum_addposts' WHERE uid='$submitter'" ) ;
to:
$xoopsDB->query( "UPDATE ".$xoopsDB->prefix('user_profile')." SET posts = posts +'$myalbum_addposts' WHERE profileid='$submitter'" ) ;
Votes:8
Average:0.00
Posts tree