I am not against experimenting with adding a tiny avatar, but I would like to see the experiment in a plugin first. It is pretty straightforward to add.
I agree that option (perhaps as global setting) to display mention as @sam OR as Sam Saffron would be really great.
With the same formatting as mentions now have, but displaying full name instead of @handle
So, you guys allow for SSO logins, presumably to allow for companies, anong other entities who maintain master employee/user lists to login with ease.
The issue I’m running into here is this. We have 4500 employees. Most don’t know each other. While tagging by typing name in works perfectly fine, the username displayed is a 5 digit employee #. So now all people see is comeone tagging a 5 digit #
Can you guys write/enable a user option that simply displays the Full Name field in lieu of @username please!
You allow a user option to select the Full Name displayed first in a thread reply with username to the right. A simple visual switch.
I totally get the purpose of using a “twitter” tagging model, but it is severely aggravating for large professional/educational institutions to use. Please, please make an option available. In any means.
It’s not even in a paid hosted/supported version, so you’re missing out there on revenue for large organizations who might otherwise use this.
In my case, I’m trying to “sell” it to my board to adopt discourse. I’m sure they won’t like this missing capibility
Who decided the username had to be a 5 digit number? That’s a bad decision.
It’s quite common from what I have seen in larger organisations to have their AD logon use their payroll or ID number in order to logon rather than names. Not necessarily 5 numbers however. For example my last organisation my login was B3293016 - would be difficult to distinguish who that is if they then used SSO to check against that login and use it for discourse username and mentions.
What @mikechristopher said. The 5 did fit # is our employee I’d. Technically it’s 6, but the zero at the beginning is left off as we haven’t reached numbers greater than 100,000.
Bottom line, again having the feature I described will give corporate/enterprise clients a lot better usability.
Had you not integrated SSO, I’d understand being reluctant to allow full name tags vs username. But you made SSO available, this is a logical next step enhancement
I am not against adding this kind of option, but at the moment none of our paying customers need it so I cannot prioritize it.
I would probably recommend building this as a plugin first, this is something I would consider building if an enterprise customer funded it.
@mcwumbly have you had any luck with the CSS route?
Haven’t tried it, sorry. Just threw out the idea, but this isn’t something I’ve felt the need to explore too deeply personally.
Just to beat this dead horse a bit more, one of the barriers we’re having in our group is that people get super easily confused by the usernames. So right now, they have no problems making mentions, but when reading, they often don’t know who the mentioned person is. As such, in our use case, @cpradio (Jim Smith) would be ideal. The user would type in the @mention (let’s say @cpradio) and it automatically turns into @cpradio (Jim Smith) for others to read.
This would be just like the username mentions by each of our posts.
C’è stato qualche aggiornamento qui? È fastidioso dover cliccare su un nome utente per capire chi sia la persona reale. E passare dai Gruppi Facebook a Discourse è un problema quando non si vedono i nomi completi per impostazione predefinita. Non credo che l’unicità sia davvero il problema che molti pensano sia, leggendo i commenti precedenti, perché, ancora una volta, si possono usare le schede utente per differenziare, se necessario. Ho già modificato le impostazioni del sito per dare priorità ai nomi completi nell’esperienza utente…
Ho scritto rapidamente uno script che fa questo. L’ho inserito in un componente, nella sezione </head>, e funziona. Sicuramente potrebbe essere migliorato, ma ecco com’è.
<script type="text/discourse-plugin" version="0.1">
var decorateAtMentions = function($post) {
$post.find("a.mention").each(function() {
var $elem = $(this);
var username = $elem.text().substr(1);
var data = Discourse.User.findByUsername(username).then(function(user) {
var avatarurl = user.avatar_template.replace("{size}", 18);
var realname = user.name;
$elem.before("<img src='"+avatarurl+"' title='"+realname+"'>");
$elem.attr("title", realname);
$elem.after("["+realname+"]");
});
})
}
api.decorateCooked(decorateAtMentions, {id: 'decorate-at-mentions'});
</script>
L’attributo title nel tag img potrebbe essere problematico se un nome contiene un apostrofo, quindi andrebbe gestito “nel modo corretto” (io probabilmente lo rimuoverò, dato che non mi piace molto).
Volevo modificare il testo del link, invece di aggiungere il nome reale alla fine, ma purtroppo questo interrompe il gestore degli eventi per la scheda utente (poiché sembra basarsi sul testo della menzione per caricare il nome) e non volevo addentrarmi in quel labirinto.
Sembra ottimo. Per un principiante, hai una guida passo passo su come aggiungerlo effettivamente alla mia istanza di Discorso? ![]()
Esiste già una guida, per favore leggila
e crea il tuo primo componente del tema.
@nachof Ho trovato un modo per farlo funzionare: Use fullnames for mentions · GitHub sovrascrivendo _show() in component:user-card-contents. Immagino che l’underscore iniziale significhi che probabilmente non dovremmo sovrascriverlo? Ma sembra funzionare:
Forse servirebbe un punto di ingresso per ottenere opzionalmente il nome utente da $target? Comunque, questo era davvero un blocco dal mio punto di vista per il deployment alla mia comunità più ampia. È ora di andare avanti ![]()
È fantastico! Non sono uno sviluppatore software, quindi non sono riuscito a capire come integrare ciò che hai creato nel mio sito Discourse. Ho provato a usare questo URL per installare tramite repository git, ma mi ha chiesto se ero sicuro che si trattasse di un tema Discourse. Quali passaggi dovrei seguire?
Creeresti un nuovo componente del tema dall’UX e incolleresti quelle cose nella parte tag head del tema.
Scusa per aver battuto il cavallo morto per la centesima volta, ma l’ho installato correttamente e le carte utente non vengono visualizzate. Esiste una soluzione per questo problema, dato che è stato segnalato due anni fa?
So che c’è una probabilità piuttosto bassa che tu ti prenda la briga di riprogrammarlo, ma forse qualche gentile membro della comunità potrà aiutarti.
Onestamente sono ancora piuttosto confuso con queste istruzioni. Il tuo aiuto su What makes a successful volunteer Discourse sysadmin? è stato davvero utile, ma non ho ancora trovato quel volontario.
Nel frattempo, @jessicah, sei ancora disponibile per trasformare questo in un componente del tema pubblicato in #theme-component? O c’è qualcun altro in grado di creare un componente del tema funzionante?
Ciao @debryc e @OverseersMight,
Se siete ancora interessati ![]()
