Coder Social home page Coder Social logo

mentions's Introduction

Mentions plugin

  • Replaces @username with links to the user's profile
  • Sends notifications to users mentioned in posts

Notes

Supported content types

To add support for custom object or annotation types in outgoing notifications, add a corresponding language key pair to your language file:

mentions:notification_types:object:<object_type> mentions:notification_types:annotation:<annotation_name>

Object fields scanned for mentions

Use 'get_fields','mentions' hook to expand the scope of scanned fields beyond object title and description. The hook receives entity and expects and array of fields in return.

Replacement of mentions with anchors

To add a view which should be scanned for @mentions and replaced with an anchor, use 'get_views', 'mentions' hook.

mentions's People

Contributors

hypejunction avatar brettp avatar cash avatar jrtilson avatar blackleg avatar jeabakker avatar facyla avatar juho-jaakkola avatar beck24 avatar mrclay avatar ewinslow avatar oseg avatar

Stargazers

 avatar  avatar Hector Espert avatar David Bitton avatar  avatar Stan Soo avatar Tim Novinger avatar Piotr Kapera avatar  avatar Diego Andrés Ramírez Aragón avatar  avatar  avatar Emanuel @emanWebDev avatar n avatar Sem avatar  avatar  avatar Fernando Vega avatar

Watchers

 avatar  avatar  avatar James Cloos avatar  avatar  avatar Per Jensen avatar Paweł Sroka avatar  avatar  avatar Gerard Kanters avatar  avatar  avatar

mentions's Issues

autocomplete for usernames is broken

i am not able to get the autocomplete dropdown box to render in any of my sites (1.12.x). if i type a @ symbol followed by some characters i see no dropdown. i have tested with my theme disabled and with/without tinyMCE and the result is the same in all cases.

every group member receive email notification when only mention one member in group discussion reply

I have created a group and set the group email notification to be on by default when the user joins the group. When I mentioned only one group member in the group discussion reply, every member in the group get email notified saying: 'admin mentioned you in a group discussion reply.'.

I have tried in group blog reply, group news reply and other content types and this issue doesn't appear. It seems it only happens in group discussion reply. I tried to disable my custom theme and use elgg default theme but the issue persists.

Request to include @screenname

I have a lot of users that have a different screen name from their username, and in many cases I dont' know the username. It would be great if the mention of a screenname also triggered this plugin, This is a really great idea! one of my favorites, I hope you include it in an upcoming elgg release!

add transifex support

  • Plugin needs to be listed with the elgg organization in transifex
  • some build script needs to be added to fetch the transations from transifex

move to core

I believe this plugin should be part of the core set plugins.

i am seeing 3 notifications when i am mentioned in a wire post

i just saw that i am receiving 3 separate email and notifier notifications when i am mentioned in a wire post.
1 comes from thewire_tools and uses the string: "You've been mentioned on the wire"
1 is the default notification for a friend posting a wire post
1 appears to be from either mentions or notifier and uses the string: "%s mentioned you in %s"

there is only a need for 1 notification for this action and i think it should just be the last one from the mentions plugin.

Ajax edit problem

Mention creates <a herf"">@Username but when edit something using ajax its shows :

"<a herf"">@Username This is comments"

Mentions should show a

"@Username This is a comments"

the name in the auto-fill/suggestion has become non-clickable.with Elgg 1.9.6

Whenever we are starting to type a name, a suggested name appears and clicking on it fills the textbox with that name. But with Elgg 1.9.6 ( fresh install, and no other extra plugins, only default plugins on) and master github version of "mentions" this is no longer happening - the name in the auto-fill/suggestion has become non-clickable.
mntn1

If the name is manually typed, the name appears but it is not hyper-linked to the user profile.
Will a working 1.9.6 version be released any time soon?

Convert @username to link 2 profile before passing to the river possible?

Hi Brett, just as a question/idea, would it be possible to convert to link to user's profile before creating the river message? I think that this would both avoid confusion in users reading the river and seeing @username then the display name in the real post and links to users profiles could be clickable directly from the river itself.
Cheers!

Some notifications seem not to be sent but links to profiles are ok

Hi Brett, this is a great functionality which imho deserves to be added to core.
Everything works fine, only some, following, notifications seem not to be sent (all others ok) while all mentions are correctly converted to links to profiles:

  • Pages' main content for both creation and editing
  • Blogs' main content editing only (creation ok)

As always thank you so much for your work
Cheers

user icons for mentioned usernames only appear if blog comment is edited

  1. enable the admin option to show images for mentioned users.
  2. write a blog comment that includes a mentioned name.
  3. save the comment.
    result-> the user icon is not displayed (even when the page is refreshed).

if i edit an existing comment and then save the edit, then the user icon is displayed correctly.

Insert link client side instead of parsing @syntax server-side

Pros:

  • Author can modify link text
  • Can mention any other entity on the site, not just users
  • Less server-side parsing required
    • performance benefit
    • Issues #17 and #12 go away automatically
  • <a> tags are part of a standard. @mentions are not.
  • We already need to solve the broken-link problem, so this just makes it easier for people to link to things.
  • There's a handy library for it ( https://github.com/ichord/At.js )

Cons:

  • Links break. Server-side parsing means they could be kept up-to-date or auto-removed.
  • ECML could give us the best of both worlds

NB: I say "instead of" but that just means going forward. We'd still need to support server-side @mention for BC, I'm sure.

Votes

In favor of storing the full link to the mentioned entity (<a href>...</a>):

  • Evan
  • Steve

In favor of just storing @mention:

  • Juho
  • Matt

Make notification settings consistent

Notification settings for mentions are not consistent with other notification settings. Please add a section on the Notifications setting page for mentions with checkboxes for email and message notifications. Preferably the default is set to TRUE for both email and message.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.