Dear anyone,
Your duolingo forum registration isn't automaticaly transferred to duome forum so in order to join duome forums you need to register with your existing or any other username and email; in any case it's advised that you choose a new password for the forum.
~ Duome Team

@mentions

Ask, and we'll consider your request. Provide an accurate description of what you would like to do/have, and we'll consider implementing it, if this is technically possible.


User avatar
luo-ning

@mentions

Post by luo-ning »

It'd be great if typing @username was turned into a link to the user's profile and sent them a notification.

I guess you can sort-of hack the notification part by abusing the quote feature, but it looks ugly (@duome did you get a notification for this? 😜)

duome wrote:

...

Looks like the Simple mentions extension provides this functionality, but it mentions it requires phpBB 3.2 — I'm not sure what phpBB version this forum is using?

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
duome

Re: @mentions

Post by duome »

it's incompatible, but it can be fixed

User avatar
duome

Re: @mentions

Post by duome »

[mention]luo-ning[/mention] - did it work?

User avatar
Stasia
Poland

Re: @mentions

Post by Stasia »

duome wrote: Sat Mar 05, 2022 8:22 pm

@luo-ning - did it work?

testing... [mention]duome[/mention]

EDIT: it gives a nice bold color. Was it also supposed to be a link to user's profile? (it isn't).

Native: :poland:; Fluent: :es:, :us:; Getting there: Image; Intermediate: :fr:; Beginner: :ukraine:

Deleted User 133

Re: @mentions

Post by Deleted User 133 »

[mention]Stasia[/mention]
Did you get a notification?

User avatar
Stasia
Poland

Re: @mentions

Post by Stasia »

Alivated wrote: Sat Mar 05, 2022 9:01 pm

@Stasia
Did you get a notification?

[mention]Alivated[/mention] No, I didn't.

Native: :poland:; Fluent: :es:, :us:; Getting there: Image; Intermediate: :fr:; Beginner: :ukraine:

Deleted User 133

Re: @mentions

Post by Deleted User 133 »

Neither did I. Guess it's not working properly yet.

User avatar
duome

Re: @mentions

Post by duome »

I had a "you were mentioned by [mention]Stasia[/mention]" in my notifications

User avatar
Stasia
Poland

Re: @mentions

Post by Stasia »

[mention]duome[/mention] - yes, I got this notification, too! So it works now. :)

Native: :poland:; Fluent: :es:, :us:; Getting there: Image; Intermediate: :fr:; Beginner: :ukraine:

Deleted User 133

Re: @mentions

Post by Deleted User 133 »

Does it work in relation to the admin only?
Can you try mentioning me now to check?

User avatar
duome

Re: @mentions

Post by duome »

[mention]Alivated[/mention] = [mention]Alivated[/mention]

Deleted User 133

Re: @mentions

Post by Deleted User 133 »

Great, it worked!

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

Yep, mine worked, got the notification! 🎉

Stasia wrote: Sat Mar 05, 2022 9:00 pm

EDIT: it gives a nice bold color. Was it also supposed to be a link to user's profile? (it isn't).

I guess this extension doesn't do that, and the developer isn't considering adding it.

However, that can be fixed by replacing the extension's default BBCode replacement with this:

BBCode usage

Code: Select all

[mention _baseurl={LOCAL_URL?}]{TEXT}[/mention]

HTML replacement

Code: Select all

<a class="mention">@{TEXT}</a>
<script data-baseurl="{LOCAL_URL}" data-username="{TEXT}">(function(script) {
    script.previousElementSibling.href = script.dataset.baseurl + 'memberlist.php?mode=viewprofile&un=' + encodeURIComponent(script.dataset.username);
    script.remove();
})(document.scripts[document.scripts.length - 1]);</script>

Using that replacement, you get something a little like this (minus the weird styles):

[mention]Stasia[/mention]
[mention]duome[/mention]
[mention]Alivated[/mention]

Last edited by luo-ning on Wed Mar 16, 2022 8:48 pm, edited 8 times in total.

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

Deleted User 133

Re: @mentions

Post by Deleted User 133 »

Might as well change this sharp red color into an easier color on the eye; it kinda contrasts aggressively with the background.

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

Alivated wrote: Sat Mar 05, 2022 10:46 pm

Might as well change this sharp red color into an easier color on the eye; it kinda contrasts aggressively with the background.

It looks like there's a config option simple_mention_color for this. Or maybe some custom CSS might look nicer?

Code: Select all

.mention {
    background: #dde6;
    color: #235;
    font-size: 0.9em;
    height: 1.5em;
    border-radius: 0.75em;
    padding: 0 0.6em;
    display: inline-flex;
    align-items: center;
}
mention-css.png
mention-css.png (16.51 KiB) Viewed 1390 times

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
duome

Re: @mentions

Post by duome »

Ctrl+F5 to apply the changes, please.

.postlink border-bottom-color property makes all links underlined, otherwise it would be just perfect

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

duome wrote: Sun Mar 06, 2022 6:32 pm

Ctrl+F5 to apply the changes, please.

Looks good to me!

duome wrote: Sun Mar 06, 2022 6:32 pm

