Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
June 19, 2013, 10:25:27 pm

Login with username, password and session length
Members
Total Members: 10807
Latest: GoldDigger1950
Stats
Total Posts: 32568
Total Topics: 5509
Online Today: 58
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 1
Guests: 47
Total: 48
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Item thumbnail first?  (Read 1324 times)
BSD2000
Newbie
*
Offline Offline

Posts: 20


http://www.VinylAudio.net


View Profile WWW
« on: June 13, 2012, 06:31:26 pm »

In the listing of available items, the item thumbnail in the second column with the item description listed first. What do I have to change to make the thumbnail the first column, like the listings on eBay?

I'm using SMF 2.0.2.

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

Posts: 11056


View Profile
« Reply #1 on: June 13, 2012, 06:44:08 pm »

If you are talking about the area inside a category listing all items in the category it is this code

Around line 189 in themes/default/classifies2.template.php
Code:
echo '
<th scope="col" class="smalltext"><a href="' . $scripturl . '?action=classifieds;cat=' . $cat . ';sortby=title;orderby=' . $neworder . '">',$txt['class_txt_listingtitle'],'</a></th>';
$num_cols++;

if ($modSettings['class_catlist_showimage'])
{
echo '<th scope="col" class="smalltext">&nbsp;</th>';
$num_cols++;
}
Logged
BSD2000
Newbie
*
Offline Offline

Posts: 20


http://www.VinylAudio.net


View Profile WWW
« Reply #2 on: June 14, 2012, 02:27:40 am »

I made the change, but the order is still the same.  Huh

The default is:

Listing Title               Thumbnail Image    Posted By    Current Price    Bids   Listing Date   Time Left   Comments   Views
---------------------------------------------------------------------------------------------------------------------------------------------

I'd like to change it to:

Thumbnail Image   Listing Title                Posted By     Listing Date  Comments   Views    Bids   Current Price   Time Left
---------------------------------------------------------------------------------------------------------------------------------------------

In other words, I'd like it to resemble a little more like how eBay listings look.  Wink

Also, will the layout changes carry over if the 'Use simple main layout with recent listings as the focus' is checked? I'd like both listing modes to look the same.

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

Posts: 11056


View Profile
« Reply #3 on: June 14, 2012, 08:33:41 am »

What is the address url in the browser that you want the page changed. Want to make sure we are editing the same page.

The simple layout just controls the main index of the classifieds system.
Logged
BSD2000
Newbie
*
Offline Offline

Posts: 20


http://www.VinylAudio.net


View Profile WWW
« Reply #4 on: June 14, 2012, 09:48:29 am »

Url: '.../smf/index.php?action=classifieds;cat=1'

You end up here once you click on a category from the Classifieds home page.

I have the 'Use simple main layout with recent listings as the focus' mode turned OFF.

I attached a photo of how it looks now for a reference.

The default is:

Listing Title               Thumbnail Image    Posted By    Current Price    Bids   Listing Date   Ending Date   Time Left   Comments   Views
-----------------------------------------------------------------------------------------------------------------------------------------------------------

I'd like to change it to:

Thumbnail Image   Listing Title                Posted By     Listing Date  Ending Date   Comments   Views    Bids   Current Price   Time Left
-----------------------------------------------------------------------------------------------------------------------------------------------------------
Logged
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 11056


View Profile
« Reply #5 on: June 14, 2012, 02:20:18 pm »

Around line 7597 in function ClassifiedsShowListingsRow

Find
Code:

echo '<td align="center"><a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '">', ($row['featuredlisting'] == 0 ? censorText($row['title']) : '<b>' . censorText($row['title']) . '</b>'), '</a></td>';
if ($modSettings['class_catlist_showimage'])
{
echo '<td align="center">';
if (!empty($row['primaryID_PICTURE']))
{
if (empty($row['remotefilename']))
echo '<a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '"><img src="', $modSettings['class_url'], $row['thumbfilename'], '" alt="" /></a>';
else
echo '<a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '"><img src="', $row['remotefilename'], '" alt="" /></a>';
}
echo '</td>';
}

Change to
Code:
if ($modSettings['class_catlist_showimage'])
{
echo '<td align="center">';
if (!empty($row['primaryID_PICTURE']))
{
if (empty($row['remotefilename']))
echo '<a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '"><img src="', $modSettings['class_url'], $row['thumbfilename'], '" alt="" /></a>';
else
echo '<a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '"><img src="', $row['remotefilename'], '" alt="" /></a>';
}
echo '</td>';
}

echo '<td align="center"><a href="', $scripturl, '?action=classifieds;sa=view;id=', $row['ID_LISTING'], '">', ($row['featuredlisting'] == 0 ? censorText($row['title']) : '<b>' . censorText($row['title']) . '</b>'), '</a></td>';


Logged
XHIBIT
SMF Classifieds Customer
Newbie
*****
Offline Offline

Posts: 41



View Profile WWW
« Reply #6 on: July 16, 2012, 01:56:02 pm »

I was just thinking about this. How would I be able to have my thumbnails show in the same category url listing: http://pshomesource.com/home/index.php?action=classifieds;cat=1

With the difference being 'Use simple main layout with recent listings as the focus' mode turned ON.

Is this even possible ?
Logged

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

Recent
[Today at 10:08:41 pm]

[Today at 10:08:05 pm]

[Today at 10:06:16 pm]

[Today at 07:25:45 pm]

[Today at 07:19:48 pm]

[Today at 01:36:26 pm]

[June 18, 2013, 07:27:33 am]

[June 17, 2013, 12:27:50 pm]

[June 16, 2013, 08:17:21 pm]

[June 15, 2013, 08:34:38 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 1.239 seconds with 21 queries.