Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - RSS Feed of Latest Forum Posts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

RSS Feed of Latest Forum Posts

 Post Reply Post Reply Page  <12
Author
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2005 at 12:36pm
Works now. Borg has some forum code for claening out special characters before running an sql update.
 
I'm working with xsl this week so tonight I'll take a run at your xml and set one up for it to be built as an embedable table.
 
EDIT: You might want to make the channel description something a little more appropriate for viewing on other peoples sites. Right now, the description is geared for viewing from your site.


Edited by dpyers - 28 February 2005 at 12:40pm

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Agni View Drop Down
Newbie
Newbie


Joined: 02 July 2004
Location: Greece
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Agni Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2005 at 4:43pm
I've had a great day 'playing' with XML and am seeing loads of useful applications!

DP, I've renamed the main channel to the forum. Maybe I will also add some other channels later.

I am now trying to add the text of the "latest forum posts" to the RSS feed, but some of the posts formating is causing errors.

I have already found a function to remove the HTML tags, but what about all the other control codes such as '&#146;'  If these are not removed then errors in the XML code will result.

Any advise or suggestions would be very welcome.

Thanks

Nathan
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2005 at 7:26pm
Hi Nathan,

If you find some travel sites that are offering XML content or RSS feeds, I would appreciate an email. I'm designing sites for 2 clients that own US travel agencies. So far, it has been difficult to find any feeds from the travel industry that I can pull into their sites without extensive parsing.

You can directly email me at rex (at) rexpage (dot) com if you have time, or post here.

Thanks in advance.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2005 at 11:32pm
Here's some code I use to replace asp code characters for display purposes. You could probably use code like it to do the reverse.
 
 strPageText = replace(strPageText,"&","&amp;")
 strPageText = replace(strPageText,"<", "&lt;")
 strPageText = replace(strPageText,">", "&gt;")
 strPageText = replace(strPageText,vbCRLF, "<br>")
 strPageText = replace(strPageText,vbTab, "&nbsp;&nbsp;&nbsp;")

 
I wasn't able to get to your xml file last night, but I played with it this evening. link to zip.
 
If you take the header and footer includes out of the asp file, you could just include the asp file in any page. The xsl style sheet could be used for any 1.0 or 2.0 rss feed - not sure about 0.91 as I think that has a DocType specified.
 
I embedded the css for the table within the xsl but it could also be copied into a linked site or page style sheet. Just a little easier for someone to modify the css this way.
 
 

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Agni View Drop Down
Newbie
Newbie


Joined: 02 July 2004
Location: Greece
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Agni Quote  Post ReplyReply Direct Link To This Post Posted: 02 March 2005 at 3:07pm
DP, thanks Soooooo much. You have helped me cure all the problems with displaying the Forum message within the XML feed, PLUS given me a way to display the feed on other sites.

I'm really greatful. (Check your inbox, I'll try to email you a free holiday! )

My RSS feed is working really well now and my members love it!

Thanks everyone for your help

Nathan
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.