.postlink border-bottom-color property makes all links underlined, otherwise it would be just perfect

Yeah, the "live" examples in that post are just a functionality demo hacked together from existing BBCode, so they look kinda ugly. The proper version simply replaces the mention itself with an <a class="mention">, rather than wrapping it in an <a class="postlink">, and looks like this (along with the new styles):

mentions.gif
mentions.gif (14.66 KiB) Viewed 1347 times

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
Basler Biker
Switzerland

Re: @mentions

Post by Basler Biker »

[mention]Basler Biker[/mention] test mentioning myself !!

didn't get any notification so far.
Also initially the mention is fluo-red, afterwards it becomes just grey/white


BB - Basler Biker - Positivity and constructiveness will prevail
Native :belgium: :netherlands: / fluent :fr: :de: :uk: / learning :sweden: / fan of :switzerland: (bs/bl)

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

Basler Biker wrote: Tue Mar 08, 2022 11:23 pm

Also initially the mention is fluo-red, afterwards it becomes just grey/white

I think this might be a caching thing; the newly-changed CSS might take a while to show up. But if you see it revert to the old (red) style on a device where you'd previously seen the new (dark blue/light gray "pebble") style, that's worth investigating.

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
Basler Biker
Switzerland

Re: @mentions

Post by Basler Biker »

luo-ning wrote: Tue Mar 08, 2022 11:41 pm

and what about "not having received a notification" myself?
could it be because of the space in my alias ?
Or is mentioning oneself like [mention]Basler Biker[/mention] "disregarded/ignored"


BB - Basler Biker - Positivity and constructiveness will prevail
Native :belgium: :netherlands: / fluent :fr: :de: :uk: / learning :sweden: / fan of :switzerland: (bs/bl)

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

[mention]Basler Biker[/mention] not sure, did you get a notification for this one?

I didn't get one when I tested self-mentioning [mention]luo-ning[/mention]

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
Basler Biker
Switzerland

Re: @mentions

Post by Basler Biker »

luo-ning wrote: Wed Mar 09, 2022 12:03 am

@Basler Biker not sure, did you get a notification for this one?

I didn't get one when I tested self-mentioning @luo-ning

no. And you [mention]luo-ning[/mention] ?


BB - Basler Biker - Positivity and constructiveness will prevail
Native :belgium: :netherlands: / fluent :fr: :de: :uk: / learning :sweden: / fan of :switzerland: (bs/bl)

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

[mention]Basler Biker[/mention] I got the notification you sent... that's weird. I also can't replicate the issue with a user with your exact name on my phpBB test forum (mention notification works fine).

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
Basler Biker
Switzerland

Re: @mentions

Post by Basler Biker »

Si OK. I got 2 notifications now.


BB - Basler Biker - Positivity and constructiveness will prevail
Native :belgium: :netherlands: / fluent :fr: :de: :uk: / learning :sweden: / fan of :switzerland: (bs/bl)

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

Ahh OK, guess it just takes a minute or two sometimes then.

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
Basler Biker
Switzerland

Re: @mentions

Post by Basler Biker »

the other thing is. If one quotes a text with a "mention" already in it
And I mention the same person (or another one) again in my reply text...will 2 mentions be sent ?

PS: mentioning oneself doesn't send anaything.

these are the ones I got so far
Image


BB - Basler Biker - Positivity and constructiveness will prevail
Native :belgium: :netherlands: / fluent :fr: :de: :uk: / learning :sweden: / fan of :switzerland: (bs/bl)

User avatar
luo-ning

Re: @mentions

Post by luo-ning »

luo-ning wrote: Wed Mar 09, 2022 12:14 am

[mention]Basler Biker[/mention]

Did you get a notification for the post I'm writing now Basler Biker?

🦀 Pensando en la inmortalidad del cangrejo 🏴‍☠️ Flags Are Not Languages

User avatar
Basler Biker
Switzerland

Re: @mentions

Post by Basler Biker »

luo-ning wrote: Wed Mar 09, 2022 12:36 am
luo-ning wrote: Wed Mar 09, 2022 12:14 am

@Basler Biker

Did you get a notification for the post I'm writing now Basler Biker?

yes, 1 notif and 1 email at 1:36 pm


BB - Basler Biker - Positivity and constructiveness will prevail
Native :belgium: :netherlands: / fluent :fr: :de: :uk: / learning :sweden: / fan of :switzerland: (bs/bl)

User avatar
duome

Re: @mentions

Post by duome »

So good to have you guys here, you clearly know what you're doing ;)

User avatar
Stasia
Poland

Re: @mentions

Post by Stasia »

duome wrote: Wed Mar 09, 2022 9:06 pm

So good to have you guys here, you clearly know what you're doing ;)

I'm not detecting even a hint of sarcasm here. ;)

[mention]duome[/mention], speaking of inept moderators: I'm either too dumb or too low on the ladder, but could someone actually competent change "z polski" to "z polskiego" under "I'm learning"? "Z polskiego" is required for case agreement ("z polski" just means "from poland").

Native: :poland:; Fluent: :es:, :us:; Getting there: Image; Intermediate: :fr:; Beginner: :ukraine:

Post Reply

Return to “Requests new Duome features”