FeedForAll Forum Index  
 Home  •  FAQ  •   Search   •  Register   •  Profile   •  Log in
 Problem with dlvr.it View next topic
View previous topic
Post new topicReply to topic
Author Message
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Thu Apr 25, 2013 4:01 pm Reply with quoteBack to top

Hello.

I've an problem. The original rss from dlvr.it is

Code:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dlvrit="http://feeds.dlvr.it/atom">
  <title>News für Dienstleister und Anbieter</title>
  <link href="http://feeds.dlvr.it/206a985f3e884b71a22cb0c729edaeb3.xml" rel="self"/>
  <id>tag:dlvr.it,2012-09-26:206a985f3e884b71a22cb0c729edaeb3</id>
  <updated>2013-04-18T03:10:02-07:00</updated>
  <author>
    <name><![CDATA[News für Dienstleister und Anbieter]]></name>
  </author>
  <entry>
    <title><![CDATA[Konzentrationstraining: Schach macht schlau]]></title>
    <link href="http://bit.ly/11gc1lh" rel="alternate"/>
    <source>
      <link href="http://www.familienfreund.de/plugins/rssfeed/feed1.xml" rel="alternate"/>
      <title><![CDATA[Konzentrationstraining: Schach macht schlau]]></title>
    </source>
    <id>tag:dlvr.it,2013-04-18:6bbd4332d7ec6b022d7a7022329538cb</id>
    <updated>2013-04-18T03:10:02-07:00</updated>
    <content type="html">
      <![CDATA[<p>
      <span>Schach gilt nicht nur als Sport - als Konzentrationstraining kann man damit auch sein Denkvermögen verbessern. Studien zufolge steigert regelmäßiges Schachspiel die Aufmerksamkeit, Konzentrations- und Wahrnehmungsfähigkeit. </span></p>
      <p></p><p><span><br /></span></p>]]>
    </content>
  </entry>
</feed>


on the site familienfreund.de/dienstleister.html the result of

Code:
<?php
          readfile('http://www.familienfreund.de/rss2html/rss2html.php?XMLFILE=http://feeds.dlvr.it/206a985f3e884b71a22cb0c729edaeb3.xml&TEMPLATE=http://www.familienfreund.de/rss2html/familiennews.html&MAXITEMS=4&ItemDescriptionLength=80');
          ?>


is

Code:
<!-- HTML generated from an RSS Feed by rss2html.php, http://www.FeedForAll.com/ a NotePage, Inc. product (http://www.notepage.com/) -->
            <li>
            <div class="clearing">&nbsp;</div>
            <span class="headline"><a href="http://www.familienfreund.de/plugins/rssfeed/feed1.xml">Konzentrationstraining: Schach macht schlau</a></span>
            <div>Schach gilt nicht nur als Sport - als Konzentrationstraining kann man damit ...</div>
            </li>


You can see that the (Itemlink) link is the link from the source ... (it is the url of the original rss before dlvr.it works with it).

How can use the itemlink instead of the sourcelink ?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Fri Apr 26, 2013 7:50 am Reply with quoteBack to top

You can try playing with these different variables in your template and see which gives the info you want:

~~~ItemLink~~~
~~~ItemSource~~~
~~~ItemSourceUrl~~~

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Fri Apr 26, 2013 12:04 pm Reply with quoteBack to top

Tech Support wrote:
You can try playing with these different variables in your template and see which gives the info you want:


~~~ItemLink~~~ -> Link of the source-rss (before dlvr.it)
~~~ItemSource~~~ -> the Url of the website
~~~ItemSourceUrl~~~ -> the Url of the website

Sorry, this solved not the problem.

Any other ideas ?
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Fri Apr 26, 2013 2:17 pm Reply with quoteBack to top

When you use each of those variables in you template, what value gets returned for each of them?

~~~ItemLink~~~ = ?
~~~ItemSource~~~ = ?
~~~ItemSourceUrl~~~ =?

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Fri Apr 26, 2013 2:55 pm Reply with quoteBack to top

<?php
readfile('http://www.familienfreund.de/rss2html/rss2html.php?XMLFILE=http://feeds.dlvr.it/206a985f3e884b71a22cb0c729edaeb3.xml&TEMPLATE=http://www.familienfreund.de/rss2html/familiennewsdlvrit.html&MAXITEMS=4&ItemDescriptionLength=80');
?>

