Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • General Repository Items Support
  •  
  • Support/Comments for spiefeed 1.3-pl#

  • 11055
    2,536
    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!
    Security, security, security!
    Indonesia MODx Forum
    MODx Revo's cheatsheets
    MODx Evo's cheatsheets
    IE 6 must die !
    Easy 2 Gallery 1.4.x
    spiefeed
    Tutorial links
    PING ME ON TWITTER @_goldsky

    goldsky Reply #1, 8 months ago

    Reply
    • Link to this post#1
    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
    Edited 8 months ago by goldsky


  • 7222
    9

    devolute Reply #2, 3 months, 3 weeks ago

    Reply
    • Link to this post#2
    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.


  • 11055
    2,536
    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!
    Security, security, security!
    Indonesia MODx Forum
    MODx Revo's cheatsheets
    MODx Evo's cheatsheets
    IE 6 must die !
    Easy 2 Gallery 1.4.x
    spiefeed
    Tutorial links
    PING ME ON TWITTER @_goldsky

    goldsky Reply #3, 3 months, 3 weeks ago

    Reply
    • Link to this post#3
    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]);
    }
    


  • 36730
    46

    Epy Reply #4, 3 months, 2 weeks ago

    Reply
    • Link to this post#4
    Hi
    No topic for 1.5 too
    It seems that the limit parameter isn't used anymore, I found that in RTFM:
    setItemLimit Set the maximum number of items to return per feed with Multifeeds.
    This is NOT for limiting the number of items to loop through in a single feed.
    For that, you want to pass $start and $length parameters to get_items().
    I didn't understood what to do, how do I pass parameters to get_items() from the snippet call ?
    I tried &getItemLenght=`5` &getItemStart=`0` but it didn't work, I still have about 20 items in my feed

    Thanks


  • 11055
    2,536
    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!
    Security, security, security!
    Indonesia MODx Forum
    MODx Revo's cheatsheets
    MODx Evo's cheatsheets
    IE 6 must die !
    Easy 2 Gallery 1.4.x
    spiefeed
    Tutorial links
    PING ME ON TWITTER @_goldsky

    goldsky Reply #5, 3 months, 2 weeks ago

    Reply
    • Link to this post#5
    try getItemLength


  • 36730
    46

    Epy Reply #6, 3 months, 2 weeks ago

    Reply
    • Link to this post#6
    Ow ! That works, stupid typo.
    Thanks !


  • 11055
    2,536
    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!
    Security, security, security!
    Indonesia MODx Forum
    MODx Revo's cheatsheets
    MODx Evo's cheatsheets
    IE 6 must die !
    Easy 2 Gallery 1.4.x
    spiefeed
    Tutorial links
    PING ME ON TWITTER @_goldsky

    goldsky Reply #7, 3 months, 2 weeks ago

    Reply
    • Link to this post#7
    yw





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
devolute, epy___, goldsky

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy