Comments (5)
Next result:
if there is display name with those character, unique names are not correct, checked unique-mentions.txt
array (
0 => '@Mi',
)
This same happens if Display name contains spaces.
from mentions.
@Jimmi08, Thank you & Sorry for the late response.
Yes the currently used RegEx pattern does not match those latin scripts with diacritic marks (accents) or non-latin characters at all.
I have improved the RegEx pattern in a development branch that adds support for these characters and they should be ready for release soon.
from mentions.
Hi and thank you. I am not sure if I didn't write this somewhere else too but the problem is somewhere else.
The display name can have spaces too now. But normally there should be the same rules as for loginname (not real name - field names are really confusing here)
We solved this by setting display name = login name and this way members can't change it. I really can't remember now what fields are used by your plugin but now I found that there was a similar solution in old gold system plugin, I will check it when I find the time.
from mentions.
For all user matching this plugin only check for 'user_name'
field in user table.
And fetches user_id, user_email, user_image, user_login
fields for autocomplete popup and emailing.
We solved this by setting display name = login name and this way members can't change it.
By that did you mean its solved in the current development version of e107inc/e107 repo?
I firmly believe if it has problems finding latin characters with diacritic marks from 'user_name'
table that's because its not implemented yet.
from mentions.
Hi, no changes in core. This is how I understand this, I could be wrong.
User can have different user_name and display name. This is set in preferences and you can allow it only for some classes.
For example. my login name is Jimako but users can see me as Main Admin. They don't know my login name because it's not displayed, so they will search for the display name. By setting display name = login name in core prefs, they will see user name now and they will look (type) for Jimako. Do you know what I try to say? (or my user name is totally different to have it safe and they see only Jimako)
I didn't know this, but we are importing users from other database and they are used to look up for real names not nicknames. Of course, It was easy for me to customize your code to check user_login (display name) but then we have that problem with characters and spaces.
For now we tell them that there is no other option, we will see how they will get used to user names.
I don't know what is correct.
EDIT: there are fields: user_name, user_loginname, user_login. Sorry, I really can't remember which one is used where.
from mentions.
Related Issues (14)
- Will not 'linkify' mention if ending with period or underscore HOT 1
- Last 3 month's usage stats shows less than 10 users for this plugin
- I can't use it with php 5.5 HOT 7
- question why is parsing used in admin area too HOT 1
- tilde ~ not working in your mention app HOT 2
- notification stopped to work
- Errors under PHP 8.1 when running any cron scripts (e107 Schedules) while MENTIONS is installed.
- Caret.js lib not loading when using global lib path HOT 1
- Feature request - send email if user name is used HOT 6
- Turning off mentions globally in mentions admin area does not turn off mentions email notification.
- testing report HOT 10
- Feature ideas HOT 4
- chatbox - date/time is not inserted in email HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mentions.