WordPress.org

Plugin Directory

Changeset 448256 for syndicate-press


Ignore:
Timestamp:
10/07/11 03:35:44 (3 years ago)
Author:
hranchFundi
Message:

version 1.0.2

  • fixed bad feed:// url protocol descriptor by rewriting as http://
  • TinyFeedParser 1.9.3: added article link to the ... when content is too long
Location:
syndicate-press/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • syndicate-press/trunk/php/TinyFeedParser.php

    r444029 r448256  
    22/* 
    33File: TinyFeedParser.php 
    4 Date: 5/2/2010  
    5 Version 1.9.2 
     4Date: 10/6/2011  
     5Version 1.9.3 
    66Author: Shaun Henry, HenryRanch LLC 
    77 
     
    386386            { 
    387387                $article->content = $this->removeAllHtmlMarkup($article->content); 
    388                 $article->content = $this->truncateToLength($article->content, $this->maxDescriptionLength); 
     388                $article->content = $this->truncateToLength($article->content, $this->maxDescriptionLength, $article->link); 
    389389            } 
    390390        } 
     
    397397        { 
    398398            $article->description = (string)$this->removeAllHtmlMarkup($article->description); 
    399             $article->description = $this->truncateToLength($article->description, $this->maxDescriptionLength); 
     399            $article->description = $this->truncateToLength($article->description, $this->maxDescriptionLength, $article->link); 
    400400        } 
    401401                 
     
    417417    } 
    418418     
    419     function truncateToLength($text, $length) 
     419    function truncateToLength($text, $length, $urlLink="") 
    420420    { 
    421421        if($length != -1 && strlen($text) > $length) 
    422             $text = substr($text, 0, $length) . '...'; 
     422        { 
     423            $text = substr($text, 0, $length); 
     424            if($urlLink != "") 
     425            { 
     426                $text .= " <a href=\"$urlLink\" target=\"_blank\" title=\"Open article in a new window\">...</a>"; 
     427            } 
     428            else 
     429            { 
     430                $text .= '...'; 
     431            } 
     432             
     433        } 
    423434        return $text; 
    424435    } 
  • syndicate-press/trunk/readme.txt

    r446994 r448256  
    55Requires at least: 2.8 
    66Tested up to: 3.2.1 
    7 Stable tag: 1.0.1 
     7Stable tag: 1.0.2 
    88 
    99Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme.  
  • syndicate-press/trunk/syndicate-press-plugin.php

    r446990 r448256  
    55Description: This plugin provides a high performance, highly configurable and easy to use news syndication aggregator which supports RSS, RDF and ATOM feeds. 
    66Author: HenryRanch LLC (henryranch.net) 
    7 Version: 1.0 
     7Version: 1.0.2 
    88Author URI: http://henryranch.net/ 
    99License: GPL2 
     
    6262if (!class_exists("SyndicatePressPlugin")) { 
    6363    class SyndicatePressPlugin { 
    64         var $version = "1.0"; 
     64        var $version = "1.0.2"; 
    6565        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6666         
     
    768768                if (isset($_POST['syndicatePressFeedUrlList'])) { 
    769769                    $configOptions['feedUrlList'] = apply_filters('feedUrlList_save_pre', $_POST['syndicatePressFeedUrlList']); 
     770                    //replace any occurrances of feed:// with http:// 
     771                    $configOptions['feedUrlList'] = str_replace("feed://", "http://", $configOptions['feedUrlList']); 
    770772                } 
    771773                if (isset($_POST['syndicatePressExclusiveKeywordFilter'])) { 
Note: See TracChangeset for help on using the changeset viewer.