News:

Wondering if this will always be free?  See why free is better.

Main Menu

Prevent from using [] in Names ?

Started by GeeKay, January 31, 2005, 05:16:59 AM

Previous topic - Next topic

GeeKay

Hi y'all,
some users in my board (SMF1.0, so far) like to use square brackets in their user- or at least screen names, some for "depicting the pronounciation" of cryptic Names, some (i think) only for being sooooooo special.
Since the usage of square brackets spoils the link in the "quote"-tag, i would like to forbid square brackets in user- or screen- names. But i can't use the "forbidden"-list for that, can i ? (Would prevent from using tags at all, I presume ?)

Regards,
GeeKay

[Unknown]

It spoils the link in a quote?  Really?  Quote me.

-[Unknown]

ryanbsoftware

Quote from: [Unknown] on January 31, 2005, 04:12:49 PM
It spoils the link in a quote?  Really?  Quote me.

-[Unknown]

see it works fine. ;)

GeeKay

Hmm, it seems, my analysis was not complete.
That particular Member that caused my request uses [_____ www.hisdomain.de [nofollow] _____] as his screen name.
And that spoils the "quote"-formatting.
This is, what one of these quotes looks like (copied & pasted from preview):
[quote author=[_____ www.hisdomain.de _____] link=topic=1640.msg21898#msg21898 date=1103449082]
and then the unformatted, quoted text
but the [/quote]-Tag is suppressed correctly.

If i deleted the square brackets, the quote worked correctly, so i was convinced, the brackets do the spoiling ...

But in fact, if i delete or add any one leading or trailing special character, the quote will be displayed correctly.

OK, revised, what can i do to prevent users from entering a screen name like that ?

[Unknown]

Hmm, I think the problem is simply length.  The quote functionality doesn't like names that are too long.

I suppose URLs shouldn't be allowed in names like that... hmm... I wonder if it would be possible to fix that... hmmm...

-[Unknown]

dschwab9

Should names *that long* even be allowed?  Maybe a max characters limit for names is in order.

ryanbsoftware

Quote from: [Unknown] on February 28, 2005, 08:17:29 PM
Hmm, I think the problem is simply length.  The quote functionality doesn't like names that are too long.

I suppose URLs shouldn't be allowed in names like that... hmm... I wonder if it would be possible to fix that... hmmm...

-[Unknown]

you could always add www. and http:// and .com, .net, ect and have it  Check username, and Check display name, make it case insensitive and don't match whole name. ;)

Oldiesmann

Quote from: [Unknown] on February 28, 2005, 08:17:29 PM
Hmm, I think the problem is simply length. The quote functionality doesn't like names that are too long.

I suppose URLs shouldn't be allowed in names like that... hmm... I wonder if it would be possible to fix that... hmmm...

-[Unknown]

Can we fix it so that it doesn't matter how long the "author" is? Otherwise it looks weird when you try to add a link to the author and the URL is really long, like in this example:

Quote from: "url=http://www.simplemachines.org/community/index.php]SMF Community Forums[/url]"]Powered By SMF 1.l33t
Michael Eshom
Christian Metal Fans

ryanbsoftware

#8
Quote from: Oldiesmann on March 02, 2005, 05:37:32 PM
Quote from: [Unknown] on February 28, 2005, 08:17:29 PM
Hmm, I think the problem is simply length. The quote functionality doesn't like names that are too long.

I suppose URLs shouldn't be allowed in names like that... hmm... I wonder if it would be possible to fix that... hmmm...

-[Unknown]

Can we fix it so that it doesn't matter how long the "author" is? Otherwise it looks weird when you try to add a link to the author and the URL is really long, like in this example:

Quote from: "url=http://www.simplemachines.org/community/index.php]SMF Community Forums[/url]"]Powered By SMF 1.l33t

your quote didn't work. ;)

i think you ment to do this:
Quote from: SMF Community Forums link=http://www.simplemachines.org/community/index.phpPowered By SMF 1.l33t

ok so i can't get it right either

gri

#9
Quoteyour quote didn't work. ;)

Quoting SHOULD admit GLOBAL link.


Global Quoting [REMOVED by andrea]
<< http://www.simplemachines.org/community/index.php?topic=29682.msg225763#msg225763

Global quoting [restored by gri]
<< http://agreetogri.newmail.ru/gl-quote.htm

gri

Because of 6 byte coding of Russian letters in Unicode
the effective length of ~Russian Author Name~
is no longer than 11 symbols.

Advertisement: