BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 21-05-2009 20:48:53

m_a_r_kus
New member
Registered: 21-05-2009
Posts: 2

RSS and Teaser

I'm using SimplePie to try and grab my RSS feed from MyNews. The title and date show up in the feed, but not the teaser. I've made no changes to the 1.6.5 version of MyNews, so maybe it's the reader?

I guess the question is, should I be seeing the teaser in MyNews' RSS feed?

Thanks for the help.

Last edited by m_a_r_kus (21-05-2009 21:23:13)

Offline

 

#2 22-05-2009 17:12:58

m_a_r_kus
New member
Registered: 21-05-2009
Posts: 2

Re: RSS and Teaser

Can't figure it out. The MyNews RSS feed won't display the Teaser using SimplePie. Anybody want to take a guess?

Offline

 

#3 18-06-2009 20:58:04

DC
Member
Registered: 01-06-2008
Posts: 13

Re: RSS and Teaser

Not sure about SimplePie are we talking apple? I like cupcakes :-) ...

Hey I can tell you that there are a few small problems you may need to mod in the rss code that MyNews uses ...

First it does not gen a date this is required for many readers and you may get errors i have a js reader that uses php and ajax and I got errors so i modified the code in the script like so ...

So for this to show the teaser in my opin you will need to add that to the feed as well in the same way I have added the correct date data.

I also added a way that the link id is added as well.


//DC Mod detects if we have a read-more and adds the id to our link ...
    if ($description == $row['teaser']){
    $link = $rssNewspageUrl.((strpos($rssNewspageUrl, "?")!==false) ? "&" : "?")."mnid=".$row['id'];
    }else{
    $link = $rssNewspageUrl.((strpos($rssNewspageUrl, "?")!==false) ? "&" : "");
    }
    $i++;


//DC Mod adds date for correct parsing in most readers ...
    $pubdate = date('D, d M Y H:i:s +0000', date($row['time']));

    echo '
    <item rdf:about="'.$link.'">
    <title>'.$title.'</title>
    <link>'.$link.'</link>
    <description>'.$description.'</description>
    <pubDate>'.$pubdate.'</pubDate>
    </item>
    ';

This may at least help you to go in a direction that may just work for you. as i said althogh not directly related to SimplePie it may get you in a direction where you can make it work for you.

DC

Last edited by DC (18-06-2009 20:58:37)


To code or not to code that is the question? Did my response help you out? Consider donating by buying me a slice, Whats this? Read More! http://www.clickcraft.net/slice_don.php

Offline

 

#4 20-09-2009 03:22:29

Counterspell
New member
Registered: 19-09-2009
Posts: 3

Re: RSS and Teaser

Awhile ago a group of people had a discussion found here:
http://www.planetluc.com/forum/viewtopi … =1196#1196
This is a rss2.0 script that works very well and has the teasers included.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |