WordPress.org

Plugin Directory

Changeset 535326 for syndicate-press


Ignore:
Timestamp:
04/24/12 05:26:42 (2 years ago)
Author:
hranchFundi
Message:

1.0.11: This is a new feature release.
Added support for bbcodes in the text widget.
Added a new check to make sure that the cache directories have the correct permissions.
Updated some of the descriptions in the admin page to make them clearer.

Location:
syndicate-press/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • syndicate-press/trunk/readme.txt

    r524972 r535326  
    44Tags: RSS,RDF,Atom,feed,syndicate,syndication,news,aggregator,aggregation,plugin,active,maintained,custom,widget,post,plugin,posts,admin,sidebar,theme,comments,images,twitter,page,google,links 
    55Requires at least: 2.8 
    6 Tested up to: 3.3.1 
    7 Stable tag: 1.0.10 
     6Tested up to: 3.3.2 
     7Stable tag: 1.0.11 
    88 
    99Syndicate Press lets you include RSS, RDF or Atom feeds directly in your Wordpress posts, pages, widgets or theme.  
     
    4848http://henryranch.net/software/syndicate-press/syndicate-press-releases/ 
    4949 
     501.0.11: This is a new feature release. 
     51Added support for bbcodes in the text widget. 
     52Added a new check to make sure that the cache directories have the correct permissions. 
     53Updated some of the descriptions in the admin page to make them clearer. 
     54 
    50551.0.10: This is a bug-fix release.  Fixed the following issues:  
    5156Failure to show feed items when "Show item description only when the viewer hovers over the item link." is selected. 
  • syndicate-press/trunk/syndicate-press-plugin.php

    r524972 r535326  
    6161if (!class_exists("SyndicatePressPlugin")) { 
    6262    class SyndicatePressPlugin { 
    63         var $version = "1.0.10"; 
     63        var $version = "1.0.11"; 
    6464        var $homepageURL = "http://henryranch.net/software/syndicate-press/"; 
    6565         
     
    159159            $elapsedTime = round($elapsedTime,5); 
    160160            return $elapsedTime; 
     161        } 
     162         
     163        function sp_getFilePermissions($filepath) 
     164        { 
     165            $filePermissions = fileperms($filepath); 
     166            // Owner 
     167            $permissionString .= (($filePermissions & 0x0100) ? 'r' : '-'); 
     168            $permissionString .= (($filePermissions & 0x0080) ? 'w' : '-'); 
     169            $permissionString .= (($filePermissions & 0x0040) ? (($filePermissions & 0x0800) ? 's' : 'x' ) : (($filePermissions & 0x0800) ? 'S' : '-')); 
     170            // Group 
     171            $permissionString .= (($filePermissions & 0x0020) ? 'r' : '-'); 
     172            $permissionString .= (($filePermissions & 0x0010) ? 'w' : '-'); 
     173            $permissionString .= (($filePermissions & 0x0008) ? (($filePermissions & 0x0400) ? 's' : 'x' ) : (($filePermissions & 0x0400) ? 'S' : '-')); 
     174            // Public 
     175            $permissionString .= (($filePermissions & 0x0004) ? 'r' : '-'); 
     176            $permissionString .= (($filePermissions & 0x0002) ? 'w' : '-'); 
     177            $permissionString .= (($filePermissions & 0x0001) ? (($filePermissions & 0x0200) ? 't' : 'x' ) : (($filePermissions & 0x0200) ? 'T' : '-')); 
     178            return $permissionString; 
    161179        } 
    162180         
     
    346364                mkdir($pluginDir.'/'.$this->formattedOutputCacheDir); 
    347365            } 
     366        } 
     367         
     368        function sp_checkCachePermissions() 
     369        { 
     370            $pluginDir = dirname(__FILE__); 
     371            $mainCacheDir = $pluginDir.'/'.$this->cacheDir; 
     372            $inputCacheDir = $pluginDir.'/'.$this->inputFeedCacheDir; 
     373            $outputCacheDir = $pluginDir.'/'.$this->formattedOutputCacheDir; 
     374            $mainCacheDirPerm = $this->sp_getFilePermissions($mainCacheDir); 
     375            $inputCacheDirPerm = $this->sp_getFilePermissions($inputCacheDir); 
     376            $outputCacheDirPerm = $this->sp_getFilePermissions($outputCacheDir); 
     377            if($mainCacheDirPerm != "rwxr-xr-x") 
     378            { 
     379                $permProblem .= "Main cache: $mainCacheDirPerm<br>"; 
     380            } 
     381            if($inputCacheDirPerm != "rwxr-xr-x") 
     382            { 
     383                $permProblem .= "Input cache: $inputCacheDirPerm<br>"; 
     384            } 
     385            if($outputCacheDirPerm != "rwxr-xr-x") 
     386            { 
     387                $permProblem .= "Output cache: $outputCacheDirPerm<br>"; 
     388            } 
     389            if($permProblem) 
     390            { 
     391                $permProblem = "There is a problem with your cache permissions:<br>$permProblem<br>Please set your cache permissions to rwxr-xr-x."; 
     392            } 
     393            return $permProblem; 
    348394        } 
    349395     
     
    901947<em>Version <?php print $this->version;?></em><br> 
    902948 
     949<?php 
     950 $permMessage = $this->sp_checkCachePermissions(); 
     951 if($permMessage) 
     952 { 
     953    echo '<div class="updated"><p><strong>'; 
     954    _e($permMessage, "SyndicatePressPlugin"); 
     955    echo '</strong></p></div>'; 
     956 } 
     957?> 
     958 
    903959<table> 
    904960<tr><td>&nbsp;</td><td>&nbsp;</td></tr> 
     
    10031059        <h2>Display Settings</h2> 
    10041060        <div style="padding-left: 20px;"> 
    1005         Limit articles in a feed to <input name="syndicatePressLimitFeedItemsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedItemsToDisplay']), 'SyndicatePressPlugin') ?>"> items. (-1 to display all items in feed)<br> 
    1006         Limit article to <input name="syndicatePressLimitFeedDescriptionCharsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedDescriptionCharsToDisplay']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article description)<br> 
    1007         Limit article headline to <input name="syndicatePressMaxHeadlineLength" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['maxHeadlineLength']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article headline)<br> 
    1008         Show item description:<br> 
     1061        <b><u>Limit the number of articles</u></b> in a feed to <input name="syndicatePressLimitFeedItemsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedItemsToDisplay']), 'SyndicatePressPlugin') ?>"> items. Depending on the publishers settings, this will typically limit the displayed feeds to the most recent feeds.  For example, limit feed articles to the 4 most recent items.  Set this value to -1 to display all items in feed.<br>&nbsp;<br> 
     1062        <b><u>Limit article to</u></b> <input name="syndicatePressLimitFeedDescriptionCharsToDisplay" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['limitFeedDescriptionCharsToDisplay']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article description)<br>&nbsp;<br> 
     1063        <b><u>Limit article headline</u></b> to <input name="syndicatePressMaxHeadlineLength" size="10" value="<?php _e(apply_filters('format_to_edit',$configOptions['maxHeadlineLength']), 'SyndicatePressPlugin') ?>"> characters. (-1 to display complete article headline)<br>&nbsp;<br> 
     1064        <b><u>Show item description:</u></b><br> 
    10091065        <div style="padding-left: 20px;"> 
    10101066        <label for="syndicatePressShowContentOnlyInLinkTitle_yes"><input type="radio" id="syndicatePressShowContentOnlyInLinkTitle_yes" name="syndicatePressShowContentOnlyInLinkTitle" value="true" <?php if ($configOptions['showContentOnlyInLinkTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> only when the viewer hovers over the item link.</label><br> 
    10111067        <label for="syndicatePressShowContentOnlyInLinkTitle_no"><input type="radio" id="syndicatePressShowContentOnlyInLinkTitle_no" name="syndicatePressShowContentOnlyInLinkTitle" value="false" <?php if ($configOptions['showContentOnlyInLinkTitle'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> below the item link.</label><br> 
    1012         </div> 
    1013         Item publication timestamp:<br> 
     1068        </div><br>&nbsp;<br> 
     1069        <b><u>Item publication timestamp:</u></b><br> 
    10141070        <div style="padding-left: 20px;"> 
    10151071        <label for="syndicatePressshowArticlePublishTimestamp_yes"><input type="radio" id="syndicatePressshowArticlePublishTimestamp_yes" name="syndicatePressshowArticlePublishTimestamp" value="true" <?php if ($configOptions['showArticlePublishTimestamp'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show timestamp.</label><br> 
    10161072        <label for="syndicatePressshowArticlePublishTimestamp_no"><input type="radio" id="syndicatePressshowArticlePublishTimestamp_no" name="syndicatePressshowArticlePublishTimestamp" value="false" <?php if ($configOptions['showArticlePublishTimestamp'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Hide timestamp.</label><br> 
    1017         </div> 
    1018         Display HTML formatting in article:<br> 
     1073        </div><br>&nbsp;<br> 
     1074        <b><u>Display HTML formatting in article:</u></b><br> 
    10191075        <div style="padding-left: 20px;"> 
    10201076        <em>NOTE: Displaying HTML content in the articles will disable article length limitation</em><br> 
    10211077        <label for="syndicatePressAllowMarkup_yes"><input type="radio" id="syndicatePressAllowMarkup_yes" name="syndicatePressAllowMarkup" value="true" <?php if ($configOptions['allowMarkupInDescription'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show HTML formatting.</label><br> 
    10221078        <label for="syndicatePressAllowMarkup_no"><input type="radio" id="syndicatePressAllowMarkup_no" name="syndicatePressAllowMarkup" value="false" <?php if ($configOptions['allowMarkupInDescription'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Strip HTML formatting, leaving only the article text.</label><br> 
    1023         </div> 
    1024         Display images in article:<br> 
     1079        </div><br>&nbsp;<br> 
     1080        <b><u>Display images in article:</u></b><br> 
    10251081        <div style="padding-left: 20px;"> 
    10261082        <em>NOTE: If HTML formatting is stripped (see above setting), images will NOT be shown.</em><br> 
    10271083        <label for="syndicatePressDisplayImages_yes"><input type="radio" id="syndicatePressDisplayImages_yes" name="syndicatePressDisplayImages" value="true" <?php if ($configOptions['displayImages'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show images.</label><br> 
    10281084        <label for="syndicatePressDisplayImages_no"><input type="radio" id="syndicatePressDisplayImages_no" name="syndicatePressDisplayImages" value="false" <?php if ($configOptions['displayImages'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Strip images.</label><br> 
    1029         </div> 
    1030         Syndicate Press link:<br> 
     1085        </div><br>&nbsp;<br> 
     1086        <b><u>Syndicate Press link:</u></b><br> 
    10311087        <div style="padding-left: 20px;"> 
    10321088        <label for="syndicatePressShowSyndicatePressLinkback_yes"><input type="radio" id="syndicatePressShowSyndicatePressLinkback_yes" name="syndicatePressShowSyndicatePressLinkback" value="true" <?php if ($configOptions['showSyndicatePressLinkback'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show 'Powered by <a href="<?php echo $this->homepageURL; ?>" target=_blank>Syndicate Press</a>' at the end of the aggregated feed content.</label><br> 
     
    10361092        </div> 
    10371093        <label for="syndicatePressShowSyndicatePressLinkback_no"><input type="radio" id="syndicatePressShowSyndicatePressLinkback_no" name="syndicatePressShowSyndicatePressLinkback" value="false" <?php if ($configOptions['showSyndicatePressLinkback'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show the Syndicate Press link.</label><br> 
    1038         </div> 
    1039         Processing and feed metrics:<br> 
     1094        </div><br>&nbsp;<br> 
     1095        <b><u>Processing and feed metrics:</u></b><br> 
    10401096        <div style="padding-left: 20px;"> 
    10411097        <label for="syndicatePressShowProcessingMetrics_yes"><input type="radio" id="syndicatePressShowProcessingMetrics_yes" name="syndicatePressShowProcessingMetrics" value="true" <?php if ($configOptions['showProcessingMetrics'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Show.</label><br> 
    10421098        <label for="syndicatePressShowProcessingMetrics_no"><input type="radio" id="syndicatePressShowProcessingMetrics_no" name="syndicatePressShowProcessingMetrics" value="false" <?php if ($configOptions['showProcessingMetrics'] == "false") { _e('checked="checked"', "SyndicatePressPlugin"); }?>/> Do not show.</label><br> 
    1043         </div> 
    1044         Feed name (title):<br> 
     1099        </div><br>&nbsp;<br> 
     1100        <b><u>Feed name (title):</u></b><br> 
    10451101        <div style="padding-left: 20px;"> 
    10461102        <label for="syndicatePressUseCustomFeednameAsChannelTitle_yes"><input type="radio" id="syndicatePressUseCustomFeednameAsChannelTitle_yes" name="syndicatePressUseCustomFeednameAsChannelTitle" value="true" <?php if ($configOptions['useCustomFeednameAsChannelTitle'] == "true") { _e('checked="checked"', "SyndicatePressPlugin"); }?> /> Use custom feedname as feed title.</label><br> 
     
    10551111     <div class="tabbertab"> 
    10561112        <h2>Custom Formatting</h2> 
    1057         Title formatting:<br> 
     1113        <b><u>Title formatting:</u></b><br> 
    10581114        <div style="padding-left: 20px;"> 
    10591115        <em>You can use html tags to format the feed and article titles... i.e. &lt;h2&gt;title&lt;/h2&gt;</em><br> 
    10601116        <input name="syndicatePressFeedTitleHTMLCodePre" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['feedTitleHTMLCodePre']), 'SyndicatePressPlugin') ?>">Feed title<input name="syndicatePressFeedTitleHTMLCodePost" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['feedTitleHTMLCodePost']), 'SyndicatePressPlugin') ?>"><br> 
    10611117        <input name="syndicatePressArticleTitleHTMLCodePre" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['articleTitleHTMLCodePre']), 'SyndicatePressPlugin') ?>">Article title<input name="syndicatePressArticleTitleHTMLCodePost" size="20" value="<?php _e(apply_filters('format_to_edit',$configOptions['articleTitleHTMLCodePost']), 'SyndicatePressPlugin') ?>"><br> 
    1062         </div> 
    1063         Custom feed separation code:<br> 
     1118        </div><br>&nbsp;<br> 
     1119        <b><u>Custom feed separation code:</u></b><br> 
    10641120        <div style="padding-left: 20px;"> 
    10651121        <em>You can insert any html content between feeds (including advertising code)<br> 
     
    10681124        </div> 
    10691125        <textarea name="syndicatePressFeedSeparationHTMLCode" style="width: 95%; height: 100px;"><?php _e($this->sp_unescapeString(apply_filters('format_to_edit',$configOptions['feedSeparationHTMLCode'])), 'SyndicatePressPlugin') ?></textarea> 
    1070         </div> 
    1071         Custom content to show when a feed is unavailable:<br> 
     1126        </div><br>&nbsp;<br> 
     1127        <b><u>Custom content to show when a feed is unavailable:</u></b><br> 
    10721128        <div style="padding-left: 20px;"> 
    10731129        <em>You can insert custom html content when a feed is not available.<br> 
     
    11311187        <b><u>Personalized support</u></b> 
    11321188        <p style="padding-left: 20px;"> 
    1133         If you would like personalized support from the Syndicate Press developers, you may contact us directly at s&nbsp;p&nbsp;[at]&nbsp;h&nbsp;e&nbsp;n&nbsp;r&nbsp;y&nbsp;r&nbsp;a&nbsp;n&nbsp;c&nbsp;h&nbsp;.&nbsp;n&nbsp;e&nbsp;t.<br> 
     1189        If you would like personalized support from the Syndicate Press developers, you may contact us directly at sp&nbsp;[at]&nbsp;h&nbsp;e&nbsp;n&nbsp;r&nbsp;y&nbsp;r&nbsp;a&nbsp;n&nbsp;c&nbsp;h&nbsp;.&nbsp;n&nbsp;e&nbsp;t.<br> 
    11341190        <i>We request a donation to Syndicate Press for personalized support.</i> 
    11351191        </p> 
     
    12141270    //Filter... 
    12151271    add_filter('the_content', array(&$syndicatePressPluginObjectRef,'sp_ContentFilter'));  
     1272    add_filter('widget_text', array(&$syndicatePressPluginObjectRef,'sp_ContentFilter')); 
    12161273} 
    12171274 
Note: See TracChangeset for help on using the changeset viewer.