Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - How to Display Last 5 Posts on ASP Page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to Display Last 5 Posts on ASP Page

 Post Reply Post Reply Page  12>
Author
wmeyers View Drop Down
Newbie
Newbie
Avatar

Joined: 11 February 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote wmeyers Quote  Post ReplyReply Direct Link To This Post Topic: How to Display Last 5 Posts on ASP Page
    Posted: 06 April 2006 at 6:50pm
Can someone please share the code they would use to display the last 5 forum topics on an ASP page?
 
I've read something about a javascript routine that does this, but I can't locate the actual code.
 
Thanks!
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2006 at 11:47am
The forum has an RSS Feed of the last 10 posts.

If you search on Google there are tools to be able to display an RSS Feed in another page even another site, you could use one of these RSS Feed Tools to display the last 10 posts in another page.
Back to Top
wmeyers View Drop Down
Newbie
Newbie
Avatar

Joined: 11 February 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote wmeyers Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2006 at 2:00pm
Thanks, yeah, I was searching yesterday and coming across all kinds of stuff. I was hoping if someone here was already doing it they could share the code that works. Information overload is confusing me!
 
From what I understand there is a program that extracts the forum data, then another program that translates it. After it is translated, it can be read by a java snippet.
 
Does your program do the translation as well as the extraction? Or am I misunderstanding what I'm reading?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2006 at 2:05pm
I've never looked at the tools that allow you to place RSS Feeds in other pages, I just know they exist.

One day when I have the time I will look into it further.
Back to Top
wmeyers View Drop Down
Newbie
Newbie
Avatar

Joined: 11 February 2006
Location: United States
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote wmeyers Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2006 at 8:45pm
OK, I had some luck today I'd like to share.
 
Here is a link that helped me:
 
 
I put the ASP sub code in my ASP page, and added the html snippet to call it where I want the forum entries to appear.
 
On the above page there is a link to download a news.xsl file - this translates the RSS format into an html compatible format, and is very similar to html. I am playing with this file now to get the forum data to appear the way I want it.
 
The only things to remember is to modify the path to news.xsl (or whatever you want to call it) so it points to this file which you need to upload to the forum directory, and to enter the URL to the rss_topic.asp page in the html snippet where you want the forum data to appear.
 
If anyone has any questions please feel free to contact me or post here, I'll do my best to share what I did to get to this point.
 
You can see the results on http://www.CommuterClub.org/
 
Back to Top
Andersen View Drop Down
Groupie
Groupie


Joined: 07 July 2002
Location: Denmark
Status: Offline
Points: 152
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andersen Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2006 at 8:56pm
I have tried some of the RSS readers. (Seperate apps).
Due to problems with the RSS feed from my forum, which I first thought was because of the scandinavian letters, I tested a few readers feeds from other sites which also contained scandinavian letters. They worked fine in the readers I tested. But my forum still fails.
I think there is a problem in the feed from WWF.
Greets
Andersen
Back to Top
Andersen View Drop Down
Groupie
Groupie


Joined: 07 July 2002
Location: Denmark
Status: Offline
Points: 152
Post Options Post Options   Thanks (0) Thanks(0)   Quote Andersen Quote  Post ReplyReply Direct Link To This Post Posted: 07 April 2006 at 9:15pm
Arrgh, have just been told, my forum is working fine in Firefox.. Now I really dont get it Wacko
Greets
Andersen
Back to Top
niugiovanni View Drop Down
Groupie
Groupie


Joined: 20 July 2004
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote niugiovanni Quote  Post ReplyReply Direct Link To This Post Posted: 08 April 2006 at 12:48am
Just use an SQL query by topic number and get the last 5 posts relating to a forum_id. Or am I missing what you're really looking for? If I can help just PM me. I've integrated WebWiz into four sites now.

    http://www.heatofbattle.net
http://www.mikesmarauders.com

Edited by niugiovanni - 08 April 2006 at 12:49am
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.