Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4257
Latest: Alex998.
New This Month: 1
New This Week: 0
New Today: 0
Stats
Total Posts: 43295
Total Topics: 7523
Most Online Today: 230
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 210
Total: 210

Author Topic: Can't Hide recent bids box  (Read 5493 times)

0 Members and 1 Guest are viewing this topic.

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Can't Hide recent bids box
« on: March 08, 2015, 05:12:37 pm »
I can't seem to disable the recent bids box on my classifieds landing page although I have the appropriate boxes checked in admin options:

http://www.420connect.info/forum/index.php?action=classifieds

(I'd like to completely remove the block on the main page (under categories)

Can you help commenting it out or fixing the bug?  :-*

Thank you in advance

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Can't Hide recent bids box
« Reply #1 on: March 08, 2015, 05:55:33 pm »
I couldn't edit the above but could you also, help with having the image being shown first, the the item name (in the list of items for sale)

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Can't Hide recent bids box
« Reply #2 on: March 08, 2015, 06:57:52 pm »
1. Fixed in latest update 4.0.2 release
4.0.2
!Fixed not displaying the recent bids on the homepage for the second layout option if you had the setting disabled.



Changing the picture order/title order is harder to do since it is located in many areas
Code: [Select]
echo '
<th scope="col" class="smalltext first_th"><a href="' . $scripturl . '?action=classifieds;sortby=title;orderby=' . $neworder . '">',$txt['class_txt_listingtitle'],'</a></th>';
$num_cols++;

if ($modSettings['class_catlist_showimage'])
{
echo '<th scope="col">&nbsp;</th>';
$num_cols++;
}

IN the main template

And classifiedsshowlistingsrow function contains the ordder.
Also any table that calls that function will need to be updated as well.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Can't Hide recent bids box
« Reply #3 on: March 09, 2015, 05:26:55 pm »
1. Fixed in latest update 4.0.2 release
4.0.2
!Fixed not displaying the recent bids on the homepage for the second layout option if you had the setting disabled.



Changing the picture order/title order is harder to do since it is located in many areas
Code: [Select]
echo '
<th scope="col" class="smalltext first_th"><a href="' . $scripturl . '?action=classifieds;sortby=title;orderby=' . $neworder . '">',$txt['class_txt_listingtitle'],'</a></th>';
$num_cols++;

if ($modSettings['class_catlist_showimage'])
{
echo '<th scope="col">&nbsp;</th>';
$num_cols++;
}

IN the main template

And classifiedsshowlistingsrow function contains the ordder.
Also any table that calls that function will need to be updated as well.

Thank you for the update and pointer for moving the images.

I'll leave the images as is for now - The code doesn't look too 'friendly' on closer inspection :P

& Would you mind sharing the fix for the recent bids box?
I've customised a few bits I'd like to keep from losing when updating, if possible!

Many thanks, as always!

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16452
    • View Profile
Re: Can't Hide recent bids box
« Reply #4 on: March 09, 2015, 05:34:56 pm »
Changed code in themes/default/classifieds2.template.php

In function template_layout_option_recentlistings()

Code: [Select]
if (!empty($modSettings['class_index_show_recent_bids']))
{
echo '<br /><br />
<div class="cat_bar">
<h3 class="catbg centertext">
        ', $txt['class_txt_recentbids'], '
        </h3>
  </div>
<table cellspacing="0" cellpadding="5" border="0" align="center" width="90%" class="tborder">
';

$result = $smcFunc['db_query']('', "
select
m.real_name, m.ID_MEMBER, l.ID_LISTING, l.title, l.ID_CAT, c.title cattitle, b.amount, b.date,
b.private_bid, l.currency, mg.online_color     
FROM ({db_prefix}class_listing as l, {db_prefix}class_bids as b)
LEFT JOIN {db_prefix}class_cat as c ON (c.ID_CAT = l.ID_CAT)   
LEFT JOIN {db_prefix}members as m ON (m.ID_MEMBER = b.ID_MEMBER)   
        LEFT JOIN {db_prefix}membergroups AS mg ON (mg.ID_GROUP = IF(m.ID_GROUP = 0, m.ID_POST_GROUP, m.ID_GROUP))
WHERE b.ID_LISTING = l.ID_LISTING  AND l.approved = 1 AND l.removed = 0 ORDER BY b.ID_BID DESC LIMIT " . $modSettings['class_index_show_recent_items_comments']);
while ($row =  $smcFunc['db_fetch_assoc']($result))
{
echo '<tr  class="windowbg">';

echo '<td><a href="' . $scripturl  . '?action=classifieds;cat=' . $row['ID_CAT'] . '">' . $row['cattitle'] . '</a>';


echo '<br />' . Classifieds_formatprice($row['amount'], $row['currency']);

echo '<br />' .  $txt['class_bid_made_pm_body_by'];

if ($row['private_bid'] == 1)
{
echo $txt['class_private_bid'];
}
else
{
if (empty($row['real_name']))
echo $txt['class_guest'];
else
echo '<a href="' . $scripturl  . '?action=profile;u=' . $row['ID_MEMBER'] . '"' . (!empty($row['online_color']) ? ' style="color: ' . $row['online_color'] . ';" ' :'' ) . '>' . $row['real_name'] . '</a>';
}

echo '</td>';


echo '</tr>';


}
$smcFunc['db_free_result']($result);

echo '</table>';
}


// Setup layout column #2
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Can't Hide recent bids box
« Reply #5 on: March 09, 2015, 05:40:03 pm »
 ??? Sorry to be a pain, would you mind applying it to mine..

My
Code: [Select]
if (!empty($modSettings['class_index_show_recent_bids']))
seems a bit far away from the other parts of similar code to do a straight-forward replace   :-X

Thanks again

Offline 420connect

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Can't Hide recent bids box
« Reply #6 on: March 09, 2015, 05:49:47 pm »
Nevermind, got it working - thank you! :)

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
5732 Views
Last post November 11, 2007, 08:34:13 am
by Jump1979man
3 Replies
5573 Views
Last post June 03, 2008, 08:15:58 pm
by rgsknr
clear bids

Started by rgsknr Bugs

1 Replies
5991 Views
Last post June 10, 2008, 08:04:52 pm
by SMFHacks
1 Replies
5559 Views
Last post July 04, 2008, 04:46:38 pm
by SMFHacks
Bug with bids

Started by kiano Bugs

1 Replies
4879 Views
Last post June 28, 2011, 08:39:35 am
by SMFHacks

+- Recent Topics

Please Help! by SMFHacks
April 17, 2024, 08:04:55 am

Rate own images by fvlog19
April 11, 2024, 10:56:53 am

Tidy Child Boards on 2.1.4 by SMFHacks
April 04, 2024, 03:54:12 pm

Problems SMF 2.0.19 > 2.1.4 SMF Gallery Pro - Recents Images to overall header by Michel68
March 30, 2024, 12:41:08 pm

Can't DROP 'id_member'; check that column/key exists Datei: by SMFHacks
March 30, 2024, 11:58:20 am

No thumbnails on new uploads by Tonyvic
March 29, 2024, 06:26:18 am

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

Powered by EzPortal