Making WordPress.org

#7320 closed defect (bug) (reported-upstream)

Autocomplete for usernames not working on Forum Editor

Reported by: jordesign's profile jordesign Owned by:
Milestone: Priority: normal
Component: Support Forums Keywords:
Cc:

Description

Previously there was an autocomplete for usernames that were already involved in an existing thread (triggered by typing @). For the last few days this seems to have ceased worked

Attachments (1)

Markup 2023-10-27 at 21.22.08.png (538.6 KB) - added by foosantos 14 months ago.
Adding @ would list all users who interacted with the topic

Download all attachments as: .zip

Change History (15)

#1 @sterndata
14 months ago

It would be nice to have this back. It's a very useful tool for moderators.

@foosantos
14 months ago

Adding @ would list all users who interacted with the topic

#2 @foosantos
14 months ago

+1, I really miss this feature. Added a screenshot for reference.

#3 @voltronik
13 months ago

I noticed this was gone too. I used it a lot and helps to ensure correct spelling of usernames so the correct people are notified of a reply. Having it back would be great, if possible.

#4 @codente
13 months ago

This is definitely a useful missing feature!

#5 follow-up: @paulkevan
13 months ago

I think the plugin which calls this functionality needs updating - it appears like the editor textarea has changed (not sure if this was intentional).

Code reference: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-mention-autocomplete/wporg-bbp-user-mention-autocomplete.js#L16

This ticket was mentioned in Slack in #meta by felipeloureirosantos. View the logs.


13 months ago

#7 @stevejonesdev
13 months ago

+1 on this as well. I was trying to use it this morning and thought the form was broken.

This ticket was mentioned in Slack in #forums by sterndata. View the logs.


12 months ago

#9 @YordanSoares
12 months ago

+1 It's a bit annoying to copy & and paste manually, specially when you provide support every day. It would be great if you could bring this feature back to the forums.

#10 @swisha8c
12 months ago

+1 Would love to see this working again.

#11 @thebengalboy
12 months ago

+1. It would be great to have it back.

#12 in reply to: ↑ 5 @zodiac1978
12 months ago

Replying to paulkevan:

I think the plugin which calls this functionality needs updating - it appears like the editor textarea has changed (not sure if this was intentional).

Code reference: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-bbp-user-mention-autocomplete/wporg-bbp-user-mention-autocomplete.js#L16

I checked the source, but this would still match:

<textarea class="bbp-the-content wp-editor-area" rows="12" cols="40" name="bbp_reply_content" id="bbp_reply_content"></textarea>

It looks like the used JS (atwho/caret) are abandoned. The recommended replacement is TributeJS.

See this discussion at our friends from Nextcloud:
https://github.com/nextcloud/server/issues/14344

And this announcement:
https://github.com/ichord/At.js

Maybe a jQuery update broke it? Although I can't see any errors in the console ...

Last edited 12 months ago by zodiac1978 (previous) (diff)

#13 @dd32
11 months ago

The plugin mentioned here, wporg-bbp-user-mention-autocomplete should no longer be in use (although if you're opt'd out of the block editor it still is used, and it's still enqueued for all)

The functionality has to be done via the Block Editor now, which Blocks-Everywhere has: https://github.com/Automattic/blocks-everywhere/blob/trunk/src/completer/topic-users.js

I don't see any customisations in our code for Blocks Everywhere, so it's likely a fully upstream issue: https://meta.trac.wordpress.org/browser/sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-blocks.php

Last edited 11 months ago by dd32 (previous) (diff)

#14 @dd32
11 months ago

  • Resolution set to reported-upstream
  • Status changed from new to closed

Oh, spotted the issue, submitted a PR upstream: https://github.com/Automattic/blocks-everywhere/pull/199

Note: See TracTickets for help on using tickets.