Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
September 02, 2014, 04:06:16 am

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


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

Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.
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 02:38:57 am]

[Today at 01:01:23 am]

[September 01, 2014, 09:03:35 am]

[August 31, 2014, 09:40:44 pm]

[August 31, 2014, 05:06:49 pm]

[August 30, 2014, 10:02:54 pm]

[August 30, 2014, 01:12:42 pm]

[August 29, 2014, 02:23:21 pm]

[August 28, 2014, 11:01:47 pm]

[August 28, 2014, 08:13:15 pm]
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 17 queries.