Advertisement:

Author Topic: Prevent from using [] in Names ?  (Read 5646 times)

Offline GeeKay

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Male
Prevent from using [] in Names ?
« on: January 31, 2005, 05:16:59 AM »
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

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Prevent from using [] in Names ?
« Reply #1 on: January 31, 2005, 04:12:49 PM »
It spoils the link in a quote?  Really?  Quote me.

-[Unknown]

ryanbsoftware

  • Guest
Re: Prevent from using [] in Names ?
« Reply #2 on: January 31, 2005, 05:23:34 PM »
It spoils the link in a quote?  Really?  Quote me.

-[Unknown]

see it works fine. ;)

Offline GeeKay

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Male
Re: Prevent from using [] in Names ?
« Reply #3 on: February 28, 2005, 04:11:09 PM »
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):
Code: [Select]
[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 ?

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: Prevent from using [] in Names ?
« Reply #4 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]

Offline dschwab9

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,320
  • Gender: Male
    • Technology, Ministry and Other Ramblings
Re: Prevent from using [] in Names ?
« Reply #5 on: February 28, 2005, 10:36:50 PM »
Should names *that long* even be allowed?  Maybe a max characters limit for names is in order.

ryanbsoftware

  • Guest
Re: Prevent from using [] in Names ?
« Reply #6 on: March 01, 2005, 01:03:49 AM »
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. ;)

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,817
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • http://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Prevent from using [] in Names ?
« Reply #7 on: March 02, 2005, 05:37:32 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
Webmaster / SMF Lead Developer
oldiesmann@simplemachines.org

ryanbsoftware

  • Guest
Re: Prevent from using [] in Names ?
« Reply #8 on: March 02, 2005, 06:07:14 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.php
Powered By SMF 1.l33t

ok so i can't get it right either
« Last Edit: March 02, 2005, 06:17:46 PM by RyanB »

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Prevent from using [] in Names ?
« Reply #9 on: March 05, 2005, 07:56:39 AM »
Quote
your 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
« Last Edit: July 09, 2005, 12:34:53 PM by gri »

Offline gri

  • Full Member
  • ***
  • Posts: 553
  • Space Human
Re: Prevent from using [] in Names ?
« Reply #10 on: March 05, 2005, 08:26:18 AM »
Because of 6 byte coding of Russian letters in Unicode
the effective length of ~Russian Author Name~
is no longer than 11 symbols.