Changeset 157336
- Timestamp:
- 09/23/2009 07:16:08 PM (17 years ago)
- Location:
- feedlist/trunk/feedList
- Files:
-
- 2 edited
-
feedlist.php (modified) (7 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
feedlist/trunk/feedList/feedlist.php
r132812 r157336 1 <? 1 <?php 2 2 /* 3 3 Plugin Name: FeedList … … 6 6 Author: Bill Rawlinson 7 7 Author URI: http://blog.rawlinson.us/ 8 Version: 2.2 38 Version: 2.24 9 9 */ 10 10 11 // include files 12 $relroot = dirname(__FILE__).'/../../../'; 13 require_once('feedListExtensions.php'); 14 // get the magpie libary 15 if (file_exists($relroot . 'wp-includes/rss.php')) { 11 // setup error level 12 error_reporting(E_ERROR); 13 14 15 16 // include files 17 $relroot = ABSPATH . '/'; 18 require_once('feedListExtensions.php'); 19 // get the magpie libary 20 if (file_exists($relroot . 'wp-includes/rss.php')) { 16 21 require_once($relroot . 'wp-includes/rss.php'); 17 22 } else if(file_exists($relroot . 'wp-includes/rss-functions.php')){ … … 97 102 } 98 103 // Slice off the number of items that we want: 99 if ($this->args['num_items'] > 0 )104 if ($this->args['num_items'] > 0 && is_array($this->items)) 100 105 { 101 106 $this->items = array_slice($this->items, 0, $this->args['num_items']); … … 237 242 } 238 243 // Slice off the number of items that we want: 239 if ($this->args['num_items'] > 0 )244 if ($this->args['num_items'] > 0 && is_array($this->items)) 240 245 { 241 246 $this->items = array_slice($this->items, 0, $this->args['num_items']); … … 344 349 345 350 if($this->args['show_date_per_item']){ 346 $thisItemDate = '<div class="feedItemDate">' . $item['feeddate'] . '< div>';351 $thisItemDate = '<div class="feedItemDate">' . $item['feeddate'] . '</div>'; 347 352 } 348 353 … … 602 607 function randomFeedList($args){ 603 608 if(!is_array($args)){ 604 $ this->args = parse_str($args,$a);605 $ this->args = $a;609 $args = parse_str($args,$a); 610 $args = $a; 606 611 } 607 612 $feed = new FeedList($args); … … 674 679 return r; 675 680 } else { 676 alert("Handler could not be removed");681 // alert("Handler could not be removed"); 677 682 } 678 683 } -
feedlist/trunk/feedList/readme.txt
r132812 r157336 4 4 Tags: rss, atom, feeds, listings 5 5 Requires at least: 1.5 6 Tested up to: 2. 7.17 Stable tag: 2.2 36 Tested up to: 2.8.4 7 Stable tag: 2.24 8 8 9 9 Allows you to display lists of links from an rss or atom feed on your blog. … … 91 91 92 92 07 Jul 2009 Added "feedListExtensions.php" with first extension point, "transformURL" see bottom of this document for help on extensions. 93 94 23 Sep 2009 fixed a variety of issues identified at http://code.google.com/p/wp-feedlist/issues/list (issues: 15, 17, 22, 30, 31, 32, 37) 93 95 ------------------------------------------------------------------------------------------------------- 94 96 … … 120 122 * before (default: "<li>") - Tag placed before the item 121 123 * after (default: "</li>") - Tag placed after the item 122 * description_sep erator (default: " - ") - Between the link and the item124 * description_separator (default: " - ") - Between the link and the item 123 125 * encoding (default: false) - Change to true if you are reading in a ISO-8859-1 formatted file. Basically, if you see a bunch of question marks (?) in your titles set this to true and see if it fixes the problem. 124 126 * sort (default: "none") - takes one of three values; none, asc, desc
Note: See TracChangeset
for help on using the changeset viewer.