2019-12-15, 08:30 AM
2020-04-13, 02:38 AM
Works like a charm! Thank you for writing this. I had been looking for this for a while.
2021-02-10, 08:34 AM
(2019-12-14, 12:22 AM)andrewjs18 Wrote: [ -> ]@martec,
I'm trying out your latest edit from your post above and when I try to tag a user, it's adding #undefined to the end of the tag, like so:
@Chuck W#undefined
i tested today... unfortunately I was unable to reproduce the problem.
I modified the code a little ... so try the version of the attachment of this post.
2021-03-15, 06:37 PM
@martec - thx, unfortunately it needs a change - I added info in your GitHub repo with details.
EDIT:
- is possible to add a fallback to default avatar set in ACP?
- is possible to support full text search?
I was checking for another library (now it uses at.js which is discontinued and abandoned)... I have found tribute - zurb/tribute: ES6 Native @mentions (github.com) - maybe it would worth instead of replacing classes... we will see
EDIT:
- is possible to add a fallback to default avatar set in ACP?
- is possible to support full text search?
I was checking for another library (now it uses at.js which is discontinued and abandoned)... I have found tribute - zurb/tribute: ES6 Native @mentions (github.com) - maybe it would worth instead of replacing classes... we will see
2021-03-16, 04:22 AM
Add space support (Not recommended)
Open and edit automention.js
Find:
regexp = new XRegExp('(\\s+|^)' + flag + '([\\p{L}|.~\+\-\|\\p{N}]+)$', 'gi');
Replace:
regexp = new XRegExp('(\\s+|^)' + flag + '([\\p{L}|\\s.~\+\-\|\\p{N}]+)$', 'gi');
Fallback to default avatar (Ps. No setting in ACP)
Use the version below of Attachment
2021-03-16, 12:49 PM
Great! +1 added
One more request - full text search:
- if you have for example nickname: "Jacob MyBB" and you wrote "My" it is displayed. I think that it must be supported by the library itself.
Something like this (Quick reference)
Thank you!
One more request - full text search:
- if you have for example nickname: "Jacob MyBB" and you wrote "My" it is displayed. I think that it must be supported by the library itself.
Something like this (Quick reference)
Thank you!
2021-03-17, 05:49 AM
(2021-03-16, 12:49 PM)Eldenroot Wrote: [ -> ]Great! +1 added
One more request - full text search:
- if you have for example nickname: "Jacob MyBB" and you wrote "My" it is displayed. I think that it must be supported by the library itself.
Something like this (Quick reference)
Thank you!
sorry, but i don't have enough regex knowledge to do this.
2021-03-17, 06:22 AM
Great! But I would like to know if it works with the quick reply option. Thanks in advance!
2021-03-17, 06:32 AM
(2021-03-17, 06:22 AM)hidaso Wrote: [ -> ]Great! But I would like to know if it works with the quick reply option. Thanks in advance!
yes work too in quick reply text area...
2021-03-18, 06:37 AM
1.3.6 released
Change log: https://community.mybb.com/mods.php?acti...og&pid=558
1.3.6 Enhanced version released
1.3.6 with the following more features
Thanks @Eldenroot and @Laird!!
Ps. This enhanced version will be able to use more server resources and make typing less fluid.
Download: https://github.com/martec/automention/releases
Change log: https://community.mybb.com/mods.php?acti...og&pid=558
1.3.6 Enhanced version released
1.3.6 with the following more features
- Added fulll-text support
- Added space support
Thanks @Eldenroot and @Laird!!
Ps. This enhanced version will be able to use more server resources and make typing less fluid.
Download: https://github.com/martec/automention/releases