Ask Your Question
2

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

asked 2012-06-25 03:09:25 -0500

alexandros.z gravatar image alexandros.z
620 14 10 31

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
delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-06-29 09:43:14 -0500

paulus_almighty gravatar image paulus_almighty flag of United Kingdom
239 3 4 14

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?

link publish delete flag offensive edit

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 ( 2012-06-29 10:16:03 -0500 )edit

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

paulus_almighty ( 2012-06-30 11:28:39 -0500 )edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Reliable Askbot Hosting

Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.

create your Q&A site
30 days free trial

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: 2012-06-25 03:09:25 -0500

Seen: 51 times

Last updated: Jun 29 '12