Title: MP Booking
Author: _Math_
Published: <strong>Ògún  11, 2011</strong>
Last modified: Òkúdù 10, 2012

---

Ṣàwárí àwọn plugin

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

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

# MP Booking

 Láti ọwọ́ [_Math_](https://profiles.wordpress.org/_math_/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/mp-booking.1.2.0.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/mp-booking/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/mp-booking/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/mp-booking/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/mp-booking/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/mp-booking/)

## Àpèjúwe

MP Booking is a WordPress plugin which provides a button that opens a simple form
for hostel / hotel reservations.
 The plugin allows multiple room descriptions on
one page. The button opens a form with jQuery / JQueryui functionalities such as
a modal form calendar; specific fields to be filled out, drop-down menus for client
country, guest number, arrival time and a comment field. The booking process ends
with a captcha verification and sends an e-mail confirmation to the user and to 
the staff entitled to manage the reservation. The plugin is configurable by changing
attributes in the shortcode such as: booking object / room type, maximum number 
of rooms available, button label, form identification and destination e-mail address
for each instance of the form.

This plugin is inspired by “simple-booking-form” plugin written by romeluv.
 It 
uses jQuery / jJueryui (for calendar) Cpatcha lib: “kcaptcha”

### Other

Any comments, suggestions and feedback are warmly welcomed at:
 http://www.mathieu-
piot.net/mp-booking/ You like it and want to suport You can help me to improve it
if you are a developer. Or send me a mail if you want to do a gift or a paypal coffee

## Àwọn àwòrán ìbòjú

[⌊When adding the shortcode near a description (on this example I just create a 
table and put the button in a row)⌉⌊When adding the shortcode near a description(
on this example I just create a table and put the button in a row)⌉[

When adding the shortcode near a description (on this example I just create a table
and put the button in a row)

[⌊After click on button modal form open⌉⌊After click on button modal form open⌉[

After click on button modal form open

[⌊At the end user need to complete captcha, then information are sent to user and
admin⌉⌊At the end user need to complete captcha, then information are sent to user
and admin⌉[

At the end user need to complete captcha, then information are sent to user and 
admin

## Ìgbéwọlẹ̀

Place the booking button by entering the following shortcode on your page or posts:

[mp_booking object=”Single Room” nummax=”2Ìtumọ̀ Yorùbá: ″ label=”Book now” from
=”noreply” send_to=”destination1@domain.com” captcha=”yes”]

Configure with argument :

 * @object : identifies the form instance. Examples: Single Room, Twin Room etc.
   This will be identified in the Subject field of the incoming reservation e-mail
   as follows: Pending reservation for

<

## FAQ

  I donÌtumọ̀ Yorùbá: ’t see any plugin entry on my dashboard after install. Is 
it a problem?

This plugin donÌtumọ̀ Yorùbá: ’t add any configuration panel in the dashboard. You
just have to add the short code :

[mp_booking object=”replace_here_your_room_description”
 nummax=”Replace_here_max_guest_your_room_can_contain_5_for_exemple”
label=”Replace_here_the_text_to_display_on_the_button” from=”Replace_here_your_hostel_name”
send_to=”Replace_here_by_your_email” captcha=”replace_here_by_yes_or_no”]

Exemple :
 Edit your page where you want to add a button. Under your room description
add the code : [mp_booking object=”replace_here_your_room_description” nummax=”Replace_here_max_guest_your_room_can_contain_5_for_exemple”]

You ca add more option if you want to change the from email adress disable captcha.

The shortcode will be replaced by the button.

  How I can change the email adress?

If you want to change email adress I highly recomand you to use for example :
 [
mp_booking object=”theRoom” nummax=”2Ìtumọ̀ Yorùbá: ″ label=”Book now” from=”nameofmyhostel”
send_to=”admin@gmail.com” captcha=”yes”]

Yo can change email adress in :
 * “From” : The “from” in the mail sended. If not
defined, the default sender will be noreply@yourdomain.com If defined as a name 
and not an email address, the sender will be name@yourdomain. com Can be defined
as an address, for example name@gmail.com but in this particular case, the e-mail
can be treated like SPAM by e-mail service providers.

 * “send_to” :
    The mail will be sended to this adress to notify the owner of a 
   new clientÌtumọ̀ Yorùbá: ’s booking. You can use email adress such as gmail or
   hotmail or whatever you want, or multiple adress separated by a coma This email
   will be displayed at the bottom of client message: “Please reply to: youradress@
   something.com”

  I would like to disable the captcha.

Add captcha=”no” in the shortcode

  I want to change some text (to translate it, or other) in the form, title, field,
button how could I do?

 * Change the text label
    Go in your plugin direcory. Edit mp-booking-form.php with
   a notepad Find a label for exemple : Country Change the text into <label…> for
   exemple: Pays Do not change “for=…”

Save the file.
 Reload your page in your browser by ctrl+f5 (ctrl to empty page 
cache)

 * Change “continue”, “back” button :

Edit the javascript file “mp-booking.js” in the “js” folder
 Find : $(‘#continue-
button’).html(‘Continue’); Replace for example by $(‘#continue-button’).html(‘Suivant’);
Save the file. Reload your page in your browser by ctrl+f5 (ctrl to empty page cache)

  I want to change the color of the form, how I can do it simply?

You can change by a theme existing in jquery ui by changing the line :
 wp_enqueue_style(‘
jquery-style’, ‘http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/themes/ui-lightness/
jquery-ui.css’);

For exemple by :
 wp_enqueue_style(‘jquery-style’, ‘http://ajax.googleapis.com/ajax/
libs/jqueryui/1.8.12/themes/base/jquery-ui.css’);

You can replace /base/ by other theme:
 black-tie or blitzer or cupertino or dark-
hive or dot-luv or vader or ui-lightness or ui-darkness or trontastic or swanky-
purse or sunny or start or south-street or smoothness or redmond or pepper-grinder
etc… To preview it see gallery tab in : http://jqueryui.com/themeroller/

  I want to change the formÌtumọ̀ Yorùbá: ’s window size.

Edit the javascript file “mp-booking.js” in the “js” folder
 Find : $( “#dialog-
form” ).dialog({ autoOpen: false, height: 500, width: 700, ……

Change width and height size.

  I want transform a field optional.

Edit the javascript file “mp-booking.js” in the “js” folder
 find the line : var
fieldNeeded=new Array(“first_name”,”name”,”email”,”country”,”date_checkin”,”date_chekout”);
Delete one of field for exemple checkout : var fieldNeeded=new Array(“first_name”,”
name”,”email”,”country”,”date_checkin”);

  There is a display problem, the form directly appear in my page, ho I can fix 
it?

Verify if the problem is not due to other plugins installed or the wordpress version.

You can try to desactive all others plugins and see if it works, then find wich 
is in conflict.

  I want to add adding payment function like a paypall submition for complete booking,
what can I do?

This is currently not implemented. Maybe in a future release.

## Àwọn àgbéyẹ̀wò

Kò sí àwọn àgbéyẹ̀wò fún plugin yìí.

## Àwọn Olùkópa & Olùgbéejáde

“MP Booking” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa sí
plugin yìí.

Àwọn Olùkópa

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

[Túmọ̀ “MP Booking” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/mp-booking)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/mp-booking/), ṣàyẹ̀wò 
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/mp-booking/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/mp-booking/) nípasẹ̀
[RSS](https://plugins.trac.wordpress.org/log/mp-booking/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 1.0

 * First plugin release.

#### 1.2

 * Add option for configure email
 * Add an option for disable kaptcha

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **1.0.1**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 14 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **20+**
 *  Ẹ̀yà WordPress ** 3.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **3.2.1**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/mp-booking/)
 * Àwọn àmì
 * [B&B](https://yor.wordpress.org/plugins/tags/bb/)[booking](https://yor.wordpress.org/plugins/tags/booking/)
   [hostel](https://yor.wordpress.org/plugins/tags/hostel/)[Hotel](https://yor.wordpress.org/plugins/tags/hotel/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/mp-booking/advanced/)

## Àwọn ìbò

 5 lára àwọn ìràwọ̀ 5.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/mp-booking/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/mp-booking/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/mp-booking/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/mp-booking/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/mp-booking/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/mp-booking/reviews/)

## Àwọn Olùkópa

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

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/mp-booking/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](http://www.mathieu-piot.net/wordpress/mp-booking/)