Is it possible to have public upvotes without public downvotes?
-
ooh! Ooh! Instead of using a static uid, take a random one from users that have no posts but have a profile picture!
-
@ben_lubar so if I'm reading it correctly, this:
next(err, Array(count).fill(14));
produces an array of
14
(bz's UID) to be used as the return value instead of the real list. Then this:User.getUsersFields(results.downvoteUids, ['username', 'userslug', 'picture'], next);
does... something. And it's defined elsewhere...
module.parent.require('./user')
.What would it do if it got a list of
null
-- or0
-- instead (okay, probably just crash and burn)? But could you put an if statement there and have it do something else if they're not supposed to display publicly?
-
@yamikuronue said in Is it possible to have public upvotes without public downvotes?:
@anotherusername Doesn't your CSS screenshot reveal the downvoters anyway?
If you're talking about the DOM inspector screenshot that I put inside the details, no... it says they're both boomzilla.
-
@tsaukpaetra said in Is it possible to have public upvotes without public downvotes?:
ooh! Ooh! Instead of using a static uid, take a random one from users that have no posts but have a profile picture!
That seems likely to produce .
-
@anotherusername Oh, nevermind, that top one is the upvoter.
-
@yamikuronue Oh. Yeah, it probably would've been clearer if I had expanded the
h3
that says "Downvoters".
-
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@ben_lubar so if I'm reading it correctly, this:
next(err, Array(count).fill(14));
produces an array of
14
(bz's UID) to be used as the return value instead of the real list.No, it creates an array of
count
items that all have14
(boomzilla's UID) as data.
But could you put an if statement there and have it do something else if they're not supposed to display publicly?
That's already there. If the viewing user has admin or mod privileges, then the actual downvoters are displayed. Otherwise, a bunch of bz avatars appear. :P
-
@djls45 said in Is it possible to have public upvotes without public downvotes?:
I think it's funny that b
zl put his own id in for all downvotes.Me, too.
-
@djls45 said in Is it possible to have public upvotes without public downvotes?:
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@ben_lubar so if I'm reading it correctly, this:
next(err, Array(count).fill(14));
produces an array of
14
(bz's UID) to be used as the return value instead of the real list.No, it creates an array of
count
items that all have14
(boomzilla's UID) as data.That's the same thing I said. I just didn't say how many items it had, because that part was obvious.
@djls45 said in Is it possible to have public upvotes without public downvotes?:
But could you put an if statement there and have it do something else if they're not supposed to display publicly?
That's already there. If the viewing user has admin or mod privileges, then the actual downvoters are displayed. Otherwise, a bunch of bz avatars appear. :P
Which is why I was asking if it couldn't do the same thing there to display something other than "real user" avatars.
-
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@ben_lubar so if I'm reading it correctly, this:
next(err, Array(count).fill(14));
produces an array of
14
(bz's UID) to be used as the return value instead of the real list.No, it creates an array of
count
items that all have14
(boomzilla's UID) as data.That's the same thing I said. I just didn't say how many items it had, because that part was obvious.
Ah, ok. I had initially parsed it as
an array of
14
items that contain (bz's UID)or
an array of
14
of (bz's UID)sThen I read it again and thought you had changed it because I reparsed it as
an array of
14
's (bz's UID)But then my mind reverted it back to my first reading...
English
communication
:P
-
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
But could you put an if statement there and have it do something else if they're not supposed to display publicly?
That's already there. If the viewing user has admin or mod privileges, then the actual downvoters are displayed. Otherwise, a bunch of bz avatars appear. :P
Which is why I was asking if it couldn't do the same thing there to display something other than "real user" avatars.
I think it probably could, but it would require redoing the code that generates the display HTML for that feature.
-
@djls45 said in Is it possible to have public upvotes without public downvotes?:
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
But could you put an if statement there and have it do something else if they're not supposed to display publicly?
That's already there. If the viewing user has admin or mod privileges, then the actual downvoters are displayed. Otherwise, a bunch of bz avatars appear. :P
Which is why I was asking if it couldn't do the same thing there to display something other than "real user" avatars.
I think it probably could, but it would
require redoing the code that generates the display HTML for that featureruin the fucking joke.Y'all are thinking about this way too hard.
-
@nedfodder said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
But could you put an if statement there and have it do something else if they're not supposed to display publicly?
That's already there. If the viewing user has admin or mod privileges, then the actual downvoters are displayed. Otherwise, a bunch of bz avatars appear. :P
Which is why I was asking if it couldn't do the same thing there to display something other than "real user" avatars.
I think it probably could, but it would
require redoing the code that generates the display HTML for that featureruin the fucking joke.Y'all are thinking about this way too hard.
Are you new here?
-
@djls45 said in Is it possible to have public upvotes without public downvotes?:
I reparsed it as
an array of
14
's (bz's UID)That was what I meant. I thought about doing that, but it seemed ugly.
Admittedly, it was somewhat ambiguous the way I said it. But I knew what I meant...
-
@nedfodder said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
@anotherusername said in Is it possible to have public upvotes without public downvotes?:
@djls45 said in Is it possible to have public upvotes without public downvotes?:
But could you put an if statement there and have it do something else if they're not supposed to display publicly?
That's already there. If the viewing user has admin or mod privileges, then the actual downvoters are displayed. Otherwise, a bunch of bz avatars appear. :P
Which is why I was asking if it couldn't do the same thing there to display something other than "real user" avatars.
I think it probably could, but it would
require redoing the code that generates the display HTML for that featureruin the fucking joke.Y'all are thinking about this way too hard.
It's not a very useful plugin to any other NodeBB users if it contains an obscure TDWTF joke that won't even work the same on their forum (they'd at least have to pick a sensible UID, because who knows what
14
will produce).I could see having it produce a generic or icon, then adding some TDWTF-specific CSS to replace those icons with bz's avatar if we wanted to keep that portion of the joke.
-
@anotherusername nodebb-plugin-tdwtf-customizations is not a very useful plugin to any other NodeBB users. It's right there in the name.
-
LOL, someone 'd:
Though possibly I should not have made even that minor meta joke in that category.