First time here? Check out the FAQ!
3

How to @refer to users with username that contains empty space?
 

Hello.

If a user chooses a user name like "John Smith" (has a blank space between the first name and last name) do you know how I can @ reference to him?

I tried these but with no luck:

  • @John Smith
  • @John-Smith

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
alexandros.z's avatar
596
alexandros.z
asked 12 years ago

Comments

see more comments

1 Answer

1

I just tried to reproduce this and I can @refer to users that have a space in the title. The url to the users profile should convert the " " to a "-", so "John Smith" becomes http://<site>/users/<user_id>/john-smith/. The user referred to also needs to exist. There can't be a space between the @ and the first character. Comments are not processed dynamically, ie if you @refer to someone that doesn't exist, then at the user so they do exist, the original comment will not pick up that the new user exists and can be legitimately @referred to.

I'm using the latest version from github, v0.7.43. So it's possible that there has been a fix added. What version of askbot are you using?

And what are you seeing when you try to @refer to a user with a space in the user name?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
powlo's avatar
260
powlo
answered 12 years ago
link

Comments

What is an example of a @refer to a user with a space in his username? Does @john-smith work? The OP indicated that this does not work, unless the @refer has to be all lowercase?

todofixthis's avatar todofixthis (12 years ago)

@john-smith doesn't seem to work. @john smith (case insensitive) does.

powlo's avatar powlo (12 years ago)

I can't get this to work over at ROS Answers, e.g. http://answers.ros.org/question/76813/pcl-ros-and-system-install-clashing/?answer=76951#post-id-76951. I tried @Firstname Secondname, @firstname secondname, @firstname-secondname. In the first two cases, the reference is wrongly linked to another user call "firstname". In the second case, nothing happens. I ensured, that there is no space between the @ and the first character and the user exists. Anyone knows what's going/am I doing wrong?

bit-pirate's avatar bit-pirate (11 years ago)
see more comments