Author Topic: Newbie - Subcategory listing  (Read 8699 times)

0 Members and 2 Guests are viewing this topic.

Offline charwai

  • Pre-Newbie
  • Posts: 2
    • View Profile
Newbie - Subcategory listing
« on: February 12, 2003, 06:29:36 PM »
HI all,

I'm new to this 4images, and love it very much.  I'm not familar with php codes and any web authoring ...  

My question is:
How can I list subcategories like this  :D -> Main category
                                                                 Subcategory 1
                                                                 Subcategory 2
                                                                 Subcategory 3

Instead of  :cry: -> Main category
                    Subcategory 1, Subcategory 2, Subcategory 3

Thanks!  Any help would be greatly appreciated.  :)

Ken

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Newbie - Subcategory listing
« Reply #1 on: February 12, 2003, 06:53:10 PM »
open /includes/functions.php search for
Code: [Select]
$sub_cat_list .= ", ";
replace with:
Code: [Select]
$sub_cat_list .= "<br>";

also, since u r new in this forum, please, take a look at two links below.
(your question has been asked and answered before :roll:  ;) )
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline charwai

  • Pre-Newbie
  • Posts: 2
    • View Profile
Newbie - Subcategory listing
« Reply #2 on: February 12, 2003, 08:04:44 PM »
Thanks! It works great! :idea:

Ken

Offline Fuztug

  • Jr. Member
  • **
  • Posts: 94
    • View Profile
Newbie - Subcategory listing
« Reply #3 on: June 22, 2003, 10:39:16 PM »
thx, that's what I needed!

Offline spacekai

  • Newbie
  • *
  • Posts: 29
    • View Profile
    • funsportpic
Re: Newbie - Subcategory listing
« Reply #4 on: March 22, 2005, 09:49:42 AM »
super!!!  :lol:

thanks spacekai

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Newbie - Subcategory listing
« Reply #5 on: May 21, 2005, 04:33:34 AM »
great stuff..

I have another question similar to this.

Currently, it dispays the subcat image once.
But I would like it to display it on every line before each sub cat.

Right now it is like
CATEGORY
Subcategory1
Subcategory2
Subcategory3


I would like it to be
CATEGORY
Subcategory1
Subcategory2
Subcategory3

I thought, it had to be somwhere in category_bit,
but it is not..

It should be somewhere like:

Code: [Select]
{if cat_description}<span class="smalltext">{cat_description}</span><br />{endif cat_description}
{if sub_cats}<img src="{template_url}/images/MySubCatImage.png" alt="" /> {sub_cats}{endif sub_cats}<p><hr>


It should be
{[*]sub_cats}
there, so i would have to edit how 4images displayed each subcategory.

..but how?

Thank You in advance!

Please Vote for my site: Here

Offline hyde101

  • Sr. Member
  • ****
  • Posts: 410
  • 34TR.COM (Running 4images)
    • View Profile
    • Nostalgia Istanbul
Re: Newbie - Subcategory listing
« Reply #6 on: May 22, 2005, 06:04:16 PM »
If I learned one thing from V@no, is that if he looks at one topic, and never replies to it, it must be a very easy solution, and he waits for you to solve it yourself..  :oops:
 Or maybe he is just busy! :) :)

 
Code: [Select]
$sub_cat_list .= "<br><img src=\"http://yourimageurl.jpg\" />";

This works just fine if you want BULLET for each subcategory.


Please Vote for my site: Here