Print Page | Close Window

How to insert RSS Feed into my homepage?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=21406
Printed Date: 29 March 2026 at 7:49pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How to insert RSS Feed into my homepage?
Posted By: mconway72
Subject: How to insert RSS Feed into my homepage?
Date Posted: 26 September 2006 at 8:32pm
I am an IT support person, and not a web designer, so bare with me.  I have created an ecommerce site and purchased web wiz for my forum.  I am looking to have the last 10 posts of my forum display on the homepage of my site, much like this site:
 
http://www.subfighter.com/ - http://www.subfighter.com/
 
My Site is http://www.mmapower.com/ - http://www.mmapower.com/ ... the forum is live and active, but I want to put the last 10 posts on my homepage, like SubFighter does.  I use Dreamweaver 8 for my editing, and currently have Web Wiz 8.x latest version.  I am using ASP on a Windows 2003 Web Server.  I basicaly want to insert my RSS Feed onto my homepage in a similar format to the Sunfighter example.
 
Anyone able to give me useful tips to a web design novice?



Replies:
Posted By: mconway72
Date Posted: 26 September 2006 at 9:01pm
I should add that I am using SQL Server for my forum.
 
Help?


Posted By: Hades
Date Posted: 26 September 2006 at 9:18pm
I think balearicjobs just did what you're after :
  http://forums.webwiz.net/forum_posts.asp?TID=21398 - http://forums.webwiz.net/forum_posts.asp?TID=21398


-------------
Hades[hLcYb¿]

-What're quantum mechanics?
-I don't know. People who repair quantums, I suppose.

--Rincewind, Discworld


Posted By: mconway72
Date Posted: 07 November 2006 at 7:09pm
I've tried and tried, but with my remedial Web Programming Skills, I just can't seem to get this accomplished.
 
Is anyone interested in doing this?  I am obviously paying the person who does for their work.  Please let me know ... more details (also first post for more details):
 
I currently have a forum on the website ( http://www.mmapower.com/forum/default.asp - http://www.mmapower.com/forum/default.asp ) … I use Dreamweaver 8 for my editing, and currently have Web Wiz 8.x latest version.  I am using ASP on a Windows 2003 Web Server.   The Forum has a built in RSS Feed, as you will see by it’s orange and white icon at the top right of the forums.  I am trying to incorporate the RSS Feed into the home page ( http://www.mmapower.com/ - http://www.mmapower.com/ ), showing the last 10 posts, exactly like Subfighter does ( http://www.subfighter.com/ - http://www.subfighter.com/ ).  I researched in the forum of the company that sold me their product, and here are the tips, but it is beyond my skill level … http://forums.webwiz.net/forum_posts.asp?TID=21406 - http://forums.webwiz.net/forum_posts.asp?TID=21406 and http://forums.webwiz.net/forum_posts.asp?TID=21262&SID=1f1937fc1d1b2ad4c9e2e2153f316bda - http://forums.webwiz.net/forum_posts.asp?TID=21262&SID=1f1937fc1d1b2ad4c9e2e2153f316bda .
 


Posted By: MadDog
Date Posted: 08 November 2006 at 2:22am
Dude, do a search on the forums.

Its called "Latest Forum Posts". This mod has been around for years.


-------------
http://www.iportalx.net" rel="nofollow">


Posted By: justme
Date Posted: 08 November 2006 at 6:54am
Hey Drew,
 
can you help us with the 'Latest Forum Posts' mod so it only displays the topic once and not every time it gets updated. Thanks in advance.
 


Posted By: justme
Date Posted: 08 November 2006 at 7:00am
Here is the original code from Drew, make sure you enter you MS SQL DB specifics. I use this code and it works great, thanks for a guy name Drew AKA MadDog :)
 
 
 
 
<%

'****************************************************************************************

'** Copyright Notice

'**

'** iPortalX.net

'**

'** Copyright 2001-2003 Drew Gauderman All Rights Reserved.

'**

'** This program is a free software; you can modify (at your own risk) any part of it

'** under the terms of the License that accompanies this software and use it both

'** privately and commercially.

'**

'** You may use parts of this program in your own private work, and you may NOT

'** redistribute, repackage, or sell the whole or any part of this program even

