I believe this is possible with some minor theme changes.
Prior discussion:
https://community.nodebb.org/topic/12751/topic-voting-like-adult-swim-boards-had/11
Swap this code https://github.com/NodeBB/nodebb-theme-persona/blob/master/templates/partials/topic/post.tpl#L67-L81 on plugin import <!-- IMPORT partials/topic/likes_post.tpl -->
@Nicolas Thank you for your reply.
After the plugin is activated, should I automatically have the file likes_tpl created under /nodebb/node_modules/nodebb-theme-persona/templates/partials/topic/ ?
I didnt hv any file created in that path.
I uninstalled the plug i ACP and installed in server using npm install nodebb-plugin-ns-likes
Got the following warnings....is it an issue ? also i dont see likes_tpl . should i create the file myself ? I know it sounds as a basic question, but will ask anyway. thank you for your patience.
[email protected]****:~/nodebb$ npm install nodebb-plugin-ns-likes
npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/mocha/node_modules/glob/node_modules/minimatch requires lru-cache@'2' but will load npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/lru-cache, npm WARN unmet dependency which is version 3.2.0 npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/grunt/node_modules/minimatch requires lru-cache@'2' but will load npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/lru-cache, npm WARN unmet dependency which is version 3.2.0 npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/grunt/node_modules/findup-sync/node_modules/glob/node_modules/minimatch requires lru-cache@'2' but will load npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/lru-cache, npm WARN unmet dependency which is version 3.2.0 npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/grunt-contrib-watch/node_modules/gaze/node_modules/globule/node_modules/minimatch requires lru-cache@'2' but will load npm WARN unmet dependency /home/ngsankar/nodebb/node_modules/lru-cache, npm WARN unmet dependency which is version 3.2.0
For plugin installation use ACP: Plugin management page.If you can't find plugin on Plugin page, it means, plugin ins't compatible with your forum.
After plugin installation, restart NodeBB.
Any palns for NodeBB v1.0.1 compatibility ?
Plugin doesn't work with v1.0.1
?
New version is available, summary: compatibility with NodeBB v1 and better UX.
By clicking on others
it will open window with users preview.
Why is it incompatible?
1.0.3
is just a patch update. Plugin should work well.
@Nicolas I wish I knew. I would be happy to provide whatever information you need. Things I have tried so far:
● re-order ns likes to top (just after persona theme) and right at the bottom. No difference.
● disabled acp > settings > reputation
I don't see any option for ns likes under acp > plugins. I'm not sure if there is supposed to be a menu here.
@noobbb did you do a change to your theme - https://github.com/NicolasSiver/nodebb-plugin-ns-likes#themes ?
@Nicolas I have a 502 gateway error. I acp installed ns like > activated it > did the code swap eg edited the template file to replace the reputation section with <!-- IMPORT partials/topic/likes_post.tpl --> > reloaded my forum > 502 gateway error
I tried cold booting my server. Still 502. Am I missing anything else?
Looks like, you did something wrong, if you have a 502.
First and foremost you have to do a backup of files which you are editing.
@nicolas said in [nodebb-plugin-ns-likes] NS Likes:
<!-- IMPORT partials/topic/likes_post.tpl -->
i created pull request, please see it author.
https://github.com/NicolasSiver/nodebb-plugin-ns-likes/pull/5
I would like to change the plugin a little bit. For example, make the list of users who liked the post always visible. How would I go about in doing this?