Print Page | Close Window

Specifying href target window in post

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=13335
Printed Date: 12 April 2026 at 4:04am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Specifying href target window in post
Posted By: nenad
Subject: Specifying href target window in post
Date Posted: 13 January 2005 at 8:09am
I couldn't find the answer sarching the posts, but I can see a difference right here.
 
So this is Web Wiz Forum V8.0 with RTE 2.0 beta, and I'm using version 7.9.
 
Well, is it possible somehow to specify in post that href opens in _self window. Now it opens in _blank what is, I think the default value.
 
I can see here in V8.0 thanks to RTE 2.0 that it is possible (so we have to wait a while - right?)
 
Thanks for the answer in advance.


-------------
Nenad



Replies:
Posted By: dj air
Date Posted: 13 January 2005 at 8:59am
yes this is V8

in any other release its not set within the input, its in the link/forum  validation (security checks).

if you edit the functions_filters.asp file within the functions folder
to the below it should then show within the same window.



            'If this is an hyperlink tag then check it for malicious code
            If InStr(1, strTempHTMLMessage, "href", 1) <> 0 Then

                'Turn < and > into forum codes so they aren't stripped when checking links
                strTempHTMLMessage = Replace(strTempHTMLMessage, "<", "**/**", 1, -1, 1)
                strTempHTMLMessage = Replace(strTempHTMLMessage, ">", "**\**", 1, -1, 1)

                'Call the format link function to strip malicious codes
                strTempHTMLMessage = formatLink(strTempHTMLMessage)

                'Turn **/** and **\** back from forum codes
                strTempHTMLMessage = Replace(strTempHTMLMessage, "**/**", "<", 1, -1, 1)
                strTempHTMLMessage = Replace(strTempHTMLMessage, "**\**", ">", 1, -1, 1)

                'Format link tag
                strTempHTMLMessage = Replace(strTempHTMLMessage, ">", " target=""_blank"">", 1, -1, 1)

            End If


change the _blank to _self

replace the bold line then they will all be displaied within the same /window.

you will also have to


Posted By: nenad
Date Posted: 13 January 2005 at 9:16am
Originally posted by dj air dj air wrote:



you will also have to
 
 
Thanks, it's OK now. But what I will also have to?


-------------
Nenad


Posted By: dj air
Date Posted: 13 January 2005 at 9:18am
nothing. lol..

i wrote the message then changed a section so you don;t actually have to do a section its just the above that need(ed) to be done.



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