Improving the placeholders for the Bcc plugin

This is for the official Bcc plugin.

Suggestion 1

Could we please have {name} as well as {username}? Using a real name is a lot more personal in forums where that is acceptable.

Suggestion 2

Have you considered bringing the UX/sentax in line with the (also official) Discourse Canned Replies plugin? For example, using the following instead of {username} and {@username}:

  1. %{username}
  2. %{@username}

and if applying my first suggestion:

  1. %{name}

Cc @Qursch


These both sound like good suggestions. I’ll start working on them this weekend.
Edit: PR was created.


Good stuff! But on testing I’ve noticed that the old problem has recurred and we have the name of the first recipient appearing in all subsequent messages - yikes! It is the same as:

I must be the only one actually using this feature at the mo!!


Just created a PR with what seems to be the fix, but I am unsure of why adding name personalization would break this as it was working before.


You are awesome! I’ll kick the tires once it is merged.

Hey, I realised something else that was wrong with my Name suggestion above - we actually need Firstname. Do you reckon it is possible to just use the first word of the string?

I could do that in Excel but no idea in Ruby!!!

1 Like

Thanks, just trying to conrtibute where I can. I’ll actually add additional options for %{first_name} and %{last_name}, and change the existing to be full name.