Author Topic: Counter count for categories  (Read 2815 times)

cajunkyard

  • Guest
Counter count for categories
« on: October 08, 2007, 02:42:44 AM »
With the list of categories on the left side, we should have a number right next to the category, with how many videos are in it.  For example:

Funny Videos (7)
Shocking Videos (5)

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #1 on: October 08, 2007, 10:12:31 PM »
Anyone have any idea on how we can work this out?

murali

  • Guest
Re: Counter count for categories
« Reply #2 on: October 10, 2007, 02:42:02 AM »
Just got this to work on one page.

Check it out http://video.victorc21.com/category.php

Need to apply this on other category pages as well.

Shall release the MOD later. It is 00:40 AM here. Need some sleep

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #3 on: October 10, 2007, 10:54:05 AM »
Looks good bro, I can't wait! :D

murali

  • Guest
Re: Counter count for categories
« Reply #4 on: October 10, 2007, 10:48:45 PM »
Hi,
All the changes are explained in the blog http://www.elixiraddons.com/blogs/phpmotion/
See http://video.victorc21.com/category.php to see this in action.

This now also works for category with no videos loaded.

This will only take care of the main category page.

Coming soon !!!
The changes for the category_home.php (page you see when you click on the category link on the left menu).

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #5 on: October 10, 2007, 11:27:37 PM »
Looks good. :) I'll beta test it and see how it goes.

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #6 on: October 11, 2007, 02:09:06 AM »
Works well, just need to work on category_home and the channel name.

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #7 on: October 13, 2007, 05:05:31 AM »
How's the other template files looking ITguy? Did you manage in coding them up?  If so, please update us here, so I can lock the topic and add it to our Addons/Mods database.

Thank you.

murali

  • Guest
Re: Counter count for categories
« Reply #8 on: October 13, 2007, 10:32:03 AM »
Just got it done.

You can see it work on my demo site at http://video.victorc21.com/category_home.php?cid=Comedy

Details explained on my blog at http://www.elixiraddons.com/blogs/phpmotion/

To recap, there are total four files (two PHP and two templates) to change for the counter to appear on the two category pages.

Make sure to test it out and let us know how it works.

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #9 on: October 13, 2007, 12:04:10 PM »
Cool, I will beta test it out in a couple minutes and report back on how it went.

murali

  • Guest
Re: Counter count for categories
« Reply #10 on: October 16, 2007, 08:04:17 PM »
Did you get to test this out yet ?

cajunkyard

  • Guest
Re: Counter count for categories
« Reply #11 on: October 16, 2007, 10:23:57 PM »
My site was going through some heavy modification, so I had to redo many things. I'll update you.

seever1x

  • Newbie
  • *
  • Posts: 41
Re: Counter count for categories
« Reply #12 on: January 12, 2008, 08:11:07 PM »
IT GUY

on "inner_category.php"  do I replace old code  or  do I modify existing code???

need a little more help

murali

  • Guest
Re: Counter count for categories
« Reply #13 on: January 31, 2008, 10:54:26 PM »
All the changes to be made to the following 4 files are explained at my blog in two posts.

1) category.php (step 1)
2) templates/inner_category.htm (step 2)

3) category_home.php (step 1)
4) templates/inner_category_home.htm (step 2)

Please check it out at http://www.elixiraddons.com/blogs/phpmotion and let me know if you still have questions.