Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

Shows "Username" as winner and not real username of user!
#1

Last Lottery Winners
User Amount Date
username 1,600.00 NB February 13th, 2011

My username is not "username" lol any idea why this is showing up instead of my real username? Because it shows everywhere else my real username except in the LAST LOTTERY WINNERS table. Also, the link is correct when you click on "username", just the text is not my username..I'm thinking the author forgot a $ in front of it or something because I assume its a variable being fetched from the database and s/he probably forgot it. I'm using the MyLottery plugin for Newpoints 1.7.

I looked through the plugin for MyLottery and found this:

Code:
            // get winner username
            $username = $db->fetch_field($db->simple_select('users', 'username', 'uid=\''.intval($winner_ticket['uid']).'\''), 'username');
            
            // log winner
            newpoints_log('lottery_winner', $lang->sprintf($lang->newpoints_lottery_log_winner, $winner_ticket['ticket_id'], $term['term_id'], $points), username,      
                        $winner_ticket['uid']);

Is there any error here? Is there supposed to be a $ in front of the username in the newpoints_log parameter?
Join us!
[Image: rotate_images.php]
#2

Re-download 1.2, it's been fixed already Smile
To download our paid plugins and receive support you must be a paid subscriber. Click here for more information.




Users browsing this thread: 1 Guest(s)