ItemSource -> http:// www.familienfreund.de/dienstleister.html

ItemLink -> http:// www.familienfreund.de/plugins/rssfeed/feed1.xml

ItemSourceUrl -> http:// www.familienfreund.de/dienstleister.html
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Mon Apr 29, 2013 8:06 am Reply with quoteBack to top

The problem is that in the elements in this feed, there is a tag called <source> which contains an additional <link> tag. This second instance of the <link> tag is overwriting the value in the first <link> tag.

It is sort of a hack, but I have uploaded a modified version of the rss2html parser file that will ignore the second <link> tag. Give it a try and let me know if it helps.

Download:
http://www.feedforall.com/download/dev/FeedForAll_XMLParser.inc.php

_________________
Create RSS Feeds
Audio Recording and Editing

Last edited by Tech Support on Mon Apr 29, 2013 11:04 am; edited 1 time in total
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Mon Apr 29, 2013 9:25 am Reply with quoteBack to top

sorry, there is an 404
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Mon Apr 29, 2013 11:31 am Reply with quoteBack to top

There was a typo in the original link. It has since been fixed, please retry it.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Mon Apr 29, 2013 12:28 pm Reply with quoteBack to top

I can't download the file. :-(

0 Bytes.
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Mon Apr 29, 2013 3:32 pm Reply with quoteBack to top

Sorry about that.

Give this one a try:

http://www.feedforall.com/download/dev/FeedForAll_XMLParser.inc.zip

You will need to unzip it to get the file.

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Mon Apr 29, 2013 5:30 pm Reply with quoteBack to top

?

http://web-sniffer.net/?url=http://www.feedforall.com/download/dev/FeedForAll_XMLParser.inc.zip

once more 404
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Tue Apr 30, 2013 9:53 am Reply with quoteBack to top

Well that was embarrassing. :(

I had the capitals wrong. This is the correct link... I promise.

http://www.feedforall.com/download/dev/Feedforall_xmlparser.inc.zip

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Tue Apr 30, 2013 11:41 am Reply with quoteBack to top

I could scream. :-(

I've prepared it for you:

http://www.familienfreund.de/rss2html/rss2html.php?XMLFILE=http://feeds.dlvr.it/206a985f3e884b71a22cb0c729edaeb3.xml&TEMPLATE=http://www.familienfreund.de/rss2html/familiennewsdlvrit.html&MAXITEMS=1

with the 'new' .inc.php

Thomas
View user's profile
ThomasKujawa



Joined: 25 Apr 2013
Posts: 14

PostPosted: Tue Apr 30, 2013 11:43 am Reply with quoteBack to top

<h1>ItemLink</h1>
<div class="feedburnerFeedBlock">
<ul>
~~~BeginItemsRecord~~~
<li>
<div class="clearing">&nbsp;</div>
<span class="headline"><a href="~~~ItemLink~~~">~~~ItemTitle~~~</a></span>
<div>~~~ItemDescription~~~</div>
</li>
~~~EndItemsRecord~~~
</ul>
</div>
<h2>ItemSource</h2>
<div class="feedburnerFeedBlock">
<ul>
~~~BeginItemsRecord~~~
<li>
<div class="clearing">&nbsp;</div>
<span class="headline"><a href="~~~ItemSource~~~">~~~ItemTitle~~~</a></span>
<div>~~~ItemDescription~~~</div>
</li>
~~~EndItemsRecord~~~
</ul>
</div>
<h3>ItemSourceUrl</h3>
<div class="feedburnerFeedBlock">
<ul>
~~~BeginItemsRecord~~~
<li>
<div class="clearing">&nbsp;</div>
<span class="headline"><a href="~~~ItemSourceUrl~~~">~~~ItemTitle~~~</a></span>
<div>~~~ItemDescription~~~</div>
</li>
~~~EndItemsRecord~~~
</ul>
</div>
View user's profile
Tech Support



Joined: 27 Aug 2004
Posts: 2783

PostPosted: Thu May 02, 2013 9:04 am Reply with quoteBack to top

I have uploaded and tested another version of this file. Please give it a try:

http://www.feedforall.com/download/dev/Feedforall_xmlparser.inc.zip

_________________
Create RSS Feeds
Audio Recording and Editing
View user's profile
Display posts from previous:      
Post new topicReply to topic


 Jump to:   



View next topic
View previous topic


Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme