[nodebb-plugin-cards] Show cards when hovering over user links!
-
@julian but... how? That should prevent that from happening, right? It also should be impossible to happen in the split second between the AJAX call finishing and you navigating away because the
currentCard
variable is set after it has finished... -
@baris @julian alright this should fix it in theory: https://github.com/Schamper/nodebb-plugin-cards/commit/007f3a65d3c9943d5623ca55056552e64b0f082a
I've published a new version because why not See if you can reproduce it now.
-
@Schamper said:
@baris @julian alright this should fix it in theory: https://github.com/Schamper/nodebb-plugin-cards/commit/007f3a65d3c9943d5623ca55056552e64b0f082a
I've published a new version because why not See if you can reproduce it now.
Great, you've destroyed my progress loader.
-
you sure it wasn't this commit instead?
-
@psychobunny thanks, how did I miss this?? WTF.
-
@baris userslugs with a
-
in them, right? Just looked at the regex and realised that\w
doesn't include that character... Must've overlooked that.So what are all the allowed characters in a userslug? Maybe it's best to make a overkill regex like
\/user\/[^/]+$
? -
This might be useful to you: https://github.com/NodeBB/NodeBB/blob/master/public/src/utils.js#L104-L105
You could just call this from
utils
, to save you the trouble -
I've changed the regex and pushed a new version.
https://github.com/Schamper/nodebb-plugin-cards/commit/46724b7e52502af585ce2f67bd9164b4e76560a6@psychobunny I tried using
[\[global:{status}]]
in my template, but it didn't work... Just outputs as[\[global:online]]
. Using thetranslator.translate
now.
Just realised I could've also translated the other titles with this update... Oh well that's for the next oneEdit: funny... it translates it in my reply
Edit 2: I noticed there's no longer a
.container
anymore on this forum, guess I'll change that too.Edit 3: Fixed edit 2 and figured the translator out 0.0.8 published.
-
@zenkamal Still a bit glitchy...
-
Will look into it when I get the time.