Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
April 23, 2014, 10:13:49 pm

Login with username, password and session length
Members
Total Members: 11197
Latest: besherh
Stats
Total Posts: 34816
Total Topics: 5839
Online Today: 100
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 87
Total: 87
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: A small cosmetic query  (Read 2807 times)
gibbs
Newbie
*
Offline Offline

Posts: 33

Using SMF Gallery and Classifieds


View Profile
« on: August 18, 2008, 04:54:27 pm »

Can anyone tell me how to reduce the gap in between my categories on the main classifieds page please?

I seem to have the following look to my classifieds page:

Category A
<Large gap - 1 full row depth>
Category B
<Large gap - 1 full row depth>
Category C
<Large gap - 1 full row depth>

As you can imagine, if I have 50 categories, it all looks a bit... eye numbing!
I would like to make the gaps between my listings about half the row depth if possible. Is this a classifieds issue or is it a theme issue?

Thanks.
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11873


View Profile
« Reply #1 on: August 18, 2008, 07:30:18 pm »

The gaps actually show sub categories. Currently SMF Gallery 1.4 trying a new style that does not have those gaps.

Quick change
Classifieds.template.php
Find
Code:
if ($g_manage)
{
echo '<tr class="titlebg" height="5">
<td colspan="6">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['class_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
}
else
echo '<tr class="titlebg" height="5">
<td colspan="4">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['class_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
Change to
Code:
if($subcats_linktree != '')
if ($g_manage)
{
echo '<tr class="titlebg" height="5">
<td colspan="6">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['class_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
}
else
echo '<tr class="titlebg" height="5">
<td colspan="4">&nbsp;<span class="smalltext">',($subcats_linktree != '' ? $txt['class_sub_cats'] . $subcats_linktree : ''),'</span></td>
</tr>';
Logged
vkot
SMF Classifieds Customer
Full Member
*****
Offline Offline

Posts: 134


View Profile
« Reply #2 on: August 19, 2008, 03:22:35 am »

Me too, I was wondering how I can remove those gaps...

The quick change worked nicely  Wink
Logged
gibbs
Newbie
*
Offline Offline

Posts: 33

Using SMF Gallery and Classifieds


View Profile
« Reply #3 on: August 19, 2008, 09:14:06 am »

Ah great stuff. That looks much better for my site. Thanks smfhacks
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[Today at 12:14:06 pm]

[April 22, 2014, 11:06:21 am]

[April 17, 2014, 06:35:33 pm]

[April 17, 2014, 05:44:48 pm]

[April 17, 2014, 04:01:58 pm]

[April 15, 2014, 10:58:02 am]

[April 13, 2014, 11:12:24 am]

[April 11, 2014, 09:39:48 am]

[April 11, 2014, 08:48:03 am]

[April 10, 2014, 08:20:58 am]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.19 | SMF © 2013, Simple Machines
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 1.139 seconds with 18 queries.