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'" ) ;
hi Monique.
Thank you for sharing it.
I just know such an incompatibility.
Anyway it should be replaced XoopsUser::incrementPost() for the compatibility.
like this:
$user_handler =& xoops_gethandler('user') ;
$submitter_obj =& $user_handler->get( $submitter ) ;
for( $i = 0 ; $i < $myalbum_addposts ; $i ++ ) {
$submitter_obj->incrementPost() ;
}