WordPress.org

Ready to get started?Download WordPress

Forums

Booking Xpress
[resolved] Shortcode Placement (6 posts)

  1. martiniboy
    Member
    Posted 1 year ago #

    Hi
    Excellent plugin - have been waiting for a good booking plugin.
    I noticed that while using the shortcode it always puts the button/form at the top of the post/page. After scouring your code I found where the shortcodes were created and if you edit libs/booking-express-class.php on line 336
    from

    function bookingXpressShortCode()
    {
      return extract_ShortCodes();
    }
    function bookingXpressShortCode1()
    {
      return extract_ShortCodes1();
    }
    function bookingXpressShortCode2()
    {
      return extract_ShortCodes2();
    }
    function bookingXpressShortCode3()
    {
      return extract_ShortCodes3();
    }
    function bookingXpressShortCode4()
    {
      return extract_ShortCodes4();
    }

    to

    function bookingXpressShortCode()
    {
    
    ob_start();
    	extract_ShortCodes();
    		$content = ob_get_clean();
    	return $content;
    }
    function bookingXpressShortCode1()
    {
    
    ob_start();
    	 extract_ShortCodes1();
    		$content = ob_get_clean();
    	return $content;
    }
    function bookingXpressShortCode2()
    {
      ob_start();
    	 extract_ShortCodes2();
    		$content = ob_get_clean();
    	return $content; 
    
    }
    function bookingXpressShortCode3()
    {
      ob_start();
    	 extract_ShortCodes3();
    		$content = ob_get_clean();
    	return $content;
    }
    function bookingXpressShortCode4()
    {
      ob_start();
    	 extract_ShortCodes4();
    		$content = ob_get_clean();
    	return $content;
    }

    it should place the button where the shortcode is placed.
    I hope that helps????

    In the future are you planning to add the functionality to be able to download your bookings by day, ie in the morning download a copy of the days bookings?

    Great Plugin look forward to seeing it develop

    http://wordpress.org/extend/plugins/booking-xpress/

  2. vive32
    Member
    Posted 1 year ago #

    very very usefull, I have done what you write and works fine thanks.

  3. Michael26
    Member
    Posted 1 year ago #

    Thank you so much, I was trying to force it down the page with <div> and a host of nonsensical rubbish in the hopes it would work. Thank you, made my fucking week (a week is how long it would have taken to refresh my php enough to code what you have there). Very grateful!

  4. martiniboy
    Member
    Posted 1 year ago #

    Glad it was useful!

  5. lmaccaro
    Member
    Posted 1 year ago #

    I'd like to use a link in my top menu to initiate the BookNow script; can anyone point me in the right direction to do that? I can code a little but I'm no expert.

  6. bookingxpress
    Blocked
    Plugin Contributor

    Posted 1 year ago #

    Hello Members,

    Thanks for using Booking Xpress

    We request you to leave a good feedback [moderated]

    Support

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.