twitter links not working in Firefox

  • Unknown's avatar

    I am displaying a twitter feed on my homepage:

    http://www.fairwaterrights.com

    The feed works fine. But if I click on a link in the twitter post in FIREFOX, it doesn’t open.

    For instance, instead of opening http://bit.ly/lNWyT9 in the browser, it tries to open http://www.fairwaterrights.com/%22http:/bit.ly/lNWyT9%22.

    It works fine in Safari.

    How can I fix this? Here is the code:

    <?php
    $username = “fairwaterrights”; // Your twitter username.
    $limit = “4”; // Number of tweets to pull in.

    /* These prefixes and suffixes will display before and after the entire block of tweets. */
    $prefix = “”; // Prefix – some text you want displayed before all your tweets.
    $suffix = “”; // Suffix – some text you want displayed after all your tweets.
    $tweetprefix = “@fairwaterrights “; // Tweet Prefix – some text you want displayed before each tweet.
    $tweetsuffix = “

    “; // Tweet Suffix – some text you want displayed after each tweet.

    $feed = “http://search.twitter.com/search.atom?q=from:” . $username . “&rpp=” . $limit;

    function parse_feed($feed, $prefix, $tweetprefix, $tweetsuffix, $suffix) {

    $feed = str_replace(“<“, “<“, $feed);
    $feed = str_replace(“>”, “>”, $feed);
    $clean = explode(“<content type=”html”>”, $feed);

    $amount = count($clean) – 1;

    echo $prefix;

    for ($i = 1; $i <= $amount; $i++) {
    $cleaner = explode(“</content>”, $clean[$i]);
    echo $tweetprefix;
    echo $cleaner[0];
    echo $tweetsuffix;
    }

    echo $suffix;
    }

    $twitterFeed = file_get_contents($feed);
    parse_feed($twitterFeed, $prefix, $tweetprefix, $tweetsuffix, $suffix);
    ?>

  • Unknown's avatar

    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

  • Unknown's avatar
  • Unknown's avatar

    I’m sorry but that’s not a wordpress.COM free hosted blog and we cannot help you with it. Please read the sticky post at the head of this forum and then post to the correct forum for your software here http://wordpress.ORG/support/ https://en.forums.wordpress.com/topic/please-read-me-first-before-posting?replies=1

  • Unknown's avatar

    Sorry about that. Thanks for the help.

  • Unknown's avatar

    No problem and best wishes with your install. :)

  • The topic ‘twitter links not working in Firefox’ is closed to new replies.