Joo!BB - Making Community
Joo!BB - Joomla! Bulletin Board
Board Index
>
Support Forum
BUG: Edit will increased Postings and the solution...
Welcome, Guest

Message
You have no permission to reply to this topic.
7 Replies

by Devil on 11/20/2008 16:51
Post BUG: Edit will increased Postings and the solution !?!

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();


to

Code
    if ($isNew) {	

$userPosts = $joobbUser->get('posts');
$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();
}


and changes lines ~278

Code
$userPosts = $joobbUser->get('posts');

$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();


to


Code
    if ($isNew) {	

$userPosts = $joobbUser->get('posts');
$userPosts++;
$joobbUser->set('posts', $userPosts);
$joobbUser->save();
}


Can someone test and report? thx...

greetings Devil


Devil | Joined Board: 11/20/2008 15:54 | Last Visit: 03/13/2009 09:50
Joo!BB - Newie
Registered
Posts: 15
Offline Member is Offline
View all users posts

Last Edit on 11/20/2008 16:52


by Robbie on 11/20/2008 17:08
Post Re: BUG: Edit will increased Postings and the solution !?!

Hi Devil,

thx for your report. This is already fixed in svn. I will correct data in this forum on weekend.

Kind regards,
Robbie


Robbie | Joined Board: 12/14/2007 10:38 | Last Visit: 05/19/2012 07:50
Joo!BB - Master
Administrator
Posts: 784
Online Member is Online
View all users posts


by Devil on 11/20/2008 17:30
Post Re: BUG: Edit will increased Postings and the solution !?!

Hi,

okay... didn“t show in svn Smile thx

greetings Devil


Devil | Joined Board: 11/20/2008 15:54 | Last Visit: 03/13/2009 09:50
Joo!BB - Newie
Registered
Posts: 15
Offline Member is Offline
View all users posts


by Devil on 11/20/2008 19:19
Post Next Bug...

Hi,

when a posting willl delete the posting count of the user will not decreased...

is it solved in svn?


Devil | Joined Board: 11/20/2008 15:54 | Last Visit: 03/13/2009 09:50
Joo!BB - Newie
Registered
Posts: 15
Offline Member is Offline
View all users posts

Last Edit on 11/20/2008 20:02


by Robbie on 11/20/2008 21:33
Post Re: BUG: Edit will increased Postings and the solution !?!

Hi Devil,

no problem! Wink

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


Robbie | Joined Board: 12/14/2007 10:38 | Last Visit: 05/19/2012 07:50
Joo!BB - Master
Administrator
Posts: 784
Online Member is Online
View all users posts

Last Edit on 11/20/2008 22:00


by Hennepdesk on 11/20/2008 21:47
Post Re: BUG: Edit will increased Postings and the solution !?!

I would say count the real ammount of post.

Hennepdesk


Hennepdesk | Joined Board: 03/11/2008 07:26 | Last Visit: 04/08/2009 17:06
Joo!BB - Experienced
Registered
Posts: 58
Offline Member is Offline
View all users posts


by Robbie on 11/20/2008 21:59
Post Re: BUG: Edit will increased Postings and the solution !?!

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


Robbie | Joined Board: 12/14/2007 10:38 | Last Visit: 05/19/2012 07:50
Joo!BB - Master
Administrator
Posts: 784
Online Member is Online
View all users posts


by jhetrick62 on 11/21/2008 01:57
Post Re: BUG: Edit will increased Postings and the solution !?!

I agree with Robbie. If he can make that an administrator choice, that is the best way.

Jeff


jhetrick62 | Joined Board: 10/16/2008 03:04 | Last Visit: 09/03/2010 19:10
Joo!BB - Master
Moderator
Posts: 407
Offline Member is Offline
View all users posts


7 Replies

Joo!BB - Joomla! Bulletin Board

Copyright © 2007 - 2012 Joo!BB Project - All rights reserved.