Skip to content

Vanilla forums plugin: Show a mentioned user's previous comment in a tooltip.

License

Notifications You must be signed in to change notification settings

bleistivt/quotemention

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quote Mentions

Vanilla plugin: Show a mentioned user's previous comment in a tooltip.

Hovering over a mention in a comment will open a tooltip showing the previous comment the referenced user has written in that discussion (if any). Aditionally, the referenced post is highlighted if it is visible in the viewport.

This mechanism works across pages.

Since users often use mentions in order to reply directly to another user, this can be used as an effective replacement for a quote system.

functionality preview

Options

  // Maximum width of the tooltip (pixels).
  $Configuration['QuoteMention']['MaxWidth'] = 350;
  
  // Position of the tooltip (top, bottom, left, right, top-left, ...).
  $Configuration['QuoteMention']['Position'] = 'bottom';
  
  // Show a progress indicator until tooltip contents are loaded.
  $Configuration['QuoteMention']['ShowProgress'] = true;
  
  // Maximum length of the content shown in the tooltip.
  $Configuration['QuoteMention']['MaxLength'] = 400;

Use the .tooltipster-vanilla class to style the tooltip and .mentionHighlight to change the highlight effect.

About

Vanilla forums plugin: Show a mentioned user's previous comment in a tooltip.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published