Article count in admin >> review >> category list
capslock 0
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Article count in admin >> review >> category list
capslock
OP
0
From: -
From: -
Article count in admin >> review >> category list
Perfect !!!
Perfect !!!
1 Re: Article count in admin >> review >> category list
Philipp
From: Austria
Administrator
1342From: Austria
Article count in admin >> review >> category list
Here a modification. Open mod_review.php and find:
and add:
Then replace below:
with:
Here a modification. Open mod_review.php and find:
$result = DBQuery("SELECT reviewcat_id, reviewcat_name FROM esselbach_st_reviewcat WHERE reviewcat_parent = '0' ORDER BY reviewcat_id");
while (list($category_id, $category_title) = mysql_fetch_row($result))
{
and add:
$query = DBQuery("SELECT COUNT(review_id) FROM esselbach_st_review WHERE review_page='1' AND review_category = '$category_id'");
list($reviews) = mysql_fetch_row($query);
Then replace below:
TblMiddle("$category_id", "$category_title", "reviewcat&opts=editcat-$category_id", "reviewcat&opts=deletecat-$category_id");
with:
TblMiddle("$category_id", "$category_title ($reviews reviews)", "reviewcat&opts=editcat-$category_id", "reviewcat&opts=deletecat-$category_id");
Is possible to have Article count in admin >> review >> category list?
I need to know how many articles are in each category.