Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Recent Forum Posts - Launching New Window
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Recent Forum Posts - Launching New Window

 Post Reply Post Reply
Author
 Rating: Topic Rating: 1 Votes, Average 1.00  Topic Search Topic Search  Topic Options Topic Options
wolfman View Drop Down
Groupie
Groupie


Joined: 04 August 2004
Location: United States
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote wolfman Quote  Post ReplyReply Direct Link To This Post Topic: Recent Forum Posts - Launching New Window
    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
'**                                                             
'**  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
'**
'**  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
'**
'**  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"

'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>
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: 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.
Back to Top
wolfman View Drop Down
Groupie
Groupie


Joined: 04 August 2004
Location: United States
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote wolfman Quote  Post ReplyReply Direct Link To This Post 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
 
Back to Top
wolfman View Drop Down
Groupie
Groupie


Joined: 04 August 2004
Location: United States
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote wolfman Quote  Post ReplyReply Direct Link To This Post Posted: 06 February 2008 at 9:41pm
bump
Back to Top
wolfman View Drop Down
Groupie
Groupie


Joined: 04 August 2004
Location: United States
Status: Offline
Points: 51
Post Options Post Options   Thanks (0) Thanks(0)   Quote wolfman Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2008 at 6:26pm
can anyone tell me which file I should be looking in?
Back to Top
 Post Reply Post Reply

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.