View Full Version : Number of links in sub categories shown on first page
ChrilleK
11-02-2005, 03:18 PM
I want the umber of links in sub categories shown on first page just as the categories do. Could someone please help me with that?
David
11-02-2005, 03:24 PM
If you are saying you want to add the links from all subcategories to the total shown next to the categories on the first page, unfortunately this involves too much recursion. For example, the query requires would need to check for all of the parent and child ids, and this would be too time consuming, causing the page to load too slowly. A possible solution would be setup a process that can be run through the admin CP, and then static values are created that can be more rapidly called by the homepage. This would take several hours of programming.
ChrilleK
11-02-2005, 05:05 PM
Hm, well the static idea is pretty good. When ever a link is approved the count would count up and when a link is removed it counts down.
I want this for my directory
Since all sub cat's are shown I would much rather see how many links there are in each and not total in the main cat
vkaryl
11-02-2005, 06:26 PM
I have it displaying on my subcat list page, but even though at one point I had figured out how to display it on the index page, it was so slow I dropped the idea. I don't have around anywhere the code I used, sorry. It was something I stuffed into the "subcats" section of the main.tpl....
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.