Lottery Add-on

Store / / Lottery Add-on
Sale!
lottery-addon-772×250
1.2 Lottery Management1.2 Lottery Front Display1.2 Lottery Evaluate Formula1.2 Lottery Winnings1.2 Lottery - New Winnings Shortcode
Minimum Requirements
  • WordPress 4.0
  • PHP 5.3
  • myCRED 1.6
Version
  • 1.2.3
4.29 out of 5 based on 14 customer ratings
(14 customer reviews)

$ 69

You must be logged in to make a purchase. Signup for a free account or Login.

Gamify your WordPress website by offering lotteries for points!

The myCRED Lottery add-on allows you to setup two types of lotteries where your users can enter and win points.

Pick a Winner!

You can select to draw one or more winners in a raffle type of lottery. Your users buy “entries” and receive a unique ticket number. When the lottery has been closed, x number of ticket numbers are drawn at random. The winners are paid either a lump sump of points or points based on a formula.

Winning Numbers

One of the most common lottery types where x number of winning numbers are drawn from a range. You can set the range, how many numbers to draw and how much points users win based on the number of correct picks.

Features:

  • Set how many winners to draw.
  • Set how many points each winner gets.
  • Option to allow purchase of one or multiple entries.

Features:

  • Set the number range.
  • Set how many numbers to draw.
  • Set how many points to give based on correct picks.
  • Optional Jackpot system.
Common Features
  • Option to schedule lotteries to run daily, weekly or monthly. Also includes the option to run the lottery manually.
  • Option to send custom email notifications for winners.
  • Easy management of lotteries via the admin area.
  • Option to set a minimum or maximum balance requirement to enter the lottery.
  • Option to exclude users based on role or ID from lottery.
  • Option to refund entries.

Fair Game Limitations

The lottery add-on while being customisable have certain intentional limitations in order to provide a fair game:

  • The random number generator is not customisable.
  • Administrators can not chose the winner or winning numbers of a lottery.
  • Lottery entries can not be altered. They can only be deleted or refunded.

  • Lottery entries can only be deleted / refunded while the lottery has started. Once the winner or winning numbers have been drawn, no further changes can be made.

 

Full Disclosure

The lottery add-on plugin is not encoded. Authorized personnel with a basic understanding of PHP can view the files and potentially manipulate them!

Installation Guide

  1. Unzip the attached zip file and upload the folder to your websites plugin directly.
  2. Make sure you have myCRED installed and setup.
  3. Enable the myCRED Lottery plugin.
  4. Once enabled, a new menu will be available under “myCRED” in your admin area called “Lotteries”.
  5. Before creating a lottery, make sure your websites Timezone is setup and correct! Otherwise the schedule will be firing according to your server time which might not be the same as your local time! You can find your timezone settings on the “Settings” > “General” page.
  6. This add-on will check your time format and if you use AM/PM the lottery will also use AM/PM. Otherwise it will default to the 24 hour system. (optional)
  7. Login to your myCRED account here on mycred.me
  8. Click “Your Licenses” and enter the domain name of the website where this add-on is used. Save. (If you do not do this, your plugin will never update it self when a new version is available).

 

How to setup a lottery

  1. Visit the “Lotteries” page under the “myCRED” menu.
  2. Click “Create Lottery” in the top of the page.
  3. Just as with posts, start by giving your lottery a title and select your lottery “Type”. Before updating, also select your schedule. Choose either to run this lottery once, daily or weekly.
  4. Once you have entered in your dates and times, click “Save Draft”. Note that each state (start, close, draw and pay) must have a unique time. You can not draw winners and payout the same hour. This is so you can correct mistakes (if they happen) before each state change.
  5. When the lottery draft has been saved, 4 new meta boxes will be loaded.
  6. Start by setting up your lottery (The Setup Meta Box). By default, mycred will draw 5 winners / winning numbers. You can change this, but if you do, you must click “Update” for the Winnings section to update! myCRED will save your lottery settings each time the edit page is re-loaded.
  7. Set your requirements for participating in this lottery.
  8. Set exclusions for this lottery.
  9. Adjust the templates used by the lottery.
  10. Save.
  11. Once you have all the settings according to your liking, you can publish the lottery though the “Activate Lottery” button.

 

How to show lotteries

Lotteries are shown on your website via the mycred_lottery or mycred_lotteries shortcodes. The mycred_lottery shows a specific lottery while the mycred_lotteries shortcode shows all published lotteries. You can find more information on how to use these shortcodes in the myCRED Codex.

 

How to edit lotteries

You can edit lotteries just like any other custom post type in WordPress via your admin area. NOTE In the current version of the lottery add-on, you can not make changes to a lottery that is active! I will add this feature to the next version of the lottery add-on.

  1. Visit the myCRED > Lotteries page.
  2. Select the lottery you want to edit and click on the lottery title.
  3. Edit the lottery and save your changes.

 

Formulas

By default you can set a fixed number of points to award winners. As of version 1.2, you can also use formulas to give points based on specific metrics. For example you could set to payout a percentage of the total amount of points user has paid to enter the lottery. The following keywords are available in formulas:

Keyword Description Example
PAYMENTS Represents the total amount of points paid to play this lottery. Pay 10 points plus 10% of the total amount paid into this lottery:

10 + ( PAYMENTS * 0.1 )
ENTRIES Represents the total number of entries in the lottery. Pay 2 points per entry in the lottery as payout:

2 * ENTRIES
REFUNDS Represents the total amount of points paid out in refunds for this lottery. Pay 10% of the total amount paid into this lottery minus any refunds there might have been:

( PAYMENTS * 0.1 ) - REFUNDS
Formulas are not mandatory, if you prefer to pay out a given amount you can do so.

 

Note about formulas and testing

When testing, make sure you have enough entries / payments in the lottery for the payout to work. If your for example use whole numbers for your points and the formula results in a value smaller then 1, the result will be interpreted as zero and no payout will occur. I recommend you set a high price or enter enough entries when testing to prevent this from occurring.

The demo is currently unavailable due to the the upcoming release of version 2.0 of this plugin.

Product Changelog

Version 1.2.3

  • FIX – When selecting to draw / pick more then 5 winners / numbers, the settings are not saved when the lottery is saved.
  • FIX – Updated the Math Evaluation script to latest version to resolve certain installations where formulas did not payout.

Version 1.2.2

  • FIX – Updated language files.
  • FIX – Fixed PHP notice when editing lottery.
  • TWEAK – Slight adjustment to the admin style.

Version 1.2.1

  • FIX – If too few users play a lottery, the tickets are not refunded but instead drawn as winners.

Version 1.2

  • NEW – Support for monthly and manual schedules.
  • NEW – Re-design of the lottery editor.
  • NEW – Added new shortcode mycred_lottery_winnings.
  • TWEAK – Improved schedule process.
  • NEW – Option to award points based on formula with built-in formula evaluation for testing.
  • NEW – Option to set which point type to pay out.

Version 1.1.1

  • Fixed Bug #7 – Fixed schedule date issue showing server time and not local time set.
  • Fixed Bug #8 – Fixed issue with drawn winners getting saved twice causing results to show duplicate winners.
  • Fixed Bug #9 – The lottery add-on translates certain admin buttons.
  • Added new Winning Numbers Widget showing a given lotteries drawn numbers.
  • Hidden the Publish button to prevent lotteries from being published before a type and schedule is set. If a lottery is published before these details are saved, the lottery will fail.

Version 1.1

  • Fixed Bug #6 – Schedule is not working all the time. Rewrote the schedule.
  • Added option to manually add entries in lotteries.
  • Added next scheduled state in the lottery list.
  • Replaced the UL element used for the past winners with a table.
  • New mycred_lottery_jackpot shortcode to show a lotteries current jackpot.
  • New mycred_lottery_plays shortcode.

Version 1.0.3

  • Fixed Bug #5 – myCRED Icon not visible when viewing lotteries or editing lotteries in the admin area.
  • Added several action and filter hooks to allow customizations of payouts and participation.

Version 1.0.2

  • Fixed Bug #4 – Update button missing name causing lottery to re-set during edit
  • Adjusted lottery for myCRED 1.3

Version 1.0.1

  • Fixed Bug #1 – Draw Winners are not paid out instead causes a fatal error.
  • Fixed Bug #2 – Past Winners are incorrectly parsed causing fatal error.

Version 1.0

  • Initial release

Frequently Asked Questions

No questions found for this add-on.

14 reviews for Lottery Add-on

  1. Review by jaykdoe
    3 out of 5

    The lottery plugin is a great idea but when I tried to implement it, I found that my daily lotteries did not run reliably every day. Additionally, I do not agree with the practice of being charged for moving my license from one domain to another. By purchasing a license, I should be free to use it as a please on my domains and should not have to pay to switch domains. The $69 price point is not worth it in my opinion unless it can be used reliably.

  2. Review by cashbackcard
    4 out of 5

    We used in our backpontos.com website and are pleased with all products.
    I would suggest, list the winners by name or login.

  3. Review by justinroman
    4 out of 5

    Would be perfect if there was a rollover feature and reporting win to user account to be claimed before paid

  4. Review by Reinald
    5 out of 5

    I like this add on. Very professionally coded and works just well!

  5. Review by bogus
    4 out of 5

    Excellent add-on!

  6. Review by Vincent
    4 out of 5

    Well, not bad plugin … not bad, but the price is really to high for this …

  7. Review by Aslan Guseinov
    5 out of 5

    Great add on, especially when using with all powerful features of myCRED.

  8. Review by Jan
    5 out of 5

    perfekt plugin for a nice little gaming-site

  9. Review by hugblue
    2 out of 5

    Until there is an update for the Lottery then it takes to much manual work.
    When the Lottery can be trusted to run every time then it will be a very great add-on.
    Problems :
    // The Lotteries cannot be trusted that the Lotteries are run on time.
    // The based on formula is not working. It does not pay out.
    // Pick number Lottery do not work if you add to many pick numbers or change to much.
    // There have not been any update in ages.

  10. Review by Ashwin Rajgopal
    4 out of 5

    The price of the plugin is the only issue. Had some trouble in the beginning but it was fixed quickly through the forum and now I can offer high stakes lotteries and sweepstakes to my users.

  11. Review by helpmelol
    5 out of 5

    Great add-on! Very easy to set-up and there are lots of possibilities. You can hold multiple lotteries, great for different ”types” of lotteries.

    Highly recommended plugin.

  12. Review by Sol Huebner
    5 out of 5

    Really great addon for myCRED

  13. Review by BirminghamIU
    5 out of 5

    Excellent plugin for all

  14. Review by Nathan Pinno
    5 out of 5

    Excellent add-on!A must for any owner wanting to draw in more members!

Only logged in customers who have purchased this product may leave a review.

Last edited December 1, 2016