Print Page | Close Window

Recent Forum Posts - Launching New Window

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25253
Printed Date: 03 April 2026 at 11:14pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Recent Forum Posts - Launching New Window
Posted By: wolfman
Subject: Recent Forum Posts - Launching New Window
Date Posted: 03 February 2008 at 5:01pm
Good Morning,
 
Can someone please tell me how to modify the following code in the recent_forum_post.asp.
 
My objective:
I want to launch a new page when the hyperlink is clicked, bringing up the forum and topic in a new window.  I have placed target="_blank" in several spots that I thought would do it, but I am obviously not doing it correctly.
 
Thanks in advance!
 
Wolf
 
======================================================
recent_forum_posts.asp
<%
'****************************************************************************************
'**  Copyright Notice   
'**
'**  Web Wiz Forums
'**  http://www.webwizforums.com - http://www.webwizforums.com
'**                                                             
'**  Copyright ©2001-2007 Web Wiz. All Rights Reserved.  
'** 
'**  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS UNDER LICENSE FROM 'WEB WIZ'.
'** 
'**  IF YOU DO NOT AGREE TO THE LICENSE AGREEMENT THEN 'WEB WIZ' IS UNWILLING TO LICENSE
'**  THE SOFTWARE TO YOU, AND YOU SHOULD DESTROY ALL COPIES YOU HOLD OF 'WEB WIZ' SOFTWARE
'**  AND DERIVATIVE WORKS IMMEDIATELY.
'** 
'**  If you have not received a copy of the license with this work then a copy of the latest
'**  license contract can be found at:-
'**
'**  http://www.webwiz.net/license - http://www.webwiz.net/license
'**
'**  For more information about this software and for licensing information please contact
'**  'Web Wiz' at the address and website below:-
'**
'**  Web Wiz, Unit 10E, Dawkins Road Industrial Estate, Poole, Dorset, BH15 4JD, England
'**  http://www.webwiz.net - http://www.webwiz.net
'**
'**  Removal or modification of this copyright notice will violate the license contract.
'**
'****************************************************************************************
Dim objXMLHTTP  'MS XML Object
Dim objRSSFeedItem 'XML Feed Items
Dim sarryRSSFeedItem 'RSS Feed array
Dim strHTML  'HTML Table results
Dim strWebWizForumsURL 'Web Wiz Forums RSS Feed
Dim intTimeToLive 'Time to live in minutes

'Holds the URL to the Web Wiz Forums RSS Feed
strWebWizForumsURL = " http://www.uptempoairforums.com/RSS_topic_feed.asp - http://www.uptempoairforums.com/RSS_topic_feed.asp "

'Time to live (how long the RSS Feed is cached in minutes)
'0 will reload immediately, but place more strain on the server if the page is called to often
intTimeToLive = 10
%>
<table class="tableBorder" cellspacing="0" cellpadding="2" width="100%">
 <tr class="tableLedger">
  <td>&nbsp;</td>
 </tr><%
'If this is x minutes or the feed is not in the web servers memory then grab the feed
If DateDiff("n", Application("rssWebWizForumsUpdated"), Now()) >= intTimeToLive OR Application("rssWebWizForumsContent") = "" Then
  
 'Create MS XML object
 Set objXMLHTTP = Server.CreateObject("MSXML2.FreeThreadedDOMDocument")
 
 'Set the type of request HTTP Request
 objXMLHTTP.setProperty "ServerHTTPRequest", True
 
 'Disable Asyncronouse response
 objXMLHTTP.async = False
 
 'Load the Web Wiz Forums RSS Feed
 objXMLHTTP.Load(strWebWizForumsURL)
 
 'If there is an error display a message
 If objXMLHTTP.parseError.errorCode <> 0 Then Response.Write " <tr class=""tableRow""><td><strong>Error:</strong> " & objXMLHTTP.parseError.reason & "</td></tr>"
 
 'Create a new XML object containing the RSS Feed items
 Set objRSSFeedItem = objXMLHTTP.getElementsByTagName("item")
 
 'Loop through each of the XML RSS Feed items and place it in an HTML table
 For Each sarryRSSFeedItem In objRSSFeedItem
 
  'Web Wiz Forums RSS Feed Item childNodes
  '0 = title
  '1 = link
  '2 = description (post)
  '3 = pubDate
  '4 = guid (perminent link)
       
  strHTML = strHTML & " <tr class=""tableRow"">" & _
  vbCrLf & "  <td>" & _
  vbCrLf & "   <a href=""" & sarryRSSFeedItem.childNodes(1).text & """ title=""Posted: " & sarryRSSFeedItem.childNodes(3).text & """>" & sarryRSSFeedItem.childNodes(0).text & "</a>"
  
  'If you wish to display the entire post, uncomment the line below
  'strHTML = strHTML & vbCrLf & "   <br />" &  sarryRSSFeedItem.childNodes(2).text & "<br /><br />"
  
  strHTML = strHTML & vbCrLf & "  </td>" & _
  vbCrLf & " </tr>"
 Next
 
 'Release the objects
 Set objXMLHTTP = Nothing
 Set objRSSFeedItem = Nothing
 
 'Stick the whole lot in a application array to boost performance
 Application.Lock
 Application("rssWebWizForumsContent") = strHTML
 Application("rssWebWizForumsUpdated") = Now()
 Application.UnLock
End If
'Display the Web Wiz Forums Posts in an HTML table
Response.Write(Application("rssWebWizForumsContent"))
%>
</table>



Replies:
Posted By: WebWiz-Bruce
Date Posted: 04 February 2008 at 8:32am
You would need top change this within the RSS Feed files. The file above simply converts the XML in the RSS Feed into HTML.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: wolfman
Date Posted: 04 February 2008 at 5:29pm
Thanks for the reply Bruce.
I have lloked at the RSS_topic_feed.asp and I still can't figure out how to code so it will open in a new window.
 
I though that the code in the above file (recent_forum_post.asp) as you say converts to html and you would place the code here in this part of the code.
===============================================================
 strHTML = strHTML & " <tr class=""tableRow"">" & _
  vbCrLf & "  <td>" & _
  vbCrLf & "   <a href=""" & sarryRSSFeedItem.childNodes(1).text & """ title=""Posted: " & sarryRSSFeedItem.childNodes(3).text & """>" & sarryRSSFeedItem.childNodes(0).text & "</a>"
===============================================================
 
I am not eve sure how to change or where to change the RSS_topic_feed.asp.
 
Can you point me in the direction I need to be in?  maybe I am not using the correct code (target="_blank") for this?
 
thank you ,
 
Wolf
 


Posted By: wolfman
Date Posted: 06 February 2008 at 9:41pm
bump


Posted By: wolfman
Date Posted: 08 February 2008 at 6:26pm
can anyone tell me which file I should be looking in?



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