'** if it is modified or reverse engineered in whole or in part without express

'** permission from the author.

'**

'** You may not pass the whole or any part of this application off as your own work.

'**

'** This program is distributed in the hope that it will be useful,

'** but WITHOUT ANY WARRANTY; without even the implied warranty of

'** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER

'** WARRANTIES WHETHER EXPRESSED OR IMPLIED.

'**

'** Questions are NOT answered by e-mail ever!

'**

'** If you have problems please visit:-

'** www.iportalx.net

'**

'** For correspondence or non support questions contact: -

'** drew@aspinvision.com

'**

'****************************************************************************************

%>

<style type="text/css">

<!--

.text {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12; color: black;}

a {font-family: Verdana, Arial, Helvetica, sans-serif, Verdana, Arial, Helvetica, sans-serif; color: blue; font-size: 12; text-decoration: none;}

a:hover {font-family: Verdana, Arial, Helvetica, sans-serif; color: blue; font-size: 12; text-decoration: underline;}

a:visited {font-family: Verdana, Arial, Helvetica, sans-serif; color: blue; font-size: 12; text-decoration: none;}

a:visited:hover {font-family: Verdana, Arial, Helvetica, sans-serif; color: blue; font-size: 12; text-decoration: underline;}

-->

</STYLE>

<table cellpadding="3" cellspacing="1" width="200" bgcolor="black" class="text">

<tr>

<td bgcolor="white" align="center" height="15"><b>latest 15 posts</b></td>

</tr>

<tr>

<td bgcolor="white" height="25">

<%

'//----------------------------------------------------------

'// Declare variables

'//----------------------------------------------------------

Dim rsLastestPostsMod

Dim adoLastestPostsModCon

Dim strLastestPostsModCon

Dim strSQLLastsPostsMod

Dim strLastestPostsModTopicSubject

Dim strLastestPostsModForumPath

Dim intLastestPostsTotal

Dim intHowManyChars

'The path to the forum

strLastestPostsModForumPath = "/forum/"

'How many new topics to show

intLastestPostsTotal = 6

'How many characters should be showed before the subject is cut off

intHowManyChars = 22

'//----------------------------------------------------------

'//----------------------------------------------------------

'// Database connection

'//----------------------------------------------------------

'Default connection

'strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/wwforum.mdb")

'Uncomment for a full phsyical path. Then change the path

'strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\Inetpub\wwwroot\iportalx\iPortalX\_private\portal.mdb"

'Uncomment for a DSN connection

'strLastestPostsModCon = "DSN=DSN_NAME"

'MSSQL Connection

Const strSQLServerName = "localhost"

Const strSQLDBUserName = "sa"

Const strSQLDBPassword = ""

Const strSQLDBName = "iPortalX"

'Uncomment for MSSQL connection. Make sure to enter MSSQL DB Info above!

'The SQLOLEDB driver offers the highest performance at this time for connecting to SQL Server databases from within ASP.

strLastestPostsModCon = "Provider=SQLOLEDB;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"

'//----------------------------------------------------------

 

'//----------------------------------------------------------

'// Opens the connection

'//----------------------------------------------------------

Set adoLastestPostsModCon = Server.CreateObject("ADODB.Connection")

adoLastestPostsModCon.Open strLastestPostsModCon

'//----------------------------------------------------------

'//----------------------------------------------------------

'// Opens the recordset for getting the records

'//----------------------------------------------------------

Set rsLastestPostsMod = Server.CreateObject("ADODB.Recordset")

'SQL that checks for permissions so it doesnt show senstive topics

strSQLLastsPostsMod = "SELECT TOP 15 tblThread.Topic_ID, tblThread.Thread_ID, tblThread.Author_ID, tblTopic.Subject, tblTopic.Priority, tblTopic.Locked, tblTopic.Moved_ID, tblTopic.Poll_ID, tblTopic.Last_entry_date, tblTopic.No_of_views, tblForum.Forum_ID, tblForum.Forum_name, tblAuthor.Username " & _

"FROM tblAuthor INNER JOIN (tblForum INNER JOIN (tblTopic INNER JOIN tblThread ON tblTopic.Last_entry_date = tblThread.Message_date) ON tblForum.Forum_ID = tblTopic.Forum_ID) ON tblAuthor.Author_ID = tblThread.Author_ID " & _

