Change number Featured, Next ending, Last Created & Higher Bids Auctions on Home Page

Discussion in 'Commonly Asked Questions and Their Solutions' started by Box Lot, Jun 25, 2012.

Thread Status:
Not open for further replies.
  1. Box Lot

    Box Lot Super Moderator Staff Member Developer

    Joined:
    Dec 18, 2008
    Messages:
    2,617
    Likes Received:
    164
    Featured Auctions:
    in /index.php

    Find:
    Code:
    // get featured items
    $query = "SELECT id, title, current_bid, pict_url, ends, num_bids, minimum_bid, bn_only, buy_now
            FROM " . $DBPrefix . "auctions
            WHERE closed = 0 AND suspended = 0 AND starts <= " . $NOW . "
            AND featured = 'y'
            ORDER BY RAND() DESC LIMIT 12";
    $res = mysql_query($query);
    $system->check_mysql($res, $query, __LINE__, __FILE__);
    while($row = mysql_fetch_assoc($res))
    {
    Change "12" to the number you want to display on the home page.

    Next Ending, Last Created & Higher Bids:
    In Webid Admin,
    Go to Settings - Display Settings
    Edit numbers there for each category of Auction.
     
    Last edited: Jun 25, 2012
Thread Status:
Not open for further replies.

Share This Page