Automattic / o2

The o2 plugin for WordPress — blogging at the speed of thought
GNU General Public License v2.0
338 stars 56 forks source link

Enable @mentions in posts and comments #3

Open allendav opened 9 years ago

allendav commented 9 years ago

Allow admin, editor and author users to @mention other blog users in posts and comments. The implementation should also include email and/or admin-bar notifications.

The majority of the front-side code is already there. This is already supported as well for o2 on WordPress.com. It is the self-hosted server side work that needs fleshing out.

iamchrissmith commented 9 years ago

@allendav so does the @mention functionality not currently work on self-hosted blogs?

westonruter commented 9 years ago

No, it's not working on self-hosted blogs.

mikezielonka commented 8 years ago

+1 to fixing :)

jrtashjian commented 8 years ago

+1 to fixing as well. @allendav could you point me in the direction of where I should start looking to fix this? I can't seem to figure out where this code exists but I'd like to take a stab at it.

As for getting mentions to work for myself, the notifications feature of BuddyPress has enabled email notifications and @mention linking. However it doesn't have the autocomplete functionality.

jrtashjian commented 8 years ago

What I've found so far is O2 is attempting to enqueue a javascript file which doesn't exist anywhere. I found this in the o2_Suggestions class here: https://github.com/Automattic/o2/blob/cc022db37da7d1274cfc499a7f2ba0cff5a8c9ea/modules/suggestions/load.php#L20

I believe suggestions.js should exist here but it does not: https://github.com/Automattic/o2/tree/cc022db37da7d1274cfc499a7f2ba0cff5a8c9ea/js

Can this file just be dropped in or must it be modified for use outside of WordPress.com?

mrjarbenne commented 7 years ago

This is a hard one to explore creating a patch for, particularly if there is working code that needs to be ported over. I can hide the filter, but having @mentions appear as one of the options in the O2 filter widget teases how nice this would be to have on a self hosted install:

2016-12-19_09-07-02

It looks like this is tied to Jetpack, but doesn't seem to want to trigger (I can't find mention of this at all in the Jetpack repo): https://github.com/Automattic/o2/blob/master/modules/suggestions/js/suggestions.js

allysonsouza commented 7 years ago

+1

madebytincans commented 6 years ago

+1

obstschale commented 5 years ago

Any update on this? I would love to see this feature :)

bigfish24 commented 5 years ago

The field guide for O2 states that mentions work but I setup via hosted Wordpress.com and it is not working.

lukecarbis commented 5 years ago

Would love an update here.