| Author |
Message |
| hootiemax |
|
Is there a way to add active links to the message boards..? I can cut and paste links, but I would like to make them active (clickable)..
Thanks,
Chris
6/21/2001 10:27:25 AM |
| Dmitri |
|
Hi Chris.
There is a way to create an active link. I was too lazy to add it into my first version of Enotiks board, but version 2 will definitely have it. By the way, you can download the updated board.asp script from http://www.enotik.com/download/board_asp.zip that has active link implementation in it. The affected part was sub remove_tags. The following is logic of converting any sub string that starts with "http://" into a link using VB. The string to be parsed is in "r" variable. It's searched for each "http://" occurrence that will be surrounded with <A> html tag in result string. It assumes that every "http://" link will always end with space.
n = 1
While (InStr(n, r, "http://"))
i = InStr(n, r, "http://")
n = InStr(i, r, " ")
c = Mid(r, i, n-i)
r = Left(r, i-1) & Replace(r, c, "<a href='"&Replace(c,"'","%27")&"' target='_new'>"&c&"</a>", i)
n = i + (2 * Len(c)) + 29
Wend
6/21/2001 4:16:16 PM |
| hootiemax |
|
Thanks alot, I will update the board.. BTW, this board is a great addition any website.. I recommended it to a few others, that are interested in asp written message boards..
Thanks again,
Chris 6/22/2001 12:25:50 PM |
| Dmitri |
| Re:Re:Re:Active Link | REPLY |
|
You're welcome. Don't hesitate to ask if you have more questions.
Btw, do you have a site?
6/23/2001 1:30:24 PM |
|