Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • and then I broke it…accidentally hit shift-page down instead of shift-end and deleted, and when I clicked ‘refresh’ to undo the changes, I think it saved the changes for me…

    of course, now I keep getting and error message. Using this code:

    // $url = apply_filters('tweet_blog_post_url', get_permalink($post_id));
                       $url = apply_filters('tweet_blog_post_url', global $post; $post_id = $post->ID;);

    nets this error:

    Parse error: syntax error, unexpected T_GLOBAL in (domain-level-folder-stuff-that-has-a-username)/html/erfblog/wp-content/plugins/twitter-tools/twitter-tools.php on line 490

    So, naturally…I forgot what I even did. head => desk. =\
    `

    Don’t suppose anyone could help me figure out what they did here?

    I’d like for Twitter Tools to tweet either A) domain.ext/p=## link, or B) a bit.ly link pointing to the p=## permalink.

    The functions.php addition is for the theme’s functions.php? I figured TT worked all on the backend and wouldn’t pick up anything there…

    and when buffalo made the change on the plugin’s line 489, was it NPSites’ change? or richard’s below it? ’cause I’m not quite sure what richard suggested we change…

    change
    $url = apply_filters('tweet_blog_post_url', get_settings('home') .'/?p='. $post_id);

    to this?

    $url = global $post; $post_id = $post->ID;

    (gonna try a few of these myself but…if someone can clear it up ab it for me, man you’d be awesome.)

    Edit: Figgered out how to make it spit out domain.ext/p=## tweets. Working on making it bit.lyfy that link as well — I think it’s as simple as putting the same fix on the bit.ly plugin. >.>;

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