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
|
|||
|
|||
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']; 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 |
|||
30-03-2011, 03:39 PM
(This post was last modified: 30-03-2011 03:40 PM by admin.)
Post: #2
|
|||
|
|||
RE: Numbers of videos next to category names in menu
you do not need to write that code
PHP Code: while ($row2 = mysql_fetch_array($result2)) i edit your post |
|||
07-04-2011, 11:43 AM
Post: #3
|
|||
|
|||
RE: Numbers of videos next to category names in menu
So, what is the right code, i modified as Punktured advised but it is not working....
|
|||
07-04-2011, 12:01 PM
Post: #4
|
|||
|
|||
RE: Numbers of videos next to category names in menu
chances are, you havent cleared your cache.
once you clear your cache the changes will take effect. let me know if clearing your cache works. if not, send me your functions.php file. Custom HTML/CSS/PHP http://theorderofindividualacceptance.co...p.php?id=1 |
|||
07-04-2011, 06:52 PM
Post: #5
|
|||
|
|||
RE: Numbers of videos next to category names in menu
Of course, I cleared the cache, but it doesn't work...
Maybe i paste something, somewhere wrong. Can you check it please? I attached the functions.php as you asked. Thank you! |
|||
07-04-2011, 09:51 PM
Post: #6
|
|||
|
|||
RE: Numbers of videos next to category names in menu
ok, this may be the problem.
in your /tmp folder, are there any cache files which are still there? i cleared all my cache, but some files remained. this may be the problem on your end too. just in /tmp not in any sub folders of /tmp Custom HTML/CSS/PHP http://theorderofindividualacceptance.co...p.php?id=1 |
|||
07-04-2011, 11:15 PM
Post: #7
|
|||
|
|||
RE: Numbers of videos next to category names in menu
i edit the code of Pnktured but not try it
may be i do something wrong |
|||
07-04-2011, 11:17 PM
Post: #8
|
|||
|
|||
RE: Numbers of videos next to category names in menu
the code should be fine, i retested on my site.
all i can suggest is private messaging me your server details and i can look, and clear the caches manually. Custom HTML/CSS/PHP http://theorderofindividualacceptance.co...p.php?id=1 |
|||
08-04-2011, 10:31 AM
Post: #9
|
|||
|
|||
RE: Numbers of videos next to category names in menu
Hm, you are right, i deleted all cache files manually just in /tmp and now i see the numbers after the categories but I see number "(2)" at all of my categories...strange, any idea what could be the problem.
|
|||
10-04-2011, 05:50 AM
Post: #10
|
|||
|
|||
RE: Numbers of videos next to category names in menu
ok i had missed a line of code when pasting.
ive added it now, and rechecked against my functions file, it should be fine now. let me know how it goes. sorry for the hassle. Custom HTML/CSS/PHP http://theorderofindividualacceptance.co...p.php?id=1 |
|||
« Next Oldest | Next Newest »
|