@a_5mith But you will have it located into a "tags" admin option instead of merged into other css rules.
fmartingr
Posts
-
[nodebb-plugin-topic-badges] Topic Badges -
[nodebb-plugin-topic-badges] Topic Badges@a_5mith I know that it can be done with CSS, as you can add the icons too. But I'd rather prefer an admin interface instead of CSS/JS hacks. Too much of that last months doing a vbulletin setup for a customer.. But I think is that over multiple label types I suppose.
Thanks for the remainder.
-
[nodebb-plugin-topic-badges] Topic Badges@Erlend-Sogge-Heggen I would add to your suggestion the ability to add color to certain tags (admin only). I needed the topic badges for a forum that handles two types of contents (like books and films) and tags weren't enough. Since NodeBB doesn't support sub-categories, I had to rely on this. Using colors (even priorities!) in tags would allow a better sight of the post contents.
-
[nodebb-plugin-topic-badges] Topic BadgesI'm using this plugin on my forums and using this little JS you can add icons to the badges as well:
<script type="text/javascript"> $(window).on('action:widgets.loaded', function() { $('.topic-badge').each(function(index, el) { var badgeType = el.textContent; switch (badgeType) { case('Manga'): var icon = 'fa-book'; break; } if (icon) { $(el).prepend('<span class="fa ' + icon + '"></span> ') } }); }); </script>
Preview:
-
How to get formatted translation from javascript?Thanks for your help @julian !
-
How to get formatted translation from javascript?Thank you @julian
What is the good way to get the current language in use?The good behaviour is to get the current language and if the json file is empty, retrieve the en_GB (default) one?
-
How to get formatted translation from javascript?Hi!
I would like to retrieve a formatted translation like
Hi %s, welcome back!
from the javascript code, I've been looking around thetranslator.js
API but I couldn't find a way to retrieve a formatted string and I don't have a clue how to get only the string (to format it myself). Any hints? I know I'm missing something here, maybe I didn't drink enough coffee today?F.
-
[nodebb-plugin-openfantasy] Full-fledged RPG system for NodeBB@julian said:
@fmartingr I recommend you use Transifex to host/manage translations for it, like we do for NodeBB
Isn't it better that the owner of the project is the one to create the transifex translation project?
-
[nodebb-plugin-openfantasy] Full-fledged RPG system for NodeBBVery nice addition to NodeBB, can't wait to see the production version.
I will fork and work on the Spanish translation. Expect a PR this weekend or so.