Support » Plugin: bbPress Mentions Email Notifications » Usernames with spaces

  • Hi,

    I have just installed this onto my bbPress site, and have given it a try.

    It works perfectly if a username is a single word – but not if there are any spaces in the username.

    Can you please take a look into this, please, because this plugin would otherwise be perfect!

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Contributor Samuel Elh

    (@elhardoum)

    Hello there,

    Usernames were meant to be attached and the regular expression pattern that fetches contents for usernames bbp_find_mentions_pattern() /[@]+([A-Za-z0-9-_\.@]+)\b/ (by bbPress) will not take into consideration the spaces.

    What you can do is you can split the contents into parts and iterate through them to fetch valid usernames, or load the whole blog usernames at first and then match the post content against them. Both ways, that will be costly in terms of server resources and performance.

    My apologies about the late answer in advance.

    Best,
    Samuel

    • This reply was modified 2 years, 5 months ago by  Samuel Elh.
Viewing 1 replies (of 1 total)
  • The topic ‘Usernames with spaces’ is closed to new replies.