WordPress.org

Plugin Directory

Changeset 445539 for syndicate-press


Ignore:
Timestamp:
09/30/11 04:24:43 (3 years ago)
Author:
hranchFundi
Message:

Version 1.1

  • Fixed URL connection issue caused by whitespace around the '|' when using a custom feed name. Now trimming whitespace off of the URL.
  • Placed an "Update Settings" button at the top of the admin page for convenience.
File:
1 edited

Legend:

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

    r444029 r445539  
    6262if (!class_exists("SyndicatePressPlugin")) { 
    6363    class SyndicatePressPlugin { 
    64         var $version = "1.0"; 
     64        var $version = "1.1"; 
    6565        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6666         
     
    184184                        if($availableFeedUrl == $url) 
    185185                        { 
    186                             return $availableFeedNameArray[0]; 
     186                            return trim($availableFeedNameArray[0]); 
    187187                        } 
    188188                    } 
     
    231231                    { 
    232232                        $availableFeed = trim($availableFeed); 
    233                         //split the reference string on ',' (comma).  this is the feed reference list prvided in the bbcode: [sp# feed1,feed2,feed3,etc...] 
     233                        //split the reference string on ',' (comma).  this is the feed reference list provided in the bbcode: [sp# feed1,feed2,feed3,etc...] 
    234234                        $feedNameList = explode(',', $feedNameReference); 
    235235                        foreach($feedNameList as $feedName) 
     
    242242                                { 
    243243                                    $availableFeedName = explode($this->feedListCustomNameDelimiter, $availableFeed); 
    244                                     $availableFeed = $availableFeedName[1]; 
     244                                    $availableFeed = trim($availableFeedName[1]); 
    245245                                    //print "feed URL: $availableFeed <br>";  
    246246                                } 
     
    520520        { 
    521521            include_once "php/TinyFeedParser.php"; 
     522             
     523            //make sure there are no whitespaces leading or trailing the URL string 
     524            $url = trim($url); 
    522525             
    523526            try 
     
    835838 
    836839<div id="formDiv"> 
     840 
     841<input type="submit" name="update_SyndicatePressPluginSettings" value="<?php _e('Update Settings', 'SyndicatePressPlugin') ?>" /> 
     842 
    837843<h3>Output aggregated feed content?</h3> 
    838844<div style="padding-left: 20px;"> 
     
    851857</div> 
    852858You may mix and match feeds with names or without names.<br> 
    853 <textarea name="syndicatePressFeedUrlList" style="width: 95%; height: 100px;"><?php _e(apply_filters('format_to_edit',$configOptions['feedUrlList']), 'SyndicatePressPlugin') ?></textarea> 
     859<textarea name="syndicatePressFeedUrlList" style="width: 95%; height: 200px;"><?php _e(apply_filters('format_to_edit',$configOptions['feedUrlList']), 'SyndicatePressPlugin') ?></textarea> 
    854860</div> 
    855861 
     
    10121018<p> 
    10131019A donation is a great way to show your support for this plugin.  Donations help offset the cost of maintenance, development and hosting.<br><br> 
    1014 Everyone who donates will get a link back to their website, posted prominently on the main site for this plugin.<br><br> 
    10151020There is no minimum donation amount.  If you like this plugin and find that it has saved you time or effort, you can be the judge of how much that is worth to you.<br><br> 
    10161021Thank you! 
Note: See TracChangeset for help on using the changeset viewer.