• I recently moved servers, and I finally got the time to get everything back on the new one, running lighttpd. If at all possible, I was wondering if Ping.fm Custom URL could be updated to work with semi-pretty permalinks, because at the moment, it won’t post.

    Say my post link is duldrum.com/pingfm/post/thispartisnthere. That obviously will not work, as when going to it I get a “page does not exist” error.
    However, when going to duldrum.com/index.php/pingfm/post/thispartisnthere it actually give me the error message that the correct link will do if one tries to go to it via a web browser. When I try to post though, I get “message successfully posted” on Ping.fm, but doesn’t show in my pings on my site. Any ideas? I may end up looking at the code and trying to figure it out myself, if worse comes to worse.

    https://www.ads-software.com/extend/plugins/pingfm-custom-url-status-updates/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Matt Jacob

    (@mjacob)

    The only problem is with the URL detection for non-Apache servers. Since I use Apache and test against Apache, I can only promise that the plugin will work 100% with Apache. However, if you modify the URL yourself, it should still work. There’s nothing preventing it from working once you get into the code by hitting a correct URL.

    So, then we’d have to look at Ping.fm and find out why pings aren’t coming through. If you want, you can write a little test script that just does a simple POST against your posting URL with the same parameters that Ping.fm would send. I have one that I use for testing, but it’s a little more elaborate than necessary.

    Matt

    Thread Starter roamer145

    (@roamer145)

    Sure. I’d rather be using Ping.fm than posting my latest tweets on the site. It gets annoying to do that after a while.

    Plugin Author Matt Jacob

    (@mjacob)

    You can use this test script to ensure that everything is working properly on the WordPress side. Fill in the placeholders with your own correct values (obviously).

    <?php
    
    error_reporting(E_ALL);
    define('PING_URL', 'https://<<domain>>/pingfm/post/<<key>>');
    
    $test_values = array(
        'method'      => 'status',
        'title'       => '',
        'message'     => 'I just wanted to let you know what I ate for breakfast this morning...',
        'media'       => '',
        'raw_message' => '',
        'trigger'     => '',
        'location'    => '',
    );
    
    $ch = curl_init();
    
    curl_setopt($ch, CURLOPT_URL, PING_URL);
    curl_setopt($ch, CURLOPT_VERBOSE, true);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($test_values));
    
    curl_exec($ch);
    
    if (curl_errno($ch)) {
        echo 'Error: ' . curl_error($ch);
    }
    
    curl_close($ch);
    
    ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Ping.fm Custom URL] Semi-pretty permalinks?’ is closed to new replies.