Viewing 4 replies - 1 through 4 (of 4 total)
  • 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.

    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.

    Ben

    (@sammysimms)

    @myrrhlarsen, I’ll give this a try. I hope it works. ??

    Ben

    (@sammysimms)

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Resource Booking and Availability Calendar] for pages’ is closed to new replies.