HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Feedback on Discussants
Thanks for the feedback! :-) I've updated the sources on github already. Here's the new code for the DiscussantsCountView any way. I'll upload a new zip in the addon section later on. private function DiscussantsCountView($Sender) { // get Discussants of current Discussion and exit if something went wrog $Discussants =… -
Re: Feedback on Discussants
-
Re: Feedback on Discussants
-
Re: Feedback on Discussants
@R_J I am just going to leave this here: // get number of discussants$DisCount = count($Discussants[1]);$output = Wrap( Plural($DisCount, '1 discussant', '%s discussants'), 'span', array('class' => 'DiscussantCount')); The Plural function takes a number, and two strings. If the number is 1, it will pass the first string… -
Re: Feedback on Discussants
-
Re: Feedback on Discussants
-
Feedback on Discussants
-
Re: Feedback on Discussants
Thank you all! I have fixed this little annoyance and added a second custom.css you can try. Just to show that it is easily changeable how the information is transported. @candyman: I'll have a look at it. Seems as if this couldn't be too hard to code on the html side. I'll just have to look where to hook and how to style… -
Re: Feedback on Discussants
@candyman: done! If you're interested in the technical aspects of localization, please look here. There is one very important sentence on this side: "Clear the .ini files in your /cache folder after adding a new translation file." But there is more than one .ini file there. Delete /cache/locale_map.ini and you see the text… -
Re: Feedback on Discussants
Maybe a stupid question (I'm not a coder at all): isn't possible to use a default string, in this case the word discussion(s), and to add a localization page for the plugin in order to modify in a "for dummies" way, the one according the user needs (language). So the code (and its revisions) remains the same and the user…
10 results