Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Numbers of videos next to category names in menu
30-03-2011, 06:25 AM (This post was last modified: 10-04-2011 05:49 AM by Punktured.)
Post: #1
Information Numbers of videos next to category names in menu
To do this, we one have to exchange one line of code.
This code is in the functions file, which is located at
/include/functions.php

Find this line, in the function "categories()":
Code:
$kategoriler=$kategoriler.'<li><a href="'.$root_url.$linki2.'">'.urldecode($row['category']).'</a></li>';

change that, to:
Code:
$cat_id = $row['id'];
$result2 = mysql_query("select * from video where `category` = '$cat_id'");
$cat_tot = mysql_num_rows($result2);
            
$kategoriler=$kategoriler.'<li><a href="'.$root_url.$linki2.'">'.urldecode($row['category']).'</a>('.$cat_tot.')</li>';

NOTE: Be sure to clear your cache files for the changes to take effect.

Custom HTML/CSS/PHP
http://theorderofindividualacceptance.co...p.php?id=1
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Numbers of videos next to category names in menu - Punktured - 30-03-2011 06:25 AM

Forum Jump: