XF 1.1 Start Conversation With User With Comma In Username

digitalpoint

Well-known member
Basically as the title says... Is there a way to start a conversation with a user if they have a comma in their username?
 

Liam W

Well-known member
Basically as the title says... Is there a way to start a conversation with a user if they have a comma in their username?
I don't believe it is, but you can't have a username with a comma. Even if you try it from the AdminCP you get an error...
 

Chris D

XenForo developer
Staff member
digitalpoint may very well have a user with a comma as he was on vBulletin forever.

The only solutions here as far as I can see are:

Change the delimiting character used in the explode function in the controller.

Change the username.

Do something with jQuery so that the selected user IDs are passed to a hidden input and modify the controller to get the users from that rather than the usernames.

Maybe store a cache of usernames with commas in and handle these as a special case in the function before they're exploded to an array in the controller.
 

Liam W

Well-known member
digitalpoint may very well have a user with a comma as he was on vBulletin forever.

The only solutions here as far as I can see are:

Change the delimiting character used in the explode function in the controller.

Change the username.

Do something with jQuery so that the selected user IDs are passed to a hidden input and modify the controller to get the users from that rather than the usernames.
Didn't think of that.

If it were me, I would opt for the first option (it seems like the quickest option).
 

Mike

XenForo developer
Staff member
Commas aren't actually allowed in names in XF (nor are names that could be emails). Probably an edge case in your conversion script (as the default one will force you to change their names).
 

digitalpoint

Well-known member
Commas aren't actually allowed in names in XF (nor are names that could be emails). Probably an edge case in your conversion script (as the default one will force you to change their names).
Ah, okay... Will just change their username... Problem solved. :)
 
Reactions: rdn
Top