Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Steve

    (@steveatty)

    Wordbooker doesn’t work with events – its not something I’ve even looked at.

    Thread Starter qzonk

    (@qzonk)

    think is i found this

    /* Check to make sure Wordbooker is enabled */ if (get_option('wordbooker_settings')) { add_action('admin_menu', 'galleria_add_custom_box');} /* Adds a custom section to the "advanced" Post edit screens */ function galleria_add_custom_box() { if (current_user_can(WORDBOOKER_MINIMUM_ADMIN_LEVEL)) { add_meta_box( 'wordbook_sectionid', __('WordBooker Options'),'wordbooker_inner_custom_box', 'events', 'advanced' ); } } //add in save publish etc to shove over to facebook add_action('publish_events', 'wordbooker_publish');

    but the code did show up the custom box with the wordbooker options.
    However, the custom type post are not published on the facebook wall…

    Plugin Author Steve

    (@steveatty)

    Wordbooker checks if a post is a page and does things, if not it falls back to the post options.

    Right now I do not have the time to dig round trying to get it to work with events or other custom post types as I have to get comment handling working.

    Thread Starter qzonk

    (@qzonk)

    solved

    just added this line in wordbooker_posting_options.php

    add_meta_box( 'wordbooker_post_options', __('WordBooker Options'),'wordbooker_inner_custom_box', 'wp_events_manager', 'advanced' );

    seems to be work fine

    As follow up qzonk, you or others that may see this might have other quirks or have to follow up in additional ways. Let me explain some background and what I had to do. I may add this as a separate thread as well for those searching specifically.

    I have been using Wordbooker across several sites for some time. Recently I worked on a site that requires an event calendar so I am using a plugin called All-in-One Event Calendar. There was no need for social media on this site until lately so I added Wordbooker. Everything works great unless you try to post an event. Wordbooker’s panel never showed up but again, the thought was no big deal, don’t need it for events. If default publishing is on and you publish the event, you get a strange error. which ends up showing in the Date/Time column when you view the full events list (see below).

    So I decided to add the pain for kicks by adding the following line to wordbooker_posting_options.php

    add_meta_box( 'wordbooker_post_options', __('WordBooker Options', 'wordbooker'),'wordbooker_inner_custom_box', 'ai1ec_event', 'advanced' );

    I tried a new post and got the same error as below for the new post. Now that I had the panel I created yet a new post, disabled the post to facebook and the event posted as normal, not updating facebook of course. So I went rechecked the box, and ‘updated’ the event and viola! it posted to Facebook too.

    So I tried one more thing. I unchecked ‘post to facebook’ as the default, created a new post and manually checked the box and it posted fine.

    Naturally, I couldn’t figure it out code wise as this is a really odd one.

    So in summary, with All in One Event Calendar (ai1ec) you add the above code to get the panel to show up when creating events (though I wish I could force it to the bottom). Then you need to either disable posting by default and manually choosing to post it or uncheck posting and repost it later for it to work. Otherwise, if autopublish is enabled you get the error message below.

    There is clearly some sort of flag related to autoposting that I can’t find that I believe is the key to this problem as well as the problem others are having with images. I was trying to recreate their problem and was able to do so (sort of) but haven’t figured out how to solve it.

    ERROR MESSAGE
    Fatal error: Uncaught exception 'Ai1ec_Event_Not_Found' with message 'Event with ID '157' could not be retrieved from the database.' in /home/pack155/public_html/wp-content/plugins/all-in-one-event-calendar/app/model/class-ai1ec-event.php:346 Stack trace: #0 /home/pack155/public_html/wp-content/plugins/all-in-one-event-calendar/app/helper/class-ai1ec-events-helper.php(63): Ai1ec_Event->__construct(157, false) #1 /home/pack155/public_html/wp-content/plugins/all-in-one-event-calendar/app/controller/class-ai1ec-events-controller.php(482): Ai1ec_Events_Helper::get_event(157) #2 [internal function]: Ai1ec_Events_Controller->event_content('<p>Just a test ...') #3 /home/pack155/public_html/wp-includes/plugin.php(170): call_user_func_array(Array, Array) #4 /home/pack155/public_html/wp-content/plugins/wordbooker/wordbooker.php(1203): apply_filters('the_content', 'Just a test for...') #5 /home/pack155/public_html/wp-content/plugins/wordbooker/wordbooker.php(2292): wordbooker_fbclient_publishaction(Object(stdClass), 157) #6 /home/pa in /home/pack155/public_html/wp-content/plugins/all-in-one-event-calendar/app/model/class-ai1ec-event.php on line 346

    and I would get a weird error when posting an event.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Wordbooker] custom post – events post’ is closed to new replies.