Forums

  1. gabrouze
    Member
    Posted 2 years ago #

    Hi, can you upgrade your plugin to work in pages ?
    Thanks in advance

    http://wordpress.org/extend/plugins/resource-booking-and-availability-calendar/

  2. btechnol
    Member
    Posted 2 years ago #

    Can you give further explanations on how to post the calendar into pages instead of posts? Also, can you have more than 3 states options? I love the idea of this calendar, just doesn't seem too user friendly.

  3. myrrhlarsen
    Member
    Posted 1 year ago #

    You probably shouldn't attempt this if you don't have at least minor proficiency in PHP.

    Plugin author: I'll delete this post upon request. I like your plugin, and I don't mean deface it with my hacking around.

    Anyway, to change it from operating on POSTS to operating on PAGES, in /wp-content/plugins/resource-booking-and-availability-calendar/cstart-Resource-booking-and-availability-calendar.php change the following:

    Change line 289 from
    if (/*$adminOptions['add_content'] == "true" && */ is_single()) {
    to
    if (/*$adminOptions['add_content'] == "true" && */ is_page()) {
    ...and change line 464 from
    add_action('edit_form_advanced', array(&$cs_RBA_plugin,'post_options'),1);
    to
    add_action('edit_page_form', array(&$cs_RBA_plugin,'post_options'),1);

    And you'll have it on pages instead of posts. If you want it on both, you'll need to have both "add_action" directives in there and just change the conditional in the addContent() function to if ( is_single() || is_page() ) { and you should be good.

  4. sammysimms
    Member
    Posted 1 year ago #

    @myrrhlarsen, I'll give this a try. I hope it works. :)

  5. sammysimms
    Member
    Posted 1 year ago #

    It worked...kinda. Now every page has the word "Availability Calendar" at the bottom of every page. I'll try and see how I can fix it. This is VERY encouraging though. :) I really like this plugin and wished someone would re-do it a little more user-friendly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic