PDA

View Full Version : How I can show the number of All in the category


mdarriba
09-22-2005, 06:55 PM
For example today I only see the number of the subcategories inside of the category, but, how can I see the number of sub categories and the links

David
09-22-2005, 07:00 PM
I know this has been brought up before. I'm not sure if we ever found an answer, though I know there has been some discussion of possible solutions. Have you searched the forum to see what information is available on this topic?

mdarriba
09-22-2005, 07:12 PM
Thank you for the information I will search in the forum

thanks againg

Mariano

Nobody
09-22-2005, 07:24 PM
Actually I have been searching for that specific topic/post a lot, and I can't find it. I believe I have checked every single post by now.

mdarriba
09-23-2005, 03:59 AM
Im not found nothing in the forum about this, somebody know how do this?Im not found nothing in the forum about this, somebody know how do this?

suzkaw
09-29-2005, 05:25 AM
Just to be clear instead of showing the number of sub-categories you want to show the number of links?

If this is the case you can open your functions.php file and at the very bottom just above the closing php ?> add this:
Content visible to registered users only.

Next open the index.php file and around line 163 you should see:
Content visible to registered users only.

Just below that add:
Content visible to registered users only.

mdarriba
09-29-2005, 10:18 PM
Hi suzkaw!
my idea is to have de complete number of itms inside of the one category

links and subcategories and the links or categories inside of that sub category

here is one example

Links in the categorie 5
Sub categorieA Links in the category A 10
Sub categorieB Lins in the category B 10

So the total number is 5 links, 2 sub categories 10 links in each category = 27

Is this posible?

Regards
Mariano

Ap0s7le
09-30-2005, 01:15 AM
Sure this is possible, totally.

The problem is that it would be a lot of recursion, which would comprimise the speed of the script which wouldn't be a good idea. That's why dcb, yktan and I haven't done this already.

For example.

You would have to
1: Get the CatID
2: Get the Number of Links with that CatID
3: Get all the SubCatID's with our CatID
4: Get the Number of all Links under that SubCatID

Then repeat that process for each Cat and SubCat.

It would be harder on the server and cause a speed problem with page load.

If you have anymore questions, feel free to contact me.

-Casey

mdarriba
09-30-2005, 02:31 AM
Thank you for your time and help! to all of yours, I am using this script and for me is perfect!

thanks again!

Mariano