-
☆ A M B ☆
- 3,112 Posts
This is a topic for
spiefeed 1.3-pl by goldsky.
Brief Description:
CHANGELOG:
* fixed the sorting bug caused by the same values of the sorting key.
This snippet is based on
SimplePie 1.2 which is already included in the package:
https://github.com/simplepie/simplepie/tree/one-dot-two
Basic call: [ [ ! spiefeed ] ]
Documentation is here:
http://rtfm.modx.com/display/ADDON/spieFeed
[ed. note: goldsky last edited this post 15 years ago.]
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
As no support topic seems to exist for 1.4, I will leave my request here!
I am using spiefeed 1.4 on a Revo 2.2 install. On a blank page with just a single basic call, I get nothing. In my error log I'm told "spiefeed.snippet.php : 265) PHP warning: trim() expects parameter 1 to be string, array given".
I have tried more advanced snippet calls, but they return the same result. I can see in the cache folder that my feeds are being brought back successfully, but beyond that I am having no success.
Suggestions welcomed. Thanks.
-
☆ A M B ☆
- 3,112 Posts
got that.
try change that line to be like this:
// clean up all empty params
foreach ($spie as $k => $v) {
if ((!is_array($spie[$k]) && trim($v) == '') || (is_array($spie[$k]) && empty($v)))
unset($spie[$k]);
}
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
Ow ! That works, stupid typo.
Thanks !
-
☆ A M B ☆
- 3,112 Posts
yw
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.