Anonymous User IDs

Details of modifications which users can incorporate within Enuuk Auction Platform free of charge
RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Anonymous User IDs

Post by RWAP » Thu Mar 22, 2012 2:57 pm

Some more changes I have found....

In class\Action\User.php

Find:

Code: Select all

        $users     = User::getListFromDB($this->db,
                            'where countryId like "%'.$par[0].'%" and active=1 order by name');
Change this to:

Code: Select all

        $users     = User::getListFromDB($this->db,
                            'where countryId like "%'.$par[0].'%" and active=1 order by id');
In class\userFeedback.php

Find:

Code: Select all

    static public function getListFromDB(MyPDO $DB, $restrictions = '')
    {
        $data = $DB->query('select userFeedbacks.id, fromUser, toUser, bidId,
                                users1.name as fromUserName, users2.name as toUserName,
                                userFeedbacks.value, userFeedbacks.comment,
                                userFeedbacks.date, offerId, items.name as item
                        from '.self::DB_TABLE.' as userFeedbacks
                        left join '.Offer::DB_TABLE.' as offers on offers.id = userFeedbacks.offerId
                        left join '.Item::DB_TABLE.' as items on items.id = offers.itemId
                        left join '.User::DB_TABLE.' as users1 on users1.id = userFeedbacks.fromUser
                        left join '.User::DB_TABLE.' as users2 on users2.id = userFeedbacks.toUser
                        '.$restrictions)
                    ->fetchAll(PDO::FETCH_ASSOC);
        return $data;
    }
Change this to:

Code: Select all

    static public function getListFromDB(MyPDO $DB, $restrictions = '')
    {
        $data = $DB->query('select userFeedbacks.id, fromUser, toUser, bidId,
                                userFeedbacks.value, userFeedbacks.comment,
                                userFeedbacks.date, offerId, items.name as item
                        from '.self::DB_TABLE.' as userFeedbacks
                        left join '.Offer::DB_TABLE.' as offers on offers.id = userFeedbacks.offerId
                        left join '.Item::DB_TABLE.' as items on items.id = offers.itemId
                        '.$restrictions)
                    ->fetchAll(PDO::FETCH_ASSOC);
        return $data;
    }

RWAP
Site Admin
Posts: 748
Joined: Fri Jan 08, 2010 2:23 am
Location: Stoke-on-Trent
Contact:

Re: Anonymous User IDs

Post by RWAP » Wed Aug 12, 2015 10:23 am

The other place to look is in all of the files in the class\OfferMail folder.

Look for lines such as :

Code: Select all

$params['owner']        = $subject->item->user->id.' ('.$subject->item->user->name.')';
Change this to:

Code: Select all

$params['owner']        = $subject->item->user->id;
(if you search for user->name.')' in each of these files, you will find all instances

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest