Avatar
DamRho
Avatar
About Me

The world is built upon the bricks of shame

02/01/2006 10:40 PM (UTC)
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.
Avatar
Raining_Smoke
02/02/2006 02:18 AM (UTC)
0
EmmKayEss Wrote:
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...


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 glasses


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.
Avatar
EmmKayEss
02/02/2006 04:07 AM (UTC)
0
Raining_Smoke Wrote:
EmmKayEss Wrote:
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...


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 glasses


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 smile
Avatar
Raining_Smoke
02/02/2006 05:50 PM (UTC)
0
IOLKW is in the fight too!!!
Avatar
Bloodline666
02/05/2006 08:48 PM (UTC)
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.
Avatar
FLSTYLE
Avatar
About Me

FLStyle Personal Twitteromegaasylum.com Updates Twitter Omega Asylum - Home of FLStyle - Video Game and Media Blog

02/06/2006 09:33 PM (UTC)
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!
Avatar
Sub-Zero_Warrior
02/21/2006 02:59 AM (UTC)
0
i love mko very much!!glasses
Avatar
travelingwilbury
03/01/2006 02:13 AM (UTC)
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?
Avatar
Shao_Kahn88
03/11/2006 01:03 AM (UTC)
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
Avatar
Vasculio
03/14/2006 07:36 AM (UTC)
0
To get a message throught to midway, which email do i use?

Human Resources or Public Relations?

Sorry for sounding retarded lol
Avatar
shuji_cage34
03/18/2006 03:34 AM (UTC)
0
I can't reply to any threads I made. What is up with that?
Avatar
razorxz
Avatar
About Me

!

03/24/2006 04:23 AM (UTC)
0
So why haven't I gotten at least a couple of dragon points for this post, mods?.
Avatar
Juergen
03/27/2006 11:29 PM (UTC)
0
An option to cancel your MKO account would be cool.
Avatar
Juergen
04/01/2006 04:38 AM (UTC)
0
To display number of posts in threads and to display join date on your threads as well like at www.shoryuken.com
Avatar
Toxik
Avatar
About Me
04/02/2006 08:13 PM (UTC)
0
The time on the posts needs to be fix.
Avatar
The_Purple_Bunny
Avatar
About Me

BunnyHaetsU - Ramblings of a man who probably shouldn't be allowed into society.

04/04/2006 07:24 AM (UTC)
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.
Avatar
Drifting_Ravage
04/05/2006 12:44 AM (UTC)
0
Edit: solved.
Avatar
ChainzOfMisery
04/18/2006 12:45 AM (UTC)
0
kill emo
Avatar
Hikari715
05/09/2006 01:21 AM (UTC)
0
I noticed an error in my inbox just today. Pretty odd. *Look at the date, that's where the problem is* What's up with that?confused
Avatar
AussieNinja
Avatar
About Me
Well...polish my nuts and serve me a milkshake!
05/09/2006 12:32 PM (UTC)
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.
Avatar
Chan_Ming
05/20/2006 02:52 PM (UTC)
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.


That's why the elder gods command that we use Firefox. D:

lol this thread makes my head hurt.
Avatar
Vasculio
05/28/2006 05:14 AM (UTC)
0
Can someone tell me why my avatar and siggy don't work?

Did i somehow anger the mod that they disabled me from using custom avatars and siggys.

Whats worst is i can't even use MKO's custom avatars!

Avatar
Toxik
Avatar
About Me
05/28/2006 06:11 PM (UTC)
0
The layout in some threads needs to be fix too.
Avatar
Vasculio
05/29/2006 12:52 AM (UTC)
0
I'm all for the MKO doing maintments! "Forget the spelling"
Avatar
chardballz
Avatar
About Me

Determination

06/01/2006 12:14 PM (UTC)
0
Anyone noticed any issues with uploading photos onto your profiles..
Discord
Twitch
Twitter
YouTube
Facebook
Privacy Policy
© 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.