[solved] category numbers show (9/0) [v3.0 migration]

Phoca Download - download manager
dontflinch
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Apr 2013, 19:10

[solved] category numbers show (9/0) [v3.0 migration]

Post by dontflinch »

categories stat numbers shows as ([correct-number-of-subcats]/0)

in working version it showed the (number of subcats/total number of files in all those categories), (9/170) for example .

is this problem from the migration? is there someway to force it to recognize the total number of files?

I know it is this bit involved:

Code: Select all

			if ($this->t['displaynumdocsecs'] == 1) {
					$catOutput  .=' <small>('.$valueCat->numdoc .')</small>';
				}
				$catOutput 	.= '</div>' . "\n";
				$numDoc = (int)$valueCat->numdoc + (int)$numDoc;
				$numSubcat++;
thanks for any help!
dontflinch
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 19 Apr 2013, 19:10

Re: [solved] category numbers show (9/0) [v3.0 migration]

Post by dontflinch »

I looked at this closer and here is what I changed that appears to fix it:

Code: Select all

			if ($this->t['displaynumdocsecsheader'] == 1) {
				$pdTitle .= ' <small>('.$numSubcat.'/' . $value->numdoc .')</small>';
to this:

Code: Select all

			if ($this->t['displaynumdocsecsheader'] == 1) {
				$pdTitle .= ' <small>('.$numSubcat.'/' . $numDoc .')</small>';

edit: sorry, that was in categories > default.php template override file.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48585
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [solved] category numbers show (9/0) [v3.0 migration]

Post by Jan »

Hi, thank you for the info, I will fix it for next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply