Hi,
every time a user edit an own Post his Posing Count will increased by 1.
I think the "error" is in this File:
joomlaroot/com_joob/controller/joobb.php
Solution!?!:
change line ~388:
Code
$userPosts = $joobbUser->get('posts');
$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();
if ($isNew) {
$userPosts = $joobbUser->get('posts');
$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();
}
$userPosts = $joobbUser->get('posts');
$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();
if ($isNew) {
$userPosts = $joobbUser->get('posts');
$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();
}
Hi Devil,
thx for your report. This is already fixed in svn. I will correct data in this forum on weekend.
Kind regards,
Robbie
Hi,
okay... didn“t show in svn
thx
greetings Devil
Hi,
when a posting willl delete the posting count of the user will not decreased...
is it solved in svn?
Hi Devil,
no problem!
It seems to be a philosophical question! It is a real good question! What does the community think about?
Should user post count be decremented when the post is deleted? And what when you prune a forum?
Kind regards,
Robbie
I would say count the real ammount of post.
Hennepdesk
Hi Hennepdesk,
this is my opinion too. But... I would suggest following:
The administrator can decide by himself (yes/no in config) if he wants post counts beeing decreased or not. Further (in future) he will be also be able to decide the same way on pruning forums.
I think this can be a compromise?
Kind regards,
Robbie
I agree with Robbie. If he can make that an administrator choice, that is the best way.
Jeff