Screenshot_22.jpg
I would like to add a new field to the topic submission form
Anyone know how the following site has TOPIC voting
-
Not sure but up
-
It is a plugin.
-
Wait. Does Adult Swim use NodeBB?
... Huh. Look at that. They do. By any matter, they're adult swim, I very strongly suspect any plugins they use are proprietary.
-
-
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. -
do you know how to get the voting buttons before the topic title?
-
@MJ by editing the template in the theme
-
@pichalite with CSS ?
-
@MJ just css won't work. you have to edit the template to add the buttons
-
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