Recently viewed items php Version WeBid 1.2.* ONLY

Recently viewed items php Version

  1. Recently Viewed Items - Update to PDO

    pani100
    Script has been updated and slightly re-written.
    Tested on V1.2.2.2 (current Github version) but should work on previous PDO versions.
    This version uses existing session and not cookies.
    Any problems let me know.
    Enjoy

    PHP:
    /***************************************************************************
    *   Recently Viewed Items Mod
    ***************************************************************************

    *   The function 'recently_viewed_items' below (lines 82 - 118) can be moved to...
  2. Updated Recently Viewed Items MOD now without cookies .

    pani100
    Remove all previous scripts (show items and also save cookie scripts)
    Open item.php and around line 75 find
    PHP:
    if (!in_array($id$_SESSION['WEBID_VIEWED_AUCTIONS']))
        {
            
    $query "UPDATE " $DBPrefix "auccounter set counter = counter + 1 WHERE auction_id = " $id;
            
    $system->check_mysql(mysql_query($query), $query__LINE____FILE__);
            
    $_SESSION['WEBID_VIEWED_AUCTIONS'][] = $id;
        }
    and replace with
    PHP:
    if (!in_array($id,...
    super_st likes this.