Forum Replies Created

Viewing 1 replies (of 1 total)
  • I managed to fix this by replacing a method in functions.php:

    // theme widget: Twitter
    function fusion_TwitterWidget($args){
     extract($args);
     echo $before_widget;
     print $before_title.__('<a href="https://www.twitter.com/'.get_option('fusion_twitterid').'">Twitter posts</a>','fusion').$after_title; ?>
    
     <?php
     $username = get_option('fusion_twitterid');
     $limit = get_option('fusion_twitterentries');
     if($username<>'') {
      $feed = file_get_contents("https://search.twitter.com/search.atom?q=from:" . $username . "&rpp=" . $limit);
      $feed = html_entity_decode($feed);
      $clean = explode("<content type=\"html\">", $feed);
      $amount = count($clean) - 1;
      print '<ul id="twitterupdates">';
      for ($i = 1; $i <= $amount; $i++) {
       $cleaner = explode("</content>", $clean[$i]);
       print '<li class="entry">';
       echo $cleaner[0];
       print '</li>';
      }
      print '</ul>';
     }
    
     echo $after_widget;
    }

    Note: I also made the title of the widget link to your twitter id’s twitter page :). Hopefully this helps!

Viewing 1 replies (of 1 total)