Title: Lottery Results
Author: Zack Katz
Published: <strong>8 نوامبر 2010</strong>
Last modified: 5 سپتامبر 2014

---

جستجوی افزونه‌ها

![](https://ps.w.org/lottery/assets/banner-772x250.jpg?rev=774183)

این افزونه **با ۳ نگارش عمدهٔ اخیر وردپرس آزمایش نشده است**. ممکن است دیگر نگهداری
یا پشتیبانی نشود و هنگام استفاده با نگارش‌های تازه‌تر وردپرس مشکل سازگاری داشته 
باشد.

![](https://s.w.org/plugins/geopattern-icon/lottery_bfc2d0.svg)

# Lottery Results

 توسط [Zack Katz](https://profiles.wordpress.org/katzwebdesign/)

[دانلود](https://downloads.wordpress.org/plugin/lottery.zip)

 * [جزئیات](https://fa.wordpress.org/plugins/lottery/#description)
 * [نقد و بررسی‌ها](https://fa.wordpress.org/plugins/lottery/#reviews)
 *  [نصب](https://fa.wordpress.org/plugins/lottery/#installation)
 * [توسعه](https://fa.wordpress.org/plugins/lottery/#developers)

 [پشتیبانی](https://wordpress.org/support/plugin/lottery/)

## توضیحات

#### The official 󠀁[Lottery Results](http://www.seodenver.com/lottery/)󠁿 page is the place for support & additional information

### Show lottery results on your website.

#### View results from all 43 states with lotteries

 * Choose which games you want to display
 * Choose from different lotto results layouts
 * Embed results in your content using the `[lottery]` shortcode.

The widget automatically gets updated results every 6 hours, then they are stored
in your website for very fast load times.

### Get results the most popular lottery games:

 * Powerball
 * Mega Millions
 * Megabucks
 * Hot Lotto
 * Wild Card
 * Win for Life
 * Pick 3 / Pick 4
 * 2By2
 * Win 4
 * Sweet Millions
 * Cash 5

## عکس‌های صفحه

[⌊How the widget appears in the Widgets panel⌉⌊How the widget appears in the Widgets
panel⌉[

How the widget appears in the Widgets panel

[⌊How the signup form appears in the sidebar of a site using the twentyten theme⌉⌊
How the signup form appears in the sidebar of a site using the twentyten theme⌉[

How the signup form appears in the sidebar of a site using the twentyten theme

## نصب

 1.  Upload plugin files to your plugins folder, or install using WordPress’ built-
     in Add New Plugin installer
 2.  Activate the plugin
 3.  Go to the widgets page (Appearance > Widgets)
 4.  Drag the Lottery Results widget to a sidebar.
 5.  Choose a state from the dropdown, save the widget
 6.  Check boxes next to each game you would like to appear in the widget
 7.  Choose the style of the lotto results
 8.  Save the widget again
 9.  If you want the form to be embedded in content, instead of shown in the sidebar,
     check the checkbox for “Do not display widget in sidebar”, then follow the instructions
     for inserting the shortcode into your content where you would like the form to
     be displayed.

### Using the lottery shortcode

    ```
    [lottery state="CO" games="1,2,3" style="numbers" title="Colorado Lottery" link=true]
    ```

 * `state` – The two letter state abbreviation
 * `games` – If you don’t enter this, all games in the state will be displayed. 
   If you configure the widget, you’ll see “ID = #” next to each game. These numbers
   should be used. You can enter one game (`games="1"`) or multiple, separated by
   a comma (as shown above).
 * `style` – Three options exist: `balls` (yellow, red and green lottery balls with
   text numbers), `numbers` (circles with a gray border and images of numbers), 
   or `plain` (simple text numbers; able to be styled using your own CSS). Default:`
   balls`
 * `link` – Show a link to plugin page. To turn off, add `link="false"` or `link
   ="0"` to the `lottery` shortcode. Default: true

## سوالات متداول

  My state is missing!

Unfortunately Alabama, Alaska, Hawaii, Mississippi, Nevada, Utah & Wyoming have 
no lottery system. If you’re in this state, contact your law maker and get a lottery
going! It’s a great way to raise money for education, conservation, and other great
causes.

  What is the plugin license?

 * This plugin is released under a GPL license.

  What filters exist?

The following filters have been added to allow for modification of code using `apply_filters()`:

 * `lottery_widget`, `lottery_widget_{$widget_number}`
 * `lottery_results`
 * `lottery_game_name`
 * `lottery_game_date`
 * `lottery_game_caption`, `lottery_game_caption_{$state_code}`, `lottery_game_caption_{
   $state_code}_{$game_id}`
 * `lottery_game_bonus`, `lottery_game_bonus_{$state_code}`, `lottery_game_bonus_{
   $state_code}_{$game_id}`
 * `lottery_game_multiplier`, `lottery_game_multiplier_{$state_code}`, `lottery_game_multiplier_{
   $state_code}_{$game_id}`
 * `lottery_game_wildcard`, `lottery_game_wildcard_{$state_code}`, `lottery_game_wildcard_{
   $state_code}_{$game_id}`, `lottery_game_wildcard_result`
 * `lottery_thank_you_link`

  How do I use the `apply_filters()` functionality?

If you want to change some code in the widget, you can use the WordPress `add_filter()`
function to achieve this.

You can add code to your theme’s `functions.php` file that will modify the widget
output. Here’s an example:

    ```
    function my_example_function($widget) { 
        // The $widget variable is the output of the widget
        // This will replace 'this word' with 'that word' in the widget output.
        $widget = str_replace('this word', 'that word', $widget);
        // Make sure to return the $widget variable, or it won't work!
        return $widget;
    }
    add_filter('lottery_widget', 'my_example_function');
    ```

  How do I remove the titles of the games (the captions)?

If you want to remove game captions from the widget, add the following to your active
theme’s functions.php file:

    ```
    add_filter('lottery_game_caption', 'lottery_return_no_caption');
    function lottery_return_no_caption($caption = null) {
        return '';
    }
    ```

## نقد و بررسی‌ها

نقد و بررسی‌ای برای این افزونه یافت نشد.

## توسعه دهندگان و همکاران

“Lottery Results” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کرده‌اند.

مشارکت کنندگان

 *   [ Zack Katz ](https://profiles.wordpress.org/katzwebdesign/)

[ترجمه “Lottery Results” به زبان شما.](https://translate.wordpress.org/projects/wp-plugins/lottery)

### علاقه‌ مند به توسعه هستید؟

[کد را مرور کنید](https://plugins.trac.wordpress.org/browser/lottery/)، [مخزن SVN](https://plugins.svn.wordpress.org/lottery/)
را بررسی کنید، یا از طریق [RSS](https://plugins.trac.wordpress.org/log/lottery/?limit=100&mode=stop_on_copy&format=rss)
در [گزارش توسعه](https://plugins.trac.wordpress.org/log/lottery/) مشترک شوید.

## گزارش تغییرات

#### 1.0

 * Initial plugin release.

## اطلاعات

 *  نگارش **1.0**
 *  آخرین به‌روزرسانی **12 سال پیش**
 *  نصب‌های فعال **70+**
 *  نگارش وردپرس ** 2.8 یا بالاتر **
 *  آزمایش‌شده تا **4.0.38**
 *  زبان
 * [English (US)](https://wordpress.org/plugins/lottery/)
 * برچسب
 * [lottery](https://fa.wordpress.org/plugins/tags/lottery/)[lottery results](https://fa.wordpress.org/plugins/tags/lottery-results/)
   [lotto](https://fa.wordpress.org/plugins/tags/lotto/)[powerball](https://fa.wordpress.org/plugins/tags/powerball/)
 *  [نمایش پیشرفته](https://fa.wordpress.org/plugins/lottery/advanced/)

## امتیازها

هنوز هیچ نقدی ارسال نشده است.

[Your review](https://wordpress.org/support/plugin/lottery/reviews/#new-post)

[مشاهده همه بررسی‌ها](https://wordpress.org/support/plugin/lottery/reviews/)

## مشارکت کنندگان

 *   [ Zack Katz ](https://profiles.wordpress.org/katzwebdesign/)

## پشتیبانی

چیزی برای گفتن دارید؟ نیاز به کمک دارید؟

 [مشاهده انجمن پشتیبانی](https://wordpress.org/support/plugin/lottery/)

## کمک مالی

آیا تمایل دارید از پیشرفت این افزونه حمایت کنید؟

 [ کمک مالی به این افزونه ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=zackkatz%40gmail%2ecom&item_name=Lottery%20Results&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8)