How To Post A URL Without Linking
You want to type in a URL on the chat boards or forums and you want it to show just like this:
http://www.example.com/examples/showurl.html
only it shows up as a link, like this:
http://www.example.com/examples/showurl.html
Why does this happen? The programmers who write some chat boards and forums think they are being helpful by intercepting what you type, checking for things like URLS, and if they find them, making them into active links -- whether you want it or not!
What you need to do is beat them at their own game. In the case of a URL, most such program features that convert it into a link simply look for anthing that appears to be a URL. Since all URLs start with a protocol declaration (ie: http: or ftp:, etc.) then that is what the programmer looks for to make it a link. If we disturb the way the protocol declaration looks to the program while maintaining how it looks to the person viewing the page then we can keep it from becoming a link.
We do this by using the entity code for the letter 'h', which is h, in place of the 'h' in 'http:' at the beginning of our URL, like this:
http://www.example.com/examples/showurl.html
which shows in most chat boards or message forums as:
http://www.example.com/examples/showurl.html
That's all there is to it!
This method could save the server where you're running the link actively and saves bandwidth, as user's needs to copy & paste into browser to activate the url manually.
It's always the right time to use good code!
SakuraGuy
Zerotohundred.Com
You want to type in a URL on the chat boards or forums and you want it to show just like this:
http://www.example.com/examples/showurl.html
only it shows up as a link, like this:
http://www.example.com/examples/showurl.html
Why does this happen? The programmers who write some chat boards and forums think they are being helpful by intercepting what you type, checking for things like URLS, and if they find them, making them into active links -- whether you want it or not!
What you need to do is beat them at their own game. In the case of a URL, most such program features that convert it into a link simply look for anthing that appears to be a URL. Since all URLs start with a protocol declaration (ie: http: or ftp:, etc.) then that is what the programmer looks for to make it a link. If we disturb the way the protocol declaration looks to the program while maintaining how it looks to the person viewing the page then we can keep it from becoming a link.
We do this by using the entity code for the letter 'h', which is h, in place of the 'h' in 'http:' at the beginning of our URL, like this:
http://www.example.com/examples/showurl.html
which shows in most chat boards or message forums as:
http://www.example.com/examples/showurl.html
That's all there is to it!
This method could save the server where you're running the link actively and saves bandwidth, as user's needs to copy & paste into browser to activate the url manually.
It's always the right time to use good code!
SakuraGuy
Zerotohundred.Com