010101 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.
Justoverclock 010101 feel free to fork this, and maybe we could do hashtag extension togheter ππ»
[deleted] 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:
Justoverclock [deleted] 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
davwheat Justoverclock Hmm this is a weird one... Our Tooltip library should prevent this happening... π€
[deleted] 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?
Justoverclock [deleted] can u provide a screenshot? actually all works fine on my side here the latest version on flarum.it https://flarum.it/d/107-test-keywords
Justoverclock 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)
davwheat Justoverclock 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
tuxmain 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.
tuxmain Justoverclock ARIA is part of standard HTML5: https://w3c.github.io/using-aria/ 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. π
Justoverclock 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
ctml 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.