firefox: bit.ly links in the sidebar of a customised wordpress blog gives a 404 error -


i have twitter status updates showing on sidebar of blog has bit.ly or ow.ly links well. everytime click on in firefox browser gives me 404 error because tries following url: www.domain.com/blog/"http://bit.ly/uniquenumber" instead of bit.ly/uniquenumber.

i checked , seems work on google chrome on mac not on firefox on mac os x. else have similar problems.

below code of receiving twitter status updates:

/* these prefixes , suffixes display before , after entire block of tweets. */       $prefix = ""; // prefix - text want displayed before tweets.       $suffix = ""; // suffix - text want displayed after tweets.       $tweetprefix = ""; // tweet prefix - text want displayed before each tweet.       $tweetsuffix = "<br \><br \>"; // tweet suffix - text want displayed after each tweet.        $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1" . $limit;        function parse_feed($feed, $prefix, $tweetprefix, $tweetsuffix, $suffix) {        $feed = str_replace("&lt;", "<", $feed);       $feed = str_replace("&gt;", ">", $feed);       $clean = explode("<content type=\"html\">", $feed);        $amount = count($clean) - 1;        echo $prefix;        ($i = 1; $i <= $amount; $i++) {       echo $tweetsuffix;     $cleaner = explode("</content>", $clean[$i]);       echo $tweetprefix;       echo $cleaner[0]; echo $suffix; echo $tweetsuffix;  ?>      <img src="<?php echo get_bloginfo('template_directory');?>/images/side.png" alt="a line dividing twitter updates , open courses listing">     <?php      }         echo $suffix;       }        $twitterfeed = file_get_contents($feed);       parse_feed($twitterfeed, $prefix, $tweetprefix, $tweetsuffix, $suffix);  

figured out you. change this:

$feed = str_replace("&lt;", "<", $feed);   $feed = str_replace("&gt;", ">", $feed);   

to this

$feed = str_replace("&lt;", "<", $feed);   $feed = str_replace("&gt;", ">", $feed);   $feed = str_replace("&quot;", '"', $feed);   

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -