Anyone know how the following site has TOPIC voting
-
I was look at the theme that http://boards.adultswim.com/ uses and it appears that they can upvote and downvote topics as well as the posts themselves. Is this available just not included in the Persona theme or are they using a plugin?
Thanks
-
Not sure but up
-
It is a plugin.
-
Hey guys, yes, Adult Swim uses NodeBB
The topic voting is actually not a separate new, feature. When you upvote a topic it just upvotes the first post.
I cannot show you the code as it is custom functionality, but the gist of it is...
I hook into
filter:topic.build
to show OP's vote score, and their theme has the voting logic built in as well. -
Yup, that's how we built it. Although it might be an idea to add a hook so you can just do it programmatically rather than via templating