Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vbBux / vbPlaza
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
how is the lottery system is working Details »»
how is the lottery system is working
Version: , by ForYou ForYou is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

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.

Comments
  #2  
Old 04-08-2006, 04:45 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
It should send a PM to the user who won as well.

-CMX
Reply With Quote
  #3  
Old 04-09-2006, 04:05 AM
MysticMoon's Avatar
MysticMoon MysticMoon is offline
 
Join Date: Aug 2004
Location: Michigan, USA
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 04-09-2006, 04:27 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll double check this out on vbplaza.com when I get time.

-CMX
Reply With Quote
  #5  
Old 04-15-2006, 12:48 PM
ForYou ForYou is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello ,

there is no PM send if there is user have won , i'm sure ,

from where can i see that ,

regards
Reply With Quote
  #6  
Old 04-15-2006, 01:38 PM
Ambie Ambie is offline
 
Join Date: Apr 2005
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 04-18-2006, 05:37 PM
CMX_CMGSCCC CMX_CMGSCCC is offline
 
Join Date: Sep 2003
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

-CMX
Reply With Quote
  #8  
Old 04-21-2006, 02:52 PM
ChiliVB ChiliVB is offline
 
Join Date: Dec 2005
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ambie
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.
Reply With Quote
  #9  
Old 04-21-2006, 09:28 PM
Hell? Hell? is offline
 
Join Date: Sep 2005
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 04-21-2006, 10:45 PM
yinyang's Avatar
yinyang yinyang is offline
 
Join Date: May 2004
Location: Los Angeles
Posts: 580
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yup, no PMs sent to me either.

by the way, shouldn't this be titled RAFFLE?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10285 seconds
  • Memory Usage 2,290KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete