UpRightMonkey In Da House?

# Thread: UpRightMonkey In Da House?

1. Senior Member
Join Date
Dec 1969
Posts
3,921

## UpRightMonkey In Da House?

...In a post below, you stated you could use the Replace() function to turn a text hyperlink in these messages into a real one when it&#039;s displayed. Before I take the time to try and write my own, can you provide the brief code sample of how you did this?

2. Senior Member
Join Date
Dec 1969
Posts
1,546

## werd.

str = replace(str, "http://&#039;", "&#060;a href=&#039;", 1, -1, 1)<BR><BR>give that a gander

3. Senior Member
Join Date
Dec 1969
Posts
1,546

## or, I'll just copy and paste it all =)

this is from a forum I used to use.<BR>I&#039;m pretty sure you can adapt it to fit your needs.<BR><BR><BR><BR>Function CleanCode(str)<BR>if str = "" then <BR> str = " "<BR>Else <BR> str = replace(str, "&#060;pre&#062;", "
Code:
`", 1, -1, 1)<BR>	str = replace(str, "&#060;/pre&#062;", "`
", 1, -1, 1)<BR> str = replace(str, "&#060;b&#062;", "",1,-1,1)<BR> str = replace(str, "&#060;/b&#062;", "",1,-1,1)<BR> str = replace(str, "&#060;i&#062;", "[/i]",1,-1,1)<BR> str = replace(str, "&#060;/i&#062;", "[/i]",1,-1,1)<BR> str = replace(str, "&#060;BLOCKQUOTE&#062;&#060;font size=1 face=arial&#062;quote:&#060;hr height=1 noshade&#062;", "
",1,-1,1)<BR> str = replace(str, "&#060;hr height=1 noshade&#062;&#060;/BLOCKQUOTE&#062;&#060;/font&#062;&#060;font face=&#039;" &DefaultFontFace& "&#039; size=2&#062;", "
",1,-1,1)<BR> str = replace(str, "&#060;a href=&#039;", "[a]", 1, -1, 1)<BR> str = replace(str, "&#039; Target=_Blank&#062;Link&#060;/a&#062;", "[/a]",1,-1,1)

4. Senior Member
Join Date
Dec 1969
Posts
11,334

## ACK

This code just became property of Internet.com<BR><BR>In fact, in your OWN forum now, you&#039;re infringing Internet.com&#039;s copyrights... prepare for the lawsuit ;)

5. Senior Member
Join Date
Dec 1969
Posts
1,546

## not mine!

This is from.......****. can&#039;t recall what forum.<BR>ummm, not snitz...but something similar.<BR>can&#039;t recall<BR><BR>

6. Senior Member
Join Date
Dec 1969
Posts
1,546

## but that IS f*ed up.

how that whole shindig now works...<BR>internet.com <BR>BAH!

7. Senior Member
Join Date
Dec 1969
Posts
3,921

## what am I missing...

run this in an ASP page.<BR><BR>&#060;%<BR> <BR> Dim msVal<BR><BR> msVal = msVal & "this is a link http://www.turnkeytools.com . Here is another link "<BR> msVal = msVal & "that my have another page http://www.eggheadcafe.com ."<BR><BR> Function CreateLink(str)<BR> str = replace(str, "http://&#039;", "&#060;a href=&#039;", 1, -1, 1) <BR> CreateLink = str<BR> end Function<BR><BR> Response.write CreateLink(msVal)<BR><BR>%&#062;

8. Senior Member
Join Date
Dec 1969
Posts
10,852

## Again.....Quit being so paranoid.

I promise.....The primary reasons for those rules are so that if they decide to put something in a FAQ...or in an article...Or if something that they put up somewhere happens to have a resemblence to something you post here....You can&#039;t sue *them* saying that they have used your post without permission/infringed on your rights/now owe you something.<BR>

9. dg
Senior Member
Join Date
Dec 1969
Posts
115

## RE: Again.....Quit being so paranoid.

Hey, those things weren&#039;t there when I posted FAQs.<BR><BR>Paranoid? Hmmm... isn&#039;t this how Hitler began to rise to power? A few words here and there to sneak in new rules........

10. Senior Member
Join Date
Dec 1969
Posts
1,546

## HOLD IT! NO ONE DO ANYTHING

I&#039;m about to figure this out.<BR>no one touch this thread for threat of getting monkey-a-fied

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•