Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 175
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 129
Total: 129

Author Topic: Remove sub category names  (Read 9010 times)

0 Members and 1 Guest are viewing this topic.

Offline rbh

  • Member
  • *
  • Posts: 44
    • View Profile
Remove sub category names
« on: October 16, 2008, 08:39:04 am »
I want to clean up the parent page of the classifieds by removing the lists of sub (child) categories. It didn't list them until I turned on the count child listings for the parent total. I wouldn't mind it listing the sub categories but they seem to run together and look bad IMO. What can I do to fix this?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Remove sub category names
« Reply #1 on: October 16, 2008, 08:33:26 pm »
This part of Classifieds.template.php Do you have screenshot of how they look. I want to see what you are talking about in terms of style.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline rbh

  • Member
  • *
  • Posts: 44
    • View Profile
Re: Remove sub category names
« Reply #2 on: October 17, 2008, 08:07:33 am »
Like I said, it is just my opinion but I think the sub cat names just run together too much. Maybe if there was a vertical break line between each category name or some way of telling where one ends and the other begins.


Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Remove sub category names
« Reply #3 on: October 20, 2008, 03:25:10 am »
If can try adding a <br> before the name of the sub board.

Change:
Code: [Select]
$subcats_linktree .= '<a href="' . $scripturl . '?action=classifieds;cat=' . $row3['ID_CAT'] . '">' . $row3['title'] . '</a>&nbsp;&nbsp;';to:
Code: [Select]
$subcats_linktree .= '<br><a href="' . $scripturl . '?action=classifieds;cat=' . $row3['ID_CAT'] . '">' . $row3['title'] . '</a>&nbsp;&nbsp;';
or you can put a separator (|) before or after the name of the sub board, for example:
Code: [Select]
$subcats_linktree .= '<a href="' . $scripturl . '?action=classifieds;cat=' . $row3['ID_CAT'] . '">' . $row3['title'] . '</a>&nbsp;|&nbsp;';
or something else...

Offline rbh

  • Member
  • *
  • Posts: 44
    • View Profile
Re: Remove sub category names
« Reply #4 on: October 20, 2008, 09:03:53 am »
vkot, Which file would I apply these edits?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Remove sub category names
« Reply #5 on: October 20, 2008, 07:15:34 pm »
I make it comma seperate if that would be better.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline rbh

  • Member
  • *
  • Posts: 44
    • View Profile
Re: Remove sub category names
« Reply #6 on: October 21, 2008, 10:36:06 am »
A bigger break and a comma would be better. The vertical line between sub cat names would work very nicely but not sure how it would effect the layout. Whatever could be done to give a clean separation between sub cat names would be very helpful. Thanks.

Offline vkot

  • Full Member
  • ***
  • Posts: 136
    • View Profile
Re: Remove sub category names
« Reply #7 on: October 23, 2008, 05:27:22 am »
vkot, Which file would I apply these edits?

Classifieds.template.php

You can choose any separator, just edit the &nbsp;&nbsp; (which means 2 hard-spaces), in the line I mentioned, to anything you like.

Offline rbh

  • Member
  • *
  • Posts: 44
    • View Profile
Re: Remove sub category names
« Reply #8 on: October 29, 2008, 08:50:18 am »
Finally got some time to work on this. Thanks vkot, that vertical bar makes it look MUCH better!


 

Related Topics

  Subject / Started by Replies Last post
5 Replies
9489 Views
Last post November 14, 2006, 09:31:54 pm
by SMFHacks
6 Replies
4491 Views
Last post November 17, 2010, 01:55:59 pm
by SMFHacks
0 Replies
3403 Views
Last post January 22, 2008, 12:02:46 pm
by eg-eliteghost
2 Replies
3184 Views
Last post February 13, 2011, 11:15:25 am
by clothahump
7 Replies
4823 Views
Last post January 07, 2012, 04:50:11 pm
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal