Welcome to WebmasterWorld Guest from 54.161.157.73

Forum Moderators: bill & werty

Message Too Old, No Replies

Help with Magpierss RSS Feed

Help with Magpierss RSS Feed

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

New User

10+ Year Member

joined:Aug 18, 2006
posts:1
votes: 0


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!

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

Administrator from JP 

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

joined:Oct 12, 2000
posts:14894
votes: 112


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]
  • 2:22 pm on Apr 13, 2007 (gmt 0)

    Junior Member

    10+ Year Member

    joined:Jan 26, 2005
    posts: 46
    votes: 0


    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.