Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:03 am EST

Geeklog Forums

Portal Block problem with comments


Status: offline

wfzimmerman

Forum User
Chatty
Registered: 10/24/03
Posts: 50
confused
Hi,

I have a portal block pointing at my Audioscrobbler RSS feed which is

http://ws.audioscrobbler.com/rdf/history/wfzimmerman

I can see that the feed is being pulled correctly because when I view source on my geeklog page I see this:

<tr><td><!-- <ul> --><li><a href="http://www.audioscrobbler.com/music/Dave+Holland+Big+Band/_/What+Goes+Around"></a></li><li><a href="http://www.audioscrobbler.com/music/Dave+Holland+Big+Band/_/The+Razor%27s+Edge"></a></li><li><a href="http://www.audioscrobbler.com/music/Dave+Holland+Big+Band/_/Blues+For+C.M."></a></li><li><a href="http://www.audioscrobbler.com/music/Dave+Holland+Big+Band/_/Triple+Dance"></a></li><!-- </ul> -->

</td>
Unfortunately, it seems the comments are causing the browser to ignore the HTML links to my recently played songs, so I am just getting four blank bullets when I look in the browser (right hand column http://www.wfzimmerman.com/index.php?topic=music).

ANy ideas how to fix this?

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
From your theme's list.thtml, remove the offending comments and save the portal block again (deleting the content first), so that the block is created again with the new content.

bye, Dirk
 Quote

Status: offline

wfzimmerman

Forum User
Chatty
Registered: 10/24/03
Posts: 50
As usual my first diagnosis was wrong. It's not the comments that are the problem. It's that the feed parser is successfully finding the URL to the target, but is not successfully resolving name for the target. Any ideas? the feed does not validate because of an incorrect date element

http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Fws.audioscrobbler.com%2Frdf%2Fhistory%2Fwfzimmerman

so I can hardly blame Geeklog -- although some readers (e.g. NewsGator) resolve the feed successfully. Any ideas?

!-- <ul> --><li><a href="http://www.audioscrobbler.com/track.php?id=7753637&mode=music">**MISSING TARGET HERE**</a><li><a href="http://www.audioscrobbler.com/music/Nana+Mouskouri/_/Precious+Memories">MISSING TARGET HERE</a><li><a href="http://www.audioscrobbler.com/music/The+Harp+Consort/_/Carolan%27s+Dream"></a><li><a href="http://www.audioscrobbler.com/music/The+Grehan+Sisters/_/Henry+Joy"></a><li><a href="http://www.audioscrobbler.com/music/Enya/_/River"></a><li><a href="http://www.audioscrobbler.com/music/Enya/_/On+Your+Shore"></a><li><a href="http://www.audioscrobbler.com/music/Enya/_/Once+You+Had+Gold"></a><li><a href="http://www.audioscrobbler.com/music/Enya/_/Paint+The+Sky+With+Stars"></a><li><a href="http://www.audioscrobbler.com/music/Enya/_/Shepherd+Moons"></a><li><a href="http://www.audioscrobbler.com/music/Duke+Ellington/_/Charpoy"></a><!-- </ul> -->

I'm assuming this is a problem or nonstandardness with the feed.

 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by wfzimmerman: the feed does not validate because of an incorrect date element

It does seem to validate now, but the actual problem is somewhere else.

Geeklog is looking for a 'title' element in the feed, but this one only offers 'dc:title' elements.

Quick'n'dirty solution: In lib-common.php, find the piece of code that reads
Text Formatted Code
            case 'TITLE':
                $RDFtitle .= $data;
                break;
 
Duplicate it and change the 'TITLE' to 'DC:TITLE' on the duplicate. It should then be able to parse both feed with a 'title' as well as those with a 'dc:title' element.

bye, Dirk
 Quote

All times are EST. The time is now 09:03 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content