2
This is a quick hack:
at about line 49 of catads/blocks/catads_new.php, add lines
Quote:
$cat= 1 // or whatever the category id of your cars category is
$criteria->add(new Criteria('cat_id', $cat, '='));
Save the file and display your block. It will show only items in the category you have selected.
For a fuller answer, you need to do a lot more I'm afraid, but basically clone the catads_new.php file, add a new option selector in b_catads_edit function, add the ability to pick this up in the b_catads_show function, add the new block details in xoops_version.php and clone the template file for the block in teh templates/blcok directory and add teh new template details in xoops_version.php. You will also need to add new language constants in teh relevent language files in the language directory. Once you've done all that, go to systems admin and update the module for the new feature to take effect.
Its a good way to start learning a bit of PHP and XOOPS programming. The catads module is quite straightforwardly (for XOOPS that is!) written so is actually IMHO, not a bad place to start learning XOOPS mod dev.