1
Hi stefan88 , Thanks a lot for your timely and quick reply. It did work perfect.
The version of MyReview is 2.19 and runnin on XOOPS 2.3.2b
The myReviews module i use as in the picture above is same version ,but slightly modified to display subcategories in 2 columns and to display upto 25 subcategories in index page.
Here is a picture of the new result (with color changes to post count). Hi Stefan88, can u tell me is there a way i can add count of subcategory total in main (as shown in the blue font in the picture below).
I tried changing the following lines of viewcat.php
to
But, the result is showing the entire posting count (the whole database count) instead of the count from selected subcategory (Further in every sub levels we browse, it is showing the overal total posting count).
I am not familiar with php, but still exploring to figure this out. When u have time, Can you tell me how to fetch the count of posting from an active sub category selected in viewcat.php page. (So it appear on the blue line position in the picture below )
Thanking everyone and XOOPS once again.
The version of MyReview is 2.19 and runnin on XOOPS 2.3.2b
The myReviews module i use as in the picture above is same version ,but slightly modified to display subcategories in 2 columns and to display upto 25 subcategories in index page.
Here is a picture of the new result (with color changes to post count). Hi Stefan88, can u tell me is there a way i can add count of subcategory total in main (as shown in the blue font in the picture below).
I tried changing the following lines of viewcat.php
echo "<table width='100%' cellspacing='1' cellpadding='2' border='0' class='bg3'><tr><td>n";
$pathstring = "<a href='index.php'>"._MD_MAIN."</a> > ";
$nicepath = $mytree->getNicePathFromId($cid, "title", "viewcat.php?op=");
$pathstring .= $nicepath;
echo "<b>".$pathstring."</b>";
to
$totaldownload = getTotalItems($myrow['cid'], 1);
echo "<table width='100%' cellspacing='1' cellpadding='2' border='0' class='bg3'><tr><td>n";
$pathstring = "<a href='index.php'>"._MD_MAIN."</a> > ";
$nicepath = $mytree->getNicePathFromId($cid, "title", "viewcat.php?op=");
$pathstring .= $nicepath;
echo "<b>".$pathstring."</b>" .$totaldownload.;
But, the result is showing the entire posting count (the whole database count) instead of the count from selected subcategory (Further in every sub levels we browse, it is showing the overal total posting count).
I am not familiar with php, but still exploring to figure this out. When u have time, Can you tell me how to fetch the count of posting from an active sub category selected in viewcat.php page. (So it appear on the blue line position in the picture below )
Thanking everyone and XOOPS once again.