Support Forums

Quick question on categories

This is a discussion on Quick question on categories within the Technical Support forums, part of the Technical Support Forums category; Just a quick question, hopefully someone can help me. Basically what im trying to do is show all of the ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 12-17-2008, 04:00 PM   #1
Junior Member
 
Join Date: Dec 2008
Posts: 14
Rep Power: 7
Jamesgt is on a distinguished road
Default Quick question on categories

Just a quick question, hopefully someone can help me. Basically what im trying to do is show all of the listings of the sub category in the main category.
So for example if I had a main Category of Cars and 3 subs as Honda, Nissan, and Toyota.

Cars
--Honda
--Nissan
--Toyota

If the user clicks on Cars I want it to list of all of the listings from the subcats to the main category. I did some searching on the forums and I found this.

open the category.php
Replace
PHP Code:
    $options['section']=$sec
with
PHP Code:
    $arr_childs = array((int)$sec);
    
$Categories->get_ids($arr_childs);
    
$options['arr_childs']=$arr_childs
I used it and I thought it worked but it actually shows every listing in all of the main categories. Could someone please help me out with this?

Thanks.
Jamesgt is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Text Color Question. redgsr Templates, HTML, CSS, and Design Help 2 03-08-2007 02:14 PM
Quick Question mbnyg Pre Sales Questions 3 10-24-2006 02:07 PM


All times are GMT -4. The time now is 06:50 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0