I just had a vision. You could replace my old (now defunct) hashtag extension. I retired mine because it just used inner html to replace words starting with a hashtag and it caused a lot of conflicts.
I see with this extension you are using code that can find and replace. You’re using regular expressions... I feel like with some tweaks the code you already have here could find any word that starts with # and turn it into a link that when clicked searches the forum for that keyword.
010101 feel free to fork this, and maybe we could do hashtag extension togheter 👍🏻
Justoverclock u can try now, it works everything (i hope 😆
Your work is amazing! I hope that Flarum community is grateful, as I am, for your effort.
I noticed that this box goes offscreen:
SHPD17 thank you, I appreciate your words 😁
i will look into this bug, i think this happen only on mobile, so maybe is at least some css tweak...if anyone find this tweak fell free to write here meanwhile i will look into this
maybe @davwheat can help on this
Hmm this is a weird one... Our Tooltip library should prevent this happening... 🤔
Justoverclock 0.1.7 (for flarum beta 16)
This version removes/hidea post content (all categories and posts/discussions)... Is it me or it is a glitch, bug?
SHPD17 can u provide a screenshot?
actually all works fine on my side
here the latest version on flarum.it
davwheat lol, i'm trying everything without success, if u have some times i will appreciate your help
tooltips are my nemesis 😆
must be compatible for beta 16 also, thats the reason i'm using this (also because i like it)
I honestly can't see any reason why this would happen. If I get time, I'll try and clone your ext locally and give it a go on the core master to see if I can reproduce it
davwheat thank u davwheat
also here i can't find a reason -.-
It seems the tooltip is not accessible to a screen reader. See examples here
Justoverclock I've found a method that works, with pure CSS and ARIA, no JS: https://txmn.tk/test-aria.html (tested only with NVDA)
role="button" tabindex="0" make the word focusable, CSS makes the tooltip appear when the word has focus, and aria-describedby tells the screen reader that the word has a description. aria-describedby (or aria-labelledby) doesn't work when the description/label object is not displayed.
Justoverclock It's a very useful plugin. Thanks a lot my friend.
very good ext ! thank youuu
tuxmain never used this ARIA, theres some docs to implement this?
Justoverclock ARIA is part of standard HTML5:
https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA1 (example of aria-describedby)
You can use the code from my example linked above, or I can make a PR. 🙂
tuxmain i will definitely make a try 🙂
Upcoming update (only for Flarum 1.0)
Custom Page with all words and definition (screenshoot of a demo without css)
feel free tu suggest any ideas
Justoverclock very nice! the only thing I may suggest is for it to be displayed as a table, with keywords in one column and definitions in the other. I think it makes it easier to distinguish between them, and may at a later date provide the opportunity of some kind of filtering of the table.
Justoverclock WOW It is super amazing waiting for it.
ctml sure, I’m planning to do a search field and/or a a-z filter on top of the page