Support Forums

Old 11-30-2008, 04:38 PM   #1
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4
DGiscombe is on a distinguished road
Default Sub categories list help!

Hi Guys,

I've through other threads and they help a lot with displaying subcats under main cats on the homepage.

One little I want to ask is how to display the subcats vertically.

I'm thinking I use something like [for each] to split the array, but I may be totally wrong.

Can somebody please me help me out, I'm sure its something simple I cant think of right now

Thanks in advance.
DGiscombe is offline   Reply With Quote
Old 11-30-2008, 07:09 PM   #2
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4
DGiscombe is on a distinguished road
Default

Am I right in thinking this a pretty hard task then?

If so, I may have to return the product, which is a shame
DGiscombe is offline   Reply With Quote
Old 11-30-2008, 08:57 PM   #3
Coder
 
Join Date: Mar 2006
Posts: 4,414
Rep Power: 108
Lhotch is just really niceLhotch is just really nice
Default

Quote:
Originally Posted by DGiscombe View Post
Am I right in thinking this a pretty hard task then?

If so, I may have to return the product, which is a shame
Couple things....

Its a holiday weekend and as the post in the announcement forum says 68C is closed for the holiday.

Next, what version of the software are you using and what template, tough to offer help when you dont give any info to go on.
__________________
Larry.
Lhotch is offline   Reply With Quote
Old 12-01-2008, 07:06 AM   #4
Senior Member
 
 
Join Date: Jan 2007
Posts: 365
Rep Power: 18
michael is a jewel in the rough
Default

Assuming your using v4xx, just go to includes>classes>kernel>Categories.php and insert a <br /> where needed.

Code:
              { 
            if($rs['cLink']<>"") 
            { 
                $add_cats.='<a href="'.$rs['cLink'].'">'.htmlspecialchars($rs['name']).'</a><br />'; 
            } 
            else 
            { 
                $slug = ( empty($rs['slug']) ) ? $rs['id']: $rs['slug']; 
                $add_cats.='<a href="category.php?cat='.$slug.'">'.htmlspecialchars($rs['name']).'</a><br />'; 
            }
__________________
M Michael
V4.1.3 Developer - 3 Column Default Template


"All truths are easy to understand once they are discovered; the point is to discover them" - Galileo Galilei (1564 - 1642)
michael is offline   Reply With Quote
Old 12-01-2008, 11:57 AM   #5
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4
DGiscombe is on a distinguished road
Default

Wow...

Knew it was something really simple, thanks A LOT

And my apologies about the holiday thing, will definitely pay more attention in the future.

Thanks again
DGiscombe is offline   Reply With Quote
Old 12-02-2008, 04:33 PM   #6
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4
DGiscombe is on a distinguished road
Default

Hey Guys,

I've another category list question, and I think it will be the last of it

Basically, now that I have the cats and subcats showing as a vertical list on the homepage (ver.4xx), could anyone tell me how to display the cat/subcat tables directly under each other?

At the moment, the height of each row depends on the height of the row with the largest amount of subcats.

I think I need to get rid of a [tr] somewhere in the categories.php?

Thanks in advance!

Last edited by DGiscombe; 04-13-2009 at 09:31 AM.
DGiscombe is offline   Reply With Quote
Old 12-02-2008, 04:37 PM   #7
68 Classifieds Staff
 
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,015
Rep Power: 116
Eric Barnes is a jewel in the rough
Default

That one is tricky. The only way I can think of would be to create a three column table. Then somehow loop the categories so each loop is then ran inside one of these three td cells.

It can complex real quick.
__________________
Eric Barnes
68 Classifieds Developer
Please do not send me a private message asking for support. Instead use these open forums or our ticket system.

Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | 68 @ Twitter | My Modules
Eric Barnes is offline   Reply With Quote
Old 12-02-2008, 04:46 PM   #8
Graphic / Web Desginer
 
Join Date: Nov 2008
Location: London, England
Posts: 77
Rep Power: 4
DGiscombe is on a distinguished road
Default

Heh heh, I was thinking that as well.

I'm thinking since there will only be a certain amount of categories, I could make col 1 have cats 1-3, col 2 have 4-7 and col 3 have 8&9

Will the rest of the script run ok if I try this?
DGiscombe is offline   Reply With Quote
Old 12-02-2008, 05:47 PM   #9
Member
 
Join Date: May 2008
Posts: 73
Rep Power: 9
SecondShoe is just really niceSecondShoe is just really nice
Default

Quote:
Originally Posted by michael View Post
Code:
              { 
            if($rs['cLink']<>"") 
            { 
                $add_cats.='<a href="'.$rs['cLink'].'">'.htmlspecialchars($rs['name']).'</a><br />'; 
            } 
            else 
            { 
                $slug = ( empty($rs['slug']) ) ? $rs['id']: $rs['slug']; 
                $add_cats.='<a href="category.php?cat='.$slug.'">'.htmlspecialchars($rs['name']).'</a><br />'; 
            }
Where exactly you put this in categories.php?
SecondShoe is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show list of categories safatweb Modules / Plugins / Modifications 9 10-31-2008 12:53 PM
Mod request: list ad in multiple categories spark Modules / Plugins / Modifications 3 06-05-2008 03:55 PM
Search drop down list - Main Categories in BOLD Greg H v3.1 Modules & Modifications 26 12-19-2007 04:43 PM
Static Categories and Sub-categories list Tim_A v4 Questions & Support 0 06-08-2007 08:41 AM
Categories to be listed in a list menu rather that in a text marketingsolutions v3.1 Modules & Modifications 21 10-15-2006 08:41 AM


All times are GMT -4. The time now is 03:00 AM.


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