Welcome to WebmasterWorld Guest from 23.22.250.113

Forum Moderators: bill & werty

Message Too Old, No Replies

Help with Magpierss RSS Feed

Help with Magpierss RSS Feed

     

Miva

9:54 am on Mar 16, 2007 (gmt 0)

5+ Year Member



I have the Magpierrs with smarty all set up. Works great but can't truncate the description or control the amount of listings I get.

Can anyone help? Thanks!

bill

9:23 am on Apr 3, 2007 (gmt 0)

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld Miva. Sorry that nobody has been able to help you out yet.

The Magpie FAQ has a section that seems to answer your question, at least in part:

  • Limit the number of headlines (aka items) returned. [magpierss.sourceforge.net]
  • weppos

    2:22 pm on Apr 13, 2007 (gmt 0)

    10+ Year Member



    You can truncate the length of the description using PHP substr() function.

    For instance, if print($description) prints the description, then print(substr($description, 0, 30)) will print out just the first 30 characters.

     

    Featured Threads

    Hot Threads This Week

    Hot Threads This Month