Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Evan

    (@ejdanderson)

    Hi dmiyares,

    I don’t think that the iPad should be loading the mobile edition (it’s not one of the default browsers). What is the user agent that is showing up when you’re on your iPad? You can use http://whatsmyuseragent.com/ to find that out.

    Forum: Plugins
    In reply to: Custom Post Type Hooks
    Evan

    (@ejdanderson)

    You’re on the right track, the first hook you’re using to publish your custom post type is {$new_status}_{$post->post_type} see {$new_status}_{$post->post_type} which relies on the first argument to be a status (draft, publish, new, etc…), however there is no delete status, and custom post types still get deleted with the delete_post function.

    Here is the delete_post hook in its habitat: delete_post. So as I mentioned you were on the right track, but you’re attempting to use $post when its a null variable/object still. Your code should look something like:

    add_action('delete_post', 'my-function-on-delete');
    function my-function-on-delete($post_id) {
        $post = get_post($post_id);
        if ($post->post_type == 'my-custom-post-type') {
            //My function
           }
    }

    By default action hooks expect the first argument to be passed.

    Evan

    (@ejdanderson)

    The new twitter tools also relies on using cURL to get and post information from twitter which is different than in the previous version. If you’re able to get your tweets from twitter then this isnt the problem.

    To check to see if cURL is active on your server there are a couple things you can do.
    1. If you’re comfortable with ssh and your host provides it, just ssh in and type ‘which curl’
    2. Create a php file on your server with the following line of code <?php phpinfo(); ?> Then when you load up the page you can do a search for cURL or scroll down and see if its enabled.
    3. Ask your server host if its installed.

    Hosting companies should be able to install it on your server via a support ticket.

    Evan

    (@ejdanderson)

    Are you able to get tweets from twitter? If you are, it may be that your application is setup on Read only mode (thats what happened to me).

    Unfortunately simply going into your application’s settings and changing to read+write won’t fix it right away since twitter doesn’t update its access tokens when you do this. After you change your access settings you’ll have to go to http://twitter.com/account/connections click ‘revoke access’ then ‘undo revoke access’, this updates the Twitter oAuth tokens. Once you’ve done that you can go ahead and copy and paste the new tokens in your Twitter Tools settings and hopefully it should work.

    Evan

    (@ejdanderson)

    If you’re on one of the mobile browsers listed in your settings page for the plugin, your content should be giving you a link back to the mobile edition.

    If that isn’t happening, you can add the following to your URL and it should force you back to the mobile edition: ?cf_action=show_mobile so your url would looking something like:

    http://yourblog.com/?cf_action=show_mobile

    hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)