"WHERE (tblForum.[Read] <= 1 OR (tblTopic.Forum_ID IN (" & _

" SELECT tblPermissions.Forum_ID " & _

" FROM tblPermissions " & _

" WHERE tblPermissions.Author_ID=1 OR tblPermissions.Group_ID = 2 AND tblPermissions.[Read]=1))" & _

" )" & _

" " & _

"AND tblTopic.Topic_ID = tblThread.Topic_ID ORDER BY tblTopic.Last_entry_date DESC;"

rsLastestPostsMod.Open strSQLLastsPostsMod, adoLastestPostsModCon

'//----------------------------------------------------------

'//----------------------------------------------------------

'// Loop through the records if any

'//----------------------------------------------------------

If rsLastestPostsMod.EOF Then

Response.Write "<span class=""smltext"">No Forum Posts Made</span>"

Else

Do while NOT rsLastestPostsMod.EOF

If len(rsLastestPostsMod("Subject")) > intHowManyChars then

strLastestPostsModTopicSubject = left(decodeString(rsLastestPostsMod("Subject")),intHowManyChars) & "...&nbsp;"

Else

strLastestPostsModTopicSubject = rsLastestPostsMod("Subject")

End If

Response.Write("- <a href=""" & strLastestPostsModForumPath & "forum_posts.asp?TID=" & rsLastestPostsMod("Topic_ID") & "&PN=1"">" & strLastestPostsModTopicSubject & "</a>")

rsLastestPostsMod.MoveNext

If NOT rsLastestPostsMod.EOF Then Response.Write("<br>")

Loop

End If

'//----------------------------------------------------------

'//----------------------------------------------------------

'// Reset Server Objects



Posted By: mconway72
Date Posted: 28 November 2006 at 8:11pm
I've tried this code and get the following error:

"Microsoft OLE DB Provider for SQL Server error '80040e14'

Invalid column name 'Last_entry_date'.

/test.asp, line 288 "

You can view my page here at http://www.mmapower.com/test.asp - http://www.mmapower.com/test.asp
 
Any help would be appreciated, I have been battling with this for weeks.


Posted By: wwcn
Date Posted: 29 November 2006 at 7:45am
 RSS Feed ?


Posted By: mconway72
Date Posted: 29 November 2006 at 7:52am
Originally posted by wwcn wwcn wrote:

 RSS Feed ?
 
Do you mean I don't have my RSS Feed configured correctly?


Posted By: mconway72
Date Posted: 29 November 2006 at 10:10am
This is the error I am getting:
 
Quote
Microsoft OLE DB Provider for SQL Server error '80040e14'

Invalid column name 'Last_entry_date'.

/test.asp, line 288

 
Here is my code:
 
[quote]
<%
'//----------------------------------------------------------
'// Declare variables
'//----------------------------------------------------------
Dim rsLastestPostsMod
Dim adoLastestPostsModCon
Dim strLastestPostsModCon
Dim strSQLLastsPostsMod
Dim strLastestPostsModTopicSubject
Dim strLastestPostsModForumPath
Dim intLastestPostsTotal
Dim intHowManyChars
'The path to the forum
strLastestPostsModForumPath = " http://www.mmapower.com/forum/ - http://www.mmapower.com/forum/ "
'How many new topics to show
intLastestPostsTotal = 10
'How many characters should be showed before the subject is cut off
intHowManyChars = 22
'//----------------------------------------------------------
'//----------------------------------------------------------
'// Database connection
'//----------------------------------------------------------
'Default connection
'strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/wwforum.mdb")
'Uncomment for a full phsyical path. Then change the path
'strLastestPostsModCon = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=C:\Inetpub\wwwroot\iportalx\iPortalX\_private\portal.mdb"
'Uncomment for a DSN connection
'strLastestPostsModCon = "DSN=DSN_NAME"
'MSSQL Connection
Const strSQLServerName = "localhost"
Const strSQLDBUserName = "sa"
Const strSQLDBPassword = "hunter1"
Const strSQLDBName = "mmaforum"
'Uncomment for MSSQL connection. Make sure to enter MSSQL DB Info above!
'The SQLOLEDB driver offers the highest performance at this time for connecting to SQL Server databases from within ASP.
strLastestPostsModCon = "Provider=SQLOLEDB;Server=" & strSQLServerName & ";User ID=" & strSQLDBUserName & ";Password=" & strSQLDBPassword & ";Database=" & strSQLDBName & ";"
'//----------------------------------------------------------
 
