allow the # character nickname

hello to all

I want to know if it's possible to allow the # character nickname?
Here's what I have for now

return ( preg_match( '/^[a-zA-Z0-9_.!-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

What should I add?
thank you

Quote · 10 Oct 2013

Try this.

return ( preg_match( '/^[a-zA-Z0-9#_.!-]+$/', $arg0 ) and !file_exists( $dir['root'] . $arg0 ) );

https://www.deanbassett.com
Quote · 10 Oct 2013

And test before putting into production as it may break something.  I tried using space with user names; nicknames, and ran into problems with the uploader if I recall correctly.

Geeks, making the world a better place
Quote · 10 Oct 2013

a big thank you it works
currently no specific worries but if there was ever a problem I'll keep you informed

Again thank you to you both!

Quote · 11 Oct 2013

Hello,
I found a little problem
With the new nickname, I do not find her profile, it notes, page not found

Should I change something?

thank you

Quote · 18 Oct 2013

Yea. I should have remembered this.

You will not be able to use the # as part of a nickname. The # is also known as a hash character and has special meaning when part of a URL, so it's a character that can't be used as part of a url. So because of that and the fact that a nickname is used in the url when looking up profiles it will not work.

You have two choices. Either forget the idea of allowing a hash(#) in the nickname, or you will have to shut off the use of friendly urls(permalinks) for any url that contains the nickname. Meaning profiles, video, photo and other albums, and many other areas of dolphin.

My suggestion. Put it back the way it was, and forget about using the hash character as part of a nickname. I forgot it was a invalid character in a url. If i had remembered that, i would not have even provided the solution to begin with.

https://www.deanbassett.com
Quote · 18 Oct 2013

And that will go for other special use characters like the question mark (?).

Geeks, making the world a better place
Quote · 19 Oct 2013

& ampersand as well is another one that can't be used.

https://www.deanbassett.com
Quote · 19 Oct 2013

 

And that will go for other special use characters like the question mark (?).

 of course..

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 19 Oct 2013

ok thank you for your help everyone!
I'll put everything Wink

Quote · 22 Oct 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.