Ok ok i know those people that organzie there downloads by subcatagories and want to have more then three show up in the download section so i figured out how to do it and i would like to let everyone else know.
Ok here is the deal you can have more than three appear but it will through the alignment out of wack and i haven't figured out how to fix that but if i do i will certainly post and let you know about it.
What i did was create about 5 sub catagories because i need that because i host online gaming updates and stuff like that so i had zero sub-cats show in the main download window and when you click the main-cat you still see them.
Here's how you do it:
Goto your modules/Downloads/ dir via ftp and open index.php to edit it.
Look for this code it is in the file 3 different times. One of the code lines should beggin with $result2 and the others should beggin with $result3. There is one with $result2 that needs changing and two with $result3 that needs to be changed.
|
Code:
|
$result2 = sql_query("select cid, title from ".$prefix."_downloads_categories where parentid=$cid order by title limit 0,3", $dbi); |
Now if you want no sub-cats to show in the main download view change it to this.
|
Code:
|
$result2 = sql_query("select cid, title from ".$prefix."_downloads_categories where parentid=$cid order by title limit 0,0", $dbi); |
I hope this helps some people out because it sure did help me.
-Konan