MENTION Tag Behavior - Myth-Weavers

Notices


Site Discussion

Do you have questions, suggestions, feedback, bug reports or other concerns? Post them here!


MENTION Tag Behavior

   
MENTION Tag Behavior

My Browser Information: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36

Relevant Links: (Copy and paste links to what it is you're talking about here)
Referrer: https://www.myth-weavers.com/forumdisplay.php?f=8

Message: I have recently noticed that the MENTION tags don't seem to work if you use them around certain punctuation marks, such as parentheses. Such as:

(@Popestar)
(@Popestar;)

The noparse for the above:
(@Popestar)
([mention]Popestar[/mention])

Any reason why this happens?

I believe the MENTION tags only work around a username. If the username had punctuation in it, then it would work.

Quote:
Originally Posted by Raveled View Post
I believe the MENTION tags only work around a username. If the username had punctuation in it, then it would work.
And if you check the noparse in my post, you'll notice that there is no punctuation in my username. The only thing I did to it was surround it in parnetheses, and I even used the MENTION tag explicitly to show the text to be mentioned.

Quote:
And if you check the noparse in my post, you'll notice that there is no punctuation in my username. The only thing I did to it was surround it in parnetheses
These two statements are mutually exclusive In the first, the username it tried to match was 'Popestar)'. The semi-colon is a delimiter and only the text between the @ and the ; are considered part of the username, so it correctly matches 'Popestar'.

But I didn't put the semicolon in the second one. I surrounded the username Popestar with the MENTION tags and the system generated the semicolon. Why did that happen?

Oh, sorry, I read that backwards. Using the mention tag directly puts in the semicolon for the same reason, nonetheless - it's a delimiter. My understanding of the mention tag, though (limited as it is), is that it's supposed to include the userid as an argument to the tag opening.

But if I enclose my username in MENTION tags, shouldn't it just parse that out? If so, why didn't it do that?

You can’t self-mention, I seem to recall.

You can, it just doesn't send a notice.

There does seem to be an issue when preceding a mention with anything other than an alphanumeric character - I see this in the source code but don't quite understand exactly why it's there.

Quote:
Originally Posted by Mordae View Post
You can’t self-mention, I seem to recall.
(@Mordae;)

Same behavior when mentioning someone else.







 

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
User Alert System provided by Advanced User Tagging (Lite) - vBulletin Mods & Addons Copyright © 2019 DragonByte Technologies Ltd.
Last Database Backup 2019-03-22 09:00:07am local time
Myth-Weavers Status