-
Hi,
Added display name as permalink option (Profile url based on display name) – How are special chars, non-English chars and spaces are handled?
Thanks!
I don’t know how special characters are handled, but spaces, in the url are replaced with a – (dash). Which I think is great and consistent with proper URLs. Ahmed said he is checking on non-English characters. He also asked that if there is anything noticed on the forums with regard to the URLs, to let him know. That thread is here.
http://userproplugin.com/userpro/forums/topic/display-name-option-for-profile-permalink-structure/
Thanks!
For a very long time there is a bug with the -‘- char in all fields, everything after that char is truncated.
There are international names which use this char and maybe other special chars, are there any plans to fix this bug and how will it affect the display names URL’s?Hi tberin,
I built a regex that strips any invalid char from the input. I can’t allow dash in usernames or display names because in a display name like Central-Geek, how the system will guess if it’s a real dash or a space converted to dash? It fires lot of complications. The current hooks checks/ignores weird chars in Username and display names, these are the two important fields.
I have tried non-english chars in public profiles, and they seemed to work after using the urldecode function to decode them from browser. Example of user with special character in display name
http://userproplugin.com/userpro/profile/Jo%C3%A3o-Pedro-Andrade/
Thank you for the information.
Can the same regex be incorporated into other fields as there are chars which break the input like ‘ ?
You must be logged in to reply to this topic.