Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
August 01, 2014, 09:45:29 pm

Login with username, password and session length
Members
Total Members: 11301
Latest: josephy
Stats
Total Posts: 35201
Total Topics: 5895
Online Today: 92
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 58
Total: 58
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: A small cosmetic query  (Read 2901 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: 12020


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 09:47:23 am]

[July 31, 2014, 10:18:43 am]

[July 30, 2014, 10:29:45 pm]

[July 29, 2014, 02:42:52 am]

[July 28, 2014, 03:10:30 pm]

[July 28, 2014, 12:58:26 pm]

[July 28, 2014, 10:43:03 am]

[July 24, 2014, 03:15:32 pm]

[July 24, 2014, 01:07:19 pm]

[July 23, 2014, 07:52:40 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.186 seconds with 18 queries.