Noah's Classifieds ad count issue

HeavyMetalMan

New Member
Messages
13
Reaction score
0
Points
0
Hello, I successfully installed the new php5 friendly Noah's Classifieds,(http://heavymetalman.x10hosting.com/classifieds_1_3/) but cannot get the subcategories to increase or return an accurate count. They seem to decrease okay but not increase. The overall father category is correct, increase or decrease. I already tried this (which I found on here) but it still didn't help. I can change the # via phpMyadmin fine to the correct # in the subcat, but it doesn't actively update, thanks with any help!

P.S. I forgot to add, I already tried uninstalling/reinstalling...thanks again!

Has anyone come across this or know of the code to modify to make this work? Also, if I have them have me approve the ads, the ad counts in the subcategories actively stay accurate, but when that option is off and anyone can add and ad, the numbers don't decrease or increase, thanks.

Here is the code I modified:

replace the modify function with following in [SERVER_ROOT]/gorum/item.php:

function modify( $whereFields="", $overrulePrivilege=FALSE )
{
global $immediateAppear,$gorumuser, $whatHappened, $categoryClassName; <added this>
Object::modify( $whereFields, $overrulePrivilege );
if ($whatHappened=="form_submitted" && !$immediateAppear &&
!$gorumuser->isAdm)
{
$c = new $categoryClassName;<added this>
$c->id = $this->cid;<added this>
$ret=load($c); <added this>
$c->decreaseDirectItemNum(); <added this>
$this->active=FALSE;
modify($this);
}
}
 
Top