0
Well I'm not sure if this is the "official post-your-suggestion thread" but as far as I've been able to read it's something like that so here's my suggestion.
I've seen a ton of posts that feature people posting URLs but the big problem is that they don't actually make a link out of them, they just copy-paste the url into it. The problem is that it is obviously a hell of a bore to visit the website if you're interested, since you have to either copy-paste the whole text into your address bar - filling it up with waste URLs that you probably will never visit again anyway - or use the "Search web for" whatever's selected function (there is one in Firefox, not sure about other browsers) which is what I end up doing. Either way, all this "trouble" could be spared.
It's not hard to do a source code update to automatically make a link out of the posted URLs in a user message. I'm not sure if I'm making this clear but the idea is that whenever the user presses the "Post Message" button, whatever URLs the text may have will automatically be converted to web-links.
I have no idea how this forum is programmed but it's easy to create a regular expression that works with PHP's ereg() function to find a URL link inside a text. I was going to create my own but searching in google I found one that someone else already came up with which apparently works just fine. I'm posting it here next as an example and I'm sorry if it comes out quite big.
^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&%\$\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\.[a-zA-Z]{2,4})(\:[0-9]+)?(/[^/][a-zA-Z0-9\.\,\?\'\\/\+&%\$#\=~_\-@]*)*$
As you see it's just a matter of searching/replacing through a regular expression which is (fortunately) a functionality that most web-programming languages have. It would be nice if you could implement it, by substituting patterns match by the actual HTML tag to create a link.
Of course if the user was nice enough to actually have already made a link tag the substitution should not occur. I'm not familiar with PHP's ereg() regular expression's but as far as Flex (which is a scanner generator and a token parsing tool some of you may be familiar with) goes the ^ symbol means that the link MUST BE at the beginning of a line so it would prevent already made tags from being substituted thus generating some erroneous and silly-looking posts. It does require, however, that the user posts their links at the beginning of the line but it's still better than nothing at all.
Hope this has been clear and someone else thinks this is a good idea. If I didn't make myself clear but you think this is a good idea feel free to ask anything back.
I've seen a ton of posts that feature people posting URLs but the big problem is that they don't actually make a link out of them, they just copy-paste the url into it. The problem is that it is obviously a hell of a bore to visit the website if you're interested, since you have to either copy-paste the whole text into your address bar - filling it up with waste URLs that you probably will never visit again anyway - or use the "Search web for" whatever's selected function (there is one in Firefox, not sure about other browsers) which is what I end up doing. Either way, all this "trouble" could be spared.
It's not hard to do a source code update to automatically make a link out of the posted URLs in a user message. I'm not sure if I'm making this clear but the idea is that whenever the user presses the "Post Message" button, whatever URLs the text may have will automatically be converted to web-links.
I have no idea how this forum is programmed but it's easy to create a regular expression that works with PHP's ereg() function to find a URL link inside a text. I was going to create my own but searching in google I found one that someone else already came up with which apparently works just fine. I'm posting it here next as an example and I'm sorry if it comes out quite big.
^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&%\$\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\.[a-zA-Z]{2,4})(\:[0-9]+)?(/[^/][a-zA-Z0-9\.\,\?\'\\/\+&%\$#\=~_\-@]*)*$
As you see it's just a matter of searching/replacing through a regular expression which is (fortunately) a functionality that most web-programming languages have. It would be nice if you could implement it, by substituting patterns match by the actual HTML tag to create a link.
Of course if the user was nice enough to actually have already made a link tag the substitution should not occur. I'm not familiar with PHP's ereg() regular expression's but as far as Flex (which is a scanner generator and a token parsing tool some of you may be familiar with) goes the ^ symbol means that the link MUST BE at the beginning of a line so it would prevent already made tags from being substituted thus generating some erroneous and silly-looking posts. It does require, however, that the user posts their links at the beginning of the line but it's still better than nothing at all.
Hope this has been clear and someone else thinks this is a good idea. If I didn't make myself clear but you think this is a good idea feel free to ask anything back.
0
EmmKayEss Wrote:
LOL, I remember one of the staff members sending me a PM a couple of years ago to let me know that the Honduran flag was up just for lil' ol' me
Raining_Smoke Wrote:
Btw CAMK got the GUYANA flag put in for HIM. This will benefit more than ONE person. How can this not be done. Someone had to have done it for him...
Btw CAMK got the GUYANA flag put in for HIM. This will benefit more than ONE person. How can this not be done. Someone had to have done it for him...
LOL, I remember one of the staff members sending me a PM a couple of years ago to let me know that the Honduran flag was up just for lil' ol' me
Well where the hell is this person now. So it was done for you and CAMK, benefiting all 2 users. This UK flag deal would be for countless people.
0
Raining_Smoke Wrote:
Well where the hell is this person now. So it was done for you and CAMK, benefiting all 2 users. This UK flag deal would be for countless people.
EmmKayEss Wrote:
LOL, I remember one of the staff members sending me a PM a couple of years ago to let me know that the Honduran flag was up just for lil' ol' me
Raining_Smoke Wrote:
Btw CAMK got the GUYANA flag put in for HIM. This will benefit more than ONE person. How can this not be done. Someone had to have done it for him...
Btw CAMK got the GUYANA flag put in for HIM. This will benefit more than ONE person. How can this not be done. Someone had to have done it for him...
LOL, I remember one of the staff members sending me a PM a couple of years ago to let me know that the Honduran flag was up just for lil' ol' me
Well where the hell is this person now. So it was done for you and CAMK, benefiting all 2 users. This UK flag deal would be for countless people.
True, but you gotta remember me and CAMK > countless peeps...but not greater than IOLKW...and also not greater than DJ...and MAYBE Tryone's a bit greater than us...but definitely better than Neo.
P.S. Yes, I know Neo's not from that side of the world, but I still wanted to state my superiority over him
0
IOLKW is in the fight too!!!


About Me

0
There's a PM date glitch on the site. One PM I received on 02/01/2006 was marked as being sent on 00/11/2006, and a PM I received today was marked as being sent on 01/01/2006. Just thought I'd bring this to the attention of the staff.

0
My superiority knows no bounds, therefore you all suck, now give me my England flag before I get violent on a puppy, think of the puppy!
0
i love mko very much!!


About Me
0
the pm bug baout the error message, i sent the code to ccshadow, a month ago, and it is still there. who else could i contact to get the pm fixed?
0
Question:
When you add original text how do you pick one that was further back. When I press it it goes to the one right above me, how do I pick which post I want to pick
When you add original text how do you pick one that was further back. When I press it it goes to the one right above me, how do I pick which post I want to pick
0
I can't reply to any threads I made. What is up with that?


About Me
BunnyHaetsU - Ramblings of a man who probably shouldn't be allowed into society.
0
You people are still replying to this? I haven't looked at this for 4 months. Now I have too much to gather. My head hurts now.
0
Edit: solved.


About Me
0
kill emo


About Me
0


About Me
0
This site is shit when using IE7.
Some avatars (Alpha-Q-Up is one example) are massive and have to scroll sideways to read the post.
The forum listings on the left side is badly spaced. In fact most of the tables are screwed.
Some avatars (Alpha-Q-Up is one example) are massive and have to scroll sideways to read the post.
The forum listings on the left side is badly spaced. In fact most of the tables are screwed.

0
AussieNinja Wrote:
This site is shit when using IE7.
Some avatars (Alpha-Q-Up is one example) are massive and have to scroll sideways to read the post.
The forum listings on the left side is badly spaced. In fact most of the tables are screwed.
This site is shit when using IE7.
Some avatars (Alpha-Q-Up is one example) are massive and have to scroll sideways to read the post.
The forum listings on the left side is badly spaced. In fact most of the tables are screwed.
That's why the elder gods command that we use Firefox. D:
lol this thread makes my head hurt.
About Me
Determination
0
Anyone noticed any issues with uploading photos onto your profiles..
© 1998-2025 Shadow Knight Media, LLC. All rights reserved. Mortal Kombat, the dragon logo and all character names are trademarks and copyright of Warner Bros. Entertainment Inc.