Webmastersite.net
Register Log In

RSS

Comments on RSS

aribuser
Beginner

Usergroup: Member
Joined: Dec 07, 2004

Total Topics: 2
Total Comments: 6
Posted Jan 11, 2005 - 2:57 PM:

Hi,

Could anyone recomend the proper way to change the format of outgoing links in RSS feed from default

http://www.linkname.com/

to

http://www.directory.com/links/LINKNUBER

Thank you.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 13, 2005 - 5:59 AM:

You'd have to edit rssfeed.php and just change
$linkstuff = $settings->dirurl .'/link.php?id='. $thisone->id;
to make /link.php?id= into /links/
aribuser
Beginner

Usergroup: Member
Joined: Dec 07, 2004

Total Topics: 2
Total Comments: 6
Posted Jan 13, 2005 - 2:00 PM:

Thank you!
This is exactly that I want :-))))))

Thank you!
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Jan 14, 2005 - 12:22 PM:

I'm having problems getting my RSS to work. Here's the link I'm using:

www.gamelinks.com/rssfeed.p...umber=10&field=time&ascdes c=descending

Here's what happens in Firefox:

XML Parsing Error: not well-formed
Location: www.gamelinks.com/rssfeed.p...umber=10&field=time&ascdes c=descending
Line Number 17, Column 61:http://www.hyperology.com/element.php?n=dronesweeper&t=Dronesweeper&m=flash &p=cat%3D3&w=600&h=400


And in Explorer:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
--------------------------------------------------------------------------- -----
A semi colon character was expected. Error processing resource 'http://www.gamelinks.com/rssfeed.php?type=links&number=10&f...
www.hyperology.com/element....per&t=Dronesweeper&m=flash &p=cat%3D3&w=600&...


I could have sworn that I tested this out last night and it worked, but I'm having no such luck now.

Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 14, 2005 - 2:36 PM:

As far as I can tell, you can't have a URL that has an = in it, because that's a reserved character of some sort in RSS. I can't find any info on how dynamic URLs might be made to work inside an RSS feed.
Emory
Member

Usergroup: Customer
Joined: Nov 11, 2003

Total Topics: 9
Total Comments: 21
Emory
Posted Jan 16, 2005 - 2:03 AM:

Has anyone tried formatting the links to output the details page url instead of outgoing links url?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 16, 2005 - 10:12 PM:

If not using mod_rewrite, you'd run into the same & problem mentioned by Synozeer above.
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
Posted Jan 17, 2005 - 6:27 AM:

Oh well. If anyone comes up with a solution to this, please post it.

Thanks,
Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 18, 2005 - 11:58 AM:

Actally, I think it's just that the links are being input as imporper HTML. Technically, an & has to be & a m p ; (without spaces) in HTML.

Just replace
echo '

with

$linkstuff = str_replace('&', '& a m p ;', $linkstuff);

echo '



(again removing spaces in the amp.
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
#10 - Quote - Permalink
Posted Jan 19, 2005 - 11:10 AM:

The "&" fix seems to have worked for the original link, but when I try using another field, I get a similar error:

www.gamelinks.com/rssfeed.p...umber=10&field=rating&ascd esc=descending

Also, the results for the now working links appear to be wrong. Using the examples from the manual, I get these two links:

www.gamelinks.com/rssfeed.p...umber=10&field=time&ascdes c=descending

www.gamelinks.com/rssfeed.p...umber=10&field=time&ascdes c=descending&thecondition=type='regular'

For both of them, it should list the newest 10 links. However, it's listing some links twice and others that shouldn't be there. I'm wondering if it's listing link aliases as well, and if so, how do I get it to list only the 10 posted links?

Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#11 - Quote - Permalink
Posted Jan 19, 2005 - 12:58 PM:

Where do you get a similar error? Your link doesn't seem to show an error.
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
#12 - Quote - Permalink
Posted Jan 19, 2005 - 2:41 PM:

This is what I see when I click on the first link:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

An invalid character was found in text content. Error processing resource 'http://www.gamelinks.com/rssfeed.php?type=links&...

Link letters and create words to feed the hungry, hungry Bookworm! But watch out for fiery red letters......

I'm using the latest version of IE.

When I do it in Firefox, it shows the RSS, but additionally with this message at the top:


This XML file does not appear to have any style information associated with it. The document tree is shown below.

Adam
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#13 - Quote - Permalink
Posted Jan 19, 2005 - 5:34 PM:

I don't know the the 'style' stuff is about, seems to me that stylesheets and RSS are very different things.

Try the attached. If that doesn't work, maybe it's just the double URLs involved there with those links.

Attached Files:
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
#14 - Quote - Permalink
Posted Jan 19, 2005 - 5:43 PM:

The file I have for WSN Forum seems to be a bit different, perhaps it'll work better:

Attached Files:
Synozeer
Forum Regular

Usergroup: Customer
Joined: Jun 02, 2004

Total Topics: 32
Total Comments: 142
#15 - Quote - Permalink
Posted Jan 20, 2005 - 2:09 PM:

No go. I get this error:

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------- -----

The following tags were not closed: rss, channel. Error processing resource 'http://www.gamelinks.com/rssfeed.php?type=link...

Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.