SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 23, 2012, 10:30:00 pm

Login with username, password and session length
Members
Total Members: 10070
Latest: pipattra
Stats
Total Posts: 28683
Total Topics: 4976
Online Today: 94
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 44
Total: 44
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Remove sub category names  (Read 3783 times)
rbh
Newbie
*
Offline Offline

Posts: 44


View Profile
« 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?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« 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.
Logged
rbh
Newbie
*
Offline Offline

Posts: 44


View Profile
« 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.

Logged
vkot
SMF Classifieds Customer
Full Member
*****
Offline Offline

Posts: 123


View Profile
« 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:
$subcats_linktree .= '<a href="' . $scripturl . '?action=classifieds;cat=' . $row3['ID_CAT'] . '">' . $row3['title'] . '</a>&nbsp;&nbsp;';
to:
Code:
$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:
$subcats_linktree .= '<a href="' . $scripturl . '?action=classifieds;cat=' . $row3['ID_CAT'] . '">' . $row3['title'] . '</a>&nbsp;|&nbsp;';

or something else...
Logged
rbh
Newbie
*
Offline Offline

Posts: 44


View Profile
« Reply #4 on: October 20, 2008, 09:03:53 am »

vkot, Which file would I apply these edits?
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9676


View Profile
« Reply #5 on: October 20, 2008, 07:15:34 pm »

I make it comma seperate if that would be better.
Logged
rbh
Newbie
*
Offline Offline

Posts: 44


View Profile
« 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.
Logged
vkot
SMF Classifieds Customer
Full Member
*****
Offline Offline

Posts: 123


View Profile
« 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.
Logged
rbh
Newbie
*
Offline Offline

Posts: 44


View Profile
« 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!

Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 05:17:53 pm]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]

[May 17, 2012, 12:38:16 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 0.239 seconds with 18 queries.