{"id":14364,"date":"2011-08-11T12:29:53","date_gmt":"2011-08-11T12:29:53","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/mp-booking\/"},"modified":"2012-06-10T14:01:45","modified_gmt":"2012-06-10T14:01:45","slug":"mp-booking","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/mp-booking\/","author":8204601,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"1.2.0","tested":"3.2.1","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"mp-booking","header_author":"Mathieu Piot","header_description":"","assets_banners_color":"","last_updated":"2012-06-10 14:01:45","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.mathieu-piot.net\/wordpress\/mp-booking\/","header_plugin_uri":"http:\/\/www.mathieu-piot.net\/MP_Booking","header_author_uri":"http:\/\/www.mathieu-piot.net\/wordpress\/mp-booking\/","rating":5,"author_block_rating":0,"active_installs":20,"downloads":12508,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.1","1.2.0"],"block_files":[],"assets_screenshots":{"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1566901","resolution":"2","location":"plugin"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1566901","resolution":"3","location":"plugin"},"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1566901","resolution":"1","location":"plugin"}},"screenshots":{"1":"When adding the shortcode near a description (on this example I just create a table and put the button in a row)","2":"After click on button modal form open","3":"At the end user need to complete captcha, then information are sent to user and admin"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[8247,128536,269,8248,4488],"plugin_category":[40,42,43],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-14364","plugin","type-plugin","status-publish","hentry","plugin_tags-bb","plugin_tags-backpacker","plugin_tags-booking","plugin_tags-hostel","plugin_tags-hotel","plugin_category-calendar-and-events","plugin_category-contact-forms","plugin_category-customization","plugin_committers-_math_"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/mp-booking.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/mp-booking\/trunk\/screenshot-1.png?rev=1566901","caption":"When adding the shortcode near a description (on this example I just create a table and put the button in a row)"},{"src":"https:\/\/ps.w.org\/mp-booking\/trunk\/screenshot-2.png?rev=1566901","caption":"After click on button modal form open"},{"src":"https:\/\/ps.w.org\/mp-booking\/trunk\/screenshot-3.png?rev=1566901","caption":"At the end user need to complete captcha, then information are sent to user and admin"}],"raw_content":"<!--section=description-->\n<p>MP Booking is a WordPress plugin which provides a button that opens a simple form for hostel \/ hotel reservations. \nThe plugin allows multiple room descriptions on one page. \nThe button opens a form with jQuery \/ JQueryui functionalities such as a modal form calendar; \nspecific fields to be filled out, drop-down menus for client country, guest number, arrival time and a comment field. The booking\nprocess ends with a captcha verification and sends an e-mail confirmation to the user and to the staff entitled to manage the reservation. \nThe plugin is configurable by changing attributes in the shortcode such as: booking object \/ room type,\nmaximum number of rooms available, button label, form identification and\ndestination e-mail address for each instance of the form.<\/p>\n\n<p>This plugin is inspired by \"simple-booking-form\" plugin written by romeluv.\nIt uses jQuery \/ jJueryui (for calendar)\nCpatcha lib: \"kcaptcha\"<\/p>\n\n<h3>Other<\/h3>\n\n<p>Any comments, suggestions and feedback are warmly welcomed at:\nhttp:\/\/www.mathieu-piot.net\/mp-booking\/\nYou like it and want to suport \nYou can help me to improve it if you are a developer.\nOr send me a mail if you want to do a gift or a paypal coffee<\/p>\n\n<!--section=installation-->\n<p>Place the booking button by entering the following shortcode on your page or posts :<\/p>\n\n<p>[mp_booking object=\"Single Room\" nummax=\"2\" label=\"Book now\"\nfrom=\"noreply\"\nsend_to=\"destination1@domain.com\" captcha=\"yes\"]<\/p>\n\n<p>Configure with argument :<\/p>\n\n<ul>\n<li>@object : identifies the form instance. Examples: Single Room, Twin Room etc.\nThis will be identified in the Subject field of the incoming reservation e-mail as\nfollows: Pending reservation for <\/li>\n<\/ul>\n\n<p>&lt;<\/p>\n\n<p>object&gt;\n* @nummax : identifies the maximum number of rooms for each plugin usage\ninstance\n* @label : identifies the label of the button. Examples: Book now!, Booking, Reservation\netc. Can be used to translate the button label. Examples: R?servation, Prenotazione,\nBuchung etc.\n* @from : identifies the sending instance of the plugin.\nIf not defined, the default sender will be noreply@your-domain.com\nIf defined as a name and not an address, the sender will be name@yourdomain.\ncom\nCan be defined as an address, for example name@gmail.com but in this particular\ncase, the e-mail can be treated like spam by e-mail service providers.\n* @send_to : identifies destination addresses for booking notification.\nMultiple comma-separated addresses can be configured. Example:\ndestination1@domain.com, destination2@domain.com, destination3@domain.com\nFirst defined address is used at the bottom of client message: ?Please reply to:\ndestination1@domain.com?\n* @captcha put no if you don't want captcha<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>I don't see any plugin entry on my dashboard after install. Is it a problem?<\/dt>\n<dd><p>This plugin don't add any configuration panel in the dashboard. You just have to add the short code :<\/p>\n\n<p>[mp_booking object=\"replace_here_your_room_description\" \nnummax=\"Replace_here_max_guest_your_room_can_contain_5_for_exemple\" \nlabel=\"Replace_here_the_text_to_display_on_the_button\"\nfrom=\"Replace_here_your_hostel_name\"\nsend_to=\"Replace_here_by_your_email\" \ncaptcha=\"replace_here_by_yes_or_no\"]<\/p>\n\n<p>Exemple :\nEdit your page where you want to add a button.\nUnder your room description add the code :\n[mp_booking object=\"replace_here_your_room_description\" nummax=\"Replace_here_max_guest_your_room_can_contain_5_for_exemple\"]<\/p>\n\n<p>You ca add more option if you want to change the from email adress disable captcha.\nThe shortcode will be replaced by the button.<\/p><\/dd>\n<dt>How I can change the email adress?<\/dt>\n<dd><p>If you want to change email adress I highly recomand you to use for example :\n[mp_booking object=\"theRoom\" nummax=\"2\" label=\"Book now\"\nfrom=\"nameofmyhostel\"\nsend_to=\"admin@gmail.com\" captcha=\"yes\"]<\/p>\n\n<p>Yo can change email adress in :\n* \"From\" :\nThe \"from\" in the mail sended.\nIf not defined, the default sender will be noreply@yourdomain.com\nIf defined as a name and not an email address, the sender will be name@yourdomain.\ncom\nCan be defined as an address, for example name@gmail.com but in this particular\ncase, the e-mail can be treated like SPAM by e-mail service providers.<\/p>\n\n<ul>\n<li>\"send_to\" : \nThe mail will be sended to this adress to notify the owner of a new client's booking.\nYou can use email adress such as gmail or hotmail or whatever you want, or multiple adress separated by a coma\nThis email will be displayed at the bottom of client message: \"Please reply to:\nyouradress@something.com\"<\/li>\n<\/ul><\/dd>\n<dt>I would like to disable the captcha.<\/dt>\n<dd><p>Add captcha=\"no\" in the shortcode<\/p><\/dd>\n<dt>I want to change some text (to translate it, or other) in the form, title, field, button how could I do?<\/dt>\n<dd><ul>\n<li>Change the text label\nGo in your plugin direcory.\nEdit mp-booking-form.php with a notepad\nFind a label for exemple : \nCountry\nChange the text into &lt;label...&gt; for exemple:\nPays\nDo not change \"for=...\"<\/li>\n<\/ul>\n\n<p>Save the file.\nReload your page in your browser by ctrl+f5 (ctrl to empty page cache)<\/p>\n\n<ul>\n<li>Change \"continue\", \"back\" button :<\/li>\n<\/ul>\n\n<p>Edit the javascript file \"mp-booking.js\" in the \"js\" folder\nFind :\n$('#continue-button').html('Continue');\nReplace for example by \n$('#continue-button').html('Suivant');\nSave the file.\nReload your page in your browser by ctrl+f5 (ctrl to empty page cache)<\/p><\/dd>\n<dt>I want to change the color of the form, how I can do it simply?<\/dt>\n<dd><p>You can change by a theme existing in jquery ui by changing the line :\nwp_enqueue_style('jquery-style', 'http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.12\/themes\/ui-lightness\/jquery-ui.css');<\/p>\n\n<p>For exemple by :\nwp_enqueue_style('jquery-style', 'http:\/\/ajax.googleapis.com\/ajax\/libs\/jqueryui\/1.8.12\/themes\/base\/jquery-ui.css');<\/p>\n\n<p>You can replace \/base\/ by other theme:\nblack-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... \nTo preview it see gallery tab in :\nhttp:\/\/jqueryui.com\/themeroller\/<\/p><\/dd>\n<dt>I want to change the form's window size.<\/dt>\n<dd><p>Edit the javascript file \"mp-booking.js\" in the \"js\" folder\nFind :\n$( \"#dialog-form\" ).dialog({\n  autoOpen: false,\n  height: 500,\n  width: 700,\n  ......<\/p>\n\n<p>Change width and height size.<\/p><\/dd>\n<dt>I want transform a field optional.<\/dt>\n<dd><p>Edit the javascript file \"mp-booking.js\" in the \"js\" folder\nfind the line : \nvar fieldNeeded=new Array(\"first_name\",\"name\",\"email\",\"country\",\"date_checkin\",\"date_chekout\");\nDelete one of field for exemple checkout :<br \/>\nvar fieldNeeded=new Array(\"first_name\",\"name\",\"email\",\"country\",\"date_checkin\");<\/p><\/dd>\n<dt>There is a display problem, the form directly appear in my page, ho I can fix it?<\/dt>\n<dd><p>Verify if the problem is not due to other plugins installed or the wordpress version.\nYou can try to desactive all others plugins and see if it works, then find wich is in conflict.<\/p><\/dd>\n<dt>I want to add adding payment function like a paypall submition for complete booking, what can I do?<\/dt>\n<dd><p>This is currently not implemented. Maybe in a future release.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First plugin release.<\/li>\n<\/ul>\n\n<h4>1.2<\/h4>\n\n<ul>\n<li>Add option for configure email <\/li>\n<li>Add an option for disable kaptcha<\/li>\n<\/ul>","raw_excerpt":"Booking Wordpress button. Open a booking form in a modal pane. Just insert a shortcode into your page or post for be replac by a booking button.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/14364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=14364"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/_math_"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=14364"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=14364"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=14364"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=14364"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=14364"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=14364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}