'//----------------------------------------------------------
'// Opens the connection
'//----------------------------------------------------------
Set adoLastestPostsModCon = Server.CreateObject("ADODB.Connection")
adoLastestPostsModCon.Open strLastestPostsModCon
'//----------------------------------------------------------
'//----------------------------------------------------------
'// Opens the recordset for getting the records
'//----------------------------------------------------------
Set rsLastestPostsMod = Server.CreateObject("ADODB.Recordset")
'SQL that checks for permissions so it doesnt show senstive topics
strSQLLastsPostsMod = "SELECT TOP 15 tblThread.Topic_ID, tblThread.Thread_ID, tblThread.Author_ID, tblTopic.Subject, tblTopic.Priority, tblTopic.Locked, tblTopic.Moved_ID, tblTopic.Poll_ID, tblTopic.Last_entry_date, tblTopic.No_of_views, tblForum.Forum_ID, tblForum.Forum_name, tblAuthor.Username " & _
"FROM tblAuthor INNER JOIN (tblForum INNER JOIN (tblTopic INNER JOIN tblThread ON tblTopic.Last_entry_date = tblThread.Message_date) ON tblForum.Forum_ID = tblTopic.Forum_ID) ON tblAuthor.Author_ID = tblThread.Author_ID " & _
"WHERE (tblForum.[Read] <= 1 OR (tblTopic.Forum_ID IN (" & _
" SELECT tblPermissions.Forum_ID " & _
" FROM tblPermissions " & _
" WHERE tblPermissions.Author_ID=1 OR tblPermissions.Group_ID = 2 AND tblPermissions.[Read]=1))" & _
" )" & _
" " & _
"AND tblTopic.Topic_ID = tblThread.Topic_ID ORDER BY tblTopic.Last_entry_date DESC;"
rsLastestPostsMod.Open strSQLLastsPostsMod, adoLastestPostsModCon
'//----------------------------------------------------------
'//----------------------------------------------------------
'// Loop through the records if any
'//----------------------------------------------------------
If rsLastestPostsMod.EOF Then
Response.Write "<span class=""smltext"">No Forum Posts Made</span>"
Else
Do while NOT rsLastestPostsMod.EOF
If len(rsLastestPostsMod("Subject")) > intHowManyChars then
strLastestPostsModTopicSubject = left(decodeString(rsLastestPostsMod("Subject")),intHowManyChars) & "...&nbsp;"
Else
strLastestPostsModTopicSubject = rsLastestPostsMod("Subject")
End If
Response.Write("- <a href=""" & strLastestPostsModForumPath & "forum_posts.asp?TID=" & rsLastestPostsMod("Topic_ID") & "&PN=1"">" & strLastestPostsModTopicSubject & "</a>")
rsLastestPostsMod.MoveNext
If NOT rsLastestPostsMod.EOF Then Response.Write("<br>")
Loop
End If
'//----------------------------------------------------------
'//----------------------------------------------------------
'// Reset Server Objects
'//----------------------------------------------------------
rsLastestPostsMod.Close
Set rsLastestPostsMod = Nothing
adoLastestPostsModCon.Close
Set adoLastestPostsModCon = Nothing
'//----------------------------------------------------------
'*********************************************
'*** Decode HTML encoding *****
'*********************************************
'Decode encoded strings
Private Function decodeString(ByVal strInputEntry)
'Decode HTML character entities
strInputEntry = Replace(strInputEntry, "&#097;", "a", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#098;", "b", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#099;", "c", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#100;", "d", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#101;", "e", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#102;", "f", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#103;", "g", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#104;", "h", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#105;", "i", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#106;", "j", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#107;", "k", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#108;", "l", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#109;", "m", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#110;", "n", 1, -1, 0)
strInputEntry = Replace(strInputEntry, "&#1



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net