Twitter SMFHacks Facebook SMFHacks SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 22, 2013, 09:03:44 am

Login with username, password and session length
Members
Total Members: 10766
Latest: zhangxia
Stats
Total Posts: 32380
Total Topics: 5480
Online Today: 67
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 44
Total: 44
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Item thumbnail first?  (Read 1256 times)
BSD2000
Community Suite Customer
Inline PM Customer
******
Offline Offline

Posts: 17


View Profile
« 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: 10997


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
Community Suite Customer
Inline PM Customer
******
Offline Offline

Posts: 17


View Profile
« 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: 10997


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
Community Suite Customer
Inline PM Customer
******
Offline Offline

Posts: 17


View Profile
« 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: 10997


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
Inline PM Customer
*****
Offline Offline

Posts: 28



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 05:36:18 am]

[Today at 03:03:31 am]

[Today at 01:01:03 am]

[May 21, 2013, 03:27:16 pm]

[May 21, 2013, 02:11:10 pm]

[May 21, 2013, 01:18:58 pm]

[May 21, 2013, 12:22:02 am]

[May 21, 2013, 12:20:41 am]

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

[May 19, 2013, 08:18:27 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.357 seconds with 21 queries.