Title: Bolão
Author: dgmike
Published: <strong>8 de juliol de 2008</strong>
Last modified: 1 d'agost de 2008

---

Cerca extensions

Aquesta extensió **no s’ha provat en les darreres 3 versions majors del WordPress**.
Segurament no està mantinguda o suportada, i pot tenir problemes de compatibilitat
quan s’usa en versions recents del WordPress.

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

# Bolão

 Per [dgmike](https://profiles.wordpress.org/dgmike/)

[Baixa](https://downloads.wordpress.org/plugin/bolao.2.3.zip)

 * [Detalls](https://ca.wordpress.org/plugins/bolao/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/bolao/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/bolao/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/bolao/#developers)

 [Suport](https://wordpress.org/support/plugin/bolao/)

## Descripció

With this plugin is possible to make game between users of wordpress.

 1. Integrated with the system for users of WP (subscribers).
 2. The administrator creates a pull, where he defines a question and a series of answers:
 3. Who gonna win the race in Canada with F1?

 * Rubens Barrichelo
 * Felipe Massa
 * Nelson Piquet
 * Ayrton Senna

 1. The questions are closed by the administrator when the result comes out.
 2. Users who check the winner earning points X defined by default, which can be customized
    by question.
 3. Users accompanying the points earned on your profile.
 4. In future, these users can exchange points for gifts on the site.

Com este plugin é possivel fazer bolão entre os usuários do wordpress.

 1. Integrado com o sistema de usuários do WP (assinantes).
 2. O administrador cria um bolão como se fosse uma enquete, onde ele define uma pergunta
    e uma série de respostas:
 3. Quem var ganhar a corrida do Canadá de F1?

 * Rubens Barrichelo
 * Felipe Massa
 * Nelson Piquet
 * Ayrton Senna

 1. As perguntas são fechadas pelo administrador quando sai o resultado.
 2. Os usuários que marcarem o vencedor ganham X pontos definidos por padrão, que podem
    ser customizados por pergunta.
 3. Os usuários acompanham os pontos ganhos no seu perfil.
 4. No futuro, estes usuários poderão trocar pontos por brindes no site.

## Captures

[⌊The user resume of pools, here he see the oppened and closed pools.⌉⌊The user 
resume of pools, here he see the oppened and closed pools.⌉[

The user resume of pools, here he see the oppened and closed pools.

[⌊Details of pool for your users, here he can vote it.⌉⌊Details of pool for your
users, here he can vote it.⌉[

Details of pool for your users, here he can vote it.

[⌊Stuff screen, the user can request a gift for him.⌉⌊Stuff screen, the user can
request a gift for him.⌉[

Stuff screen, the user can request a gift for him.

[⌊Admin resume.⌉⌊Admin resume.⌉[

Admin resume.

[⌊Admin details of pool. A pool can't be edited for security of users, so you can
only delete or close a pool.⌉⌊Admin details of pool. A pool can't be edited for 
security of users, so you can only delete or close a pool.⌉[

Admin details of pool. A pool can’t be edited for security of users, so you can 
only delete or close a pool.

[⌊Creating a new pool.⌉⌊Creating a new pool.⌉[

Creating a new pool.

[⌊List of stuffs.⌉⌊List of stuffs.⌉[

List of stuffs.

[⌊New stuff⌉⌊New stuff⌉[

New stuff

[⌊Details of requesteds stuffs, for your internal control.⌉⌊Details of requesteds
stuffs, for your internal control.⌉[

Details of requesteds stuffs, for your internal control.

[⌊Code generated by bolao_widget function⌉⌊Code generated by bolao_widget function⌉[

Code generated by `bolao_widget` function

## Instal·lació

 1. Upload `bolao.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Configure yours pools and gifts in `Bolão` options
 4. Users can vote and request a gift on they’re Bolão options
 5. Chekout gifts for your personal control
 6. If you want to show your last pool on your template, use the `bolao_widget` function.

## PMF

#### Can I put my last pool on my theme?

Yes, just put this lines on yout template:

    ```
    <?php if (function_exists('bolao_widget')) bolao_widget(); ?> 
    ```

#### Can I customize my Bolão widget?

Of course. You can pass an array of options to your widget function. By default,
we have this options:

    ```
    array (   'title'            => 'Bolao',   'title_start'      => '<h2 class="bolao_title">',   'title_end'        => '</h2>',   'question_start'   => '<li class="bolao_question"><h3>',   'question_end'     => '</h3></li>',   'options_start'    => '<ul>',   'opt_start'        => '<li class="bolao_option {EVEN-ODD}">',   'opt_end'          => '</li>',   'options_end'      => '</ul>',   'submit_start'     => '<li class="bolao_submit">',   'submit_end'       => '</li>',   'print'            => true, ) 
    ```

So you can pass an array with any of these options, like this.

    ```
    bolao_widget(array (   'title'            => 'Make your Choice',   'question_start'   => '<h3>',   'question_end'     => '</h3>',   'options_start'    => '<div>',   'opt_start'        => '<li>',   'opt_end'          => '</li>',   'options_end'      => '</div>', )); 
    ```

And this generates this widget:

    ```
    <h2 class="bolao_title">Make your Choice</h2>   <form action="" method="get" class="bolao_form">   <input type="hidden" name="handle" value="handle" />   <input type="hidden" name="details " value="details " />    <div>       <h3>Whats the color of the white horse of Napolian?</h3>       <li>         <label for="bolao_option_4873447a33954">           <input type="radio" name="item" value="3" id="bolao_option_4873447a33954"  />           Black         </label>       </li>       <li>          <label for="bolao_option_4873447a33964">           <input type="radio" name="item" value="4" id="bolao_option_4873447a33964"  />           White         </label>       </li>       <li>         <label for="bolao_option_4873447a3396c">           <input type="radio" name="item" value="5" id="bolao_option_4873447a3396c"  />           Gray         </label>        </li>       <li>         <label for="bolao_option_4873447a33974">           <input type="radio" name="item" value="6" id="bolao_option_4873447a33974"  />           Purple         </label>       </li>       <li class="bolao_submit"><button type="submit" name="vote" value="Vote">Vote</button></li>   </div>  </form> 
    ```

## Ressenyes

No hi ha ressenyes per a aquesta extensió.

## Col·laboradors i desenvolupadors

«Bolão» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.

Col·laboradors

 *   [ dgmike ](https://profiles.wordpress.org/dgmike/)

[Traduïu «Bolão» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/bolao)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/bolao/), baixeu-vos
el [repositori SVN](https://plugins.svn.wordpress.org/bolao/), o subscriviu-vos 
al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/bolao/) 
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/bolao/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Versió **2.3**
 *  Darrera actualització **fa 18 anys**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 2.5 o posterior **
 *  Provada fins a **2.5**
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/bolao/)
 * Etiquetes
 * [answer](https://ca.wordpress.org/plugins/tags/answer/)[game](https://ca.wordpress.org/plugins/tags/game/)
   [gift](https://ca.wordpress.org/plugins/tags/gift/)[pool](https://ca.wordpress.org/plugins/tags/pool/)
   [questions](https://ca.wordpress.org/plugins/tags/questions/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/bolao/advanced/)

## Valoracions

Encara no s'ha enviat cap ressenya.

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

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/bolao/reviews/)

## Col·laboradors

 *   [ dgmike ](https://profiles.wordpress.org/dgmike/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/bolao/)

## Feu una donació

Voleu ajudar a què l’extensió millori?

 [ Feu una donació a aquesta extensió ](http://dgmike.wordpress.com)