Version: , by ForYou
Developer Last Online: May 2010
Version: Unknown
Rating:
Released: 04-06-2006
Last Update: Never
Installs: 0
No support by the author.
Dear sir
If you please i found some difficulty to get how is the lottery system is working, rather than i've some questions regarding this advantage
I would like to know how the lottery system is choosing the daily and weekly winner
What are the steps which are used to choose that winner and if there are basics for that or it's done randomly ,,,,,,
why the lottery system doesn't send a private message to the member to inform him that he win
and if that option is existing in the new version
you are kindly requested to answer the above inquiries
Thanks and best regards
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
1) It counts the number of tickets for the currently expiring lottery (if any tickets are purchased and if the lottery is expired)
2) It randomly chooses a number between 0 and the number of tickets.
3) It pulls that entry from the MySQL database of the tickets, and thats the winner.
Code:
// send a private message to the user that they have won the lottery
vbplaza_send_pm(0, $userinfo, $title, $message);
Doesn't send PM for lottery winners for my board either, I was actually here looking for the answer to that. Was suprised it didn't since you did awesome with sending PMs for gifts & donate.
While here, I do have another question, the auto PMs sent don't include the sig for that user, is it possible to make it use the sig?
Other then those 2 things I am in love with this, so much better then the old store/cash hack I used on 3.0.x
I set up a test lottery, bought a ticket and then ran it. Of course I won because I was the only ticket holder,lol. Anyway, I did get a pm notifying me of winning. BUT no pms are being sent out on the weekly and daily lottery at all. So I can't figure out what's wrong.
It's not logged into the users history when they have won, but I have received the PM when I won the lottery. To test it, I made sure I was the only one who purchased a ticket, and then set the lottery end time to yesterday and ran the cron job to process the lottery and I won the lottery and received a PM for it. So if its not working on ur end, its something different u have in ur setup that is causing an issue and I'd need admin access with can administer plugins, settings & scheduled tasks to take a look at it further.
I set up a test lottery, bought a ticket and then ran it. Of course I won because I was the only ticket holder,lol. Anyway, I did get a pm notifying me of winning. BUT no pms are being sent out on the weekly and daily lottery at all. So I can't figure out what's wrong.
CMX, I had the same experience as Ambie on this.
I setup a test lottery, it completed and a PM was sent. But the Daily and Weekly lotteries are not sending PM's to the winners.
They used to send those PM's a couple of versions ago for me, but I'm not exactly sure in wich version this feature was lost.
Concerning the inner workings of the lottery, is there a way we could have a lotto-like system, meaning, the user chooses the numbers he wants to play with and if there is no winner the points get accumulated for the next draw?