Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 20, 2013, 05:38:58 pm

Login with username, password and session length
Members
Total Members: 10763
Latest: sora
Stats
Total Posts: 32358
Total Topics: 5476
Online Today: 59
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 48
Total: 48
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: A small cosmetic query  (Read 2472 times)
gibbs
Inline PM Customer
*****
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: 10989


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
Full Member
***
Offline Offline

Posts: 126


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
Inline PM Customer
*****
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 10:43:19 am]

[May 19, 2013, 11:13:02 pm]

[May 19, 2013, 10:01:19 pm]

[May 19, 2013, 08:18:27 pm]

[May 19, 2013, 07:03:27 am]

[May 16, 2013, 10:13:46 pm]

[May 15, 2013, 11:32:14 pm]

[May 12, 2013, 09:10:43 am]

[May 10, 2013, 03:49:55 am]

[May 07, 2013, 07:12:40 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.18 | 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 2.505 seconds with 20 queries.