[nodebb-plugin-ns-likes] NS Likes


  • Plugin & Theme Dev

    NodeBB Likes

    Tradional Like system, like on various social networks. This plugin uses NodeBB Vote System, but as you can see only up-votes šŸ˜‡
    Same as default chevrons, plugin uses sockets to update in real-time.

    Links

    How does it look like?

    It's a small widget (Bootstrap, extra small button).

    Screen Shot 2015-05-11 at 5.34.59 PM.png

    It's a split button:

    • left part is toggle button, to like/unlike
    • right part is count button, to show likers

  • Admin

    Awesome work! :D

    .... what's the ns stand for?


  • Plugin & Theme Dev

    @julian just a namespace for plugins ;)


  • Admin

    With the new changes to npm, maybe you can even do

    npm i nicolas/nodebb-plugin-myplugin :)


  • Plugin & Theme Dev

    Version 1.1.0

    Changelog:

    • Compatibility with 0.9 forum
    • Change color accordingly to the number of likes (color blending)

    Higher value of likes, more intense is target color.

    Default: On 8 likes will be most intensive target color - #4CAF50 (green)



  • @Nicolas I came across this plug in and its a great one to make it more like social media where users already are used to.

    I have installed this one from ACP and activated the plug-in. I am on nodebb 9.3.
    I am not a programmer and dont understand scripts.

    If you could help me with the following, will be great. I located the file post.tpl under the path in my server /nodebb/node_modules/nodebb-theme-persona/templates/partials/topic/post.tpl

    1.where exactly i should add the line <!-- IMPORT partials/topic/likes_post.tpl -->
    2.which exact line i should remove to (delete default one, with chevrons) is
    in it will be very helpful.
    **3. Also as part of the installation, is there a file /nodebb/node_modules/nodebb-theme-persona/templates/partials/topic/likes_post.tpl expected to be created ? I don't see such file in the folder.

    Any advice and help will be useful.


  • Plugin & Theme Dev

    @ngsankar

    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.

    1. After the plugin is activated, should I automatically have the file likes_tpl created under /nodebb/node_modules/nodebb-theme-persona/templates/partials/topic/ ?

    2. I didnt hv any file created in that path.

    3. I uninstalled the plug i ACP and installed in server using npm install nodebb-plugin-ns-likes

    4. 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.

    ngsankar@T****:~/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


  • Plugin & Theme Dev

    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.



  • @Nicolas Thank you, i could make it work with this help. It works great.



  • Any palns for NodeBB v1.0.1 compatibility ?


  • Plugin & Theme Dev

    Plugin doesn't work with v1.0.1 ?



  • @Nicolas Can't find your likes or awards plugin in the plugins section of nodebb. So, if I can't find it then its not meant for 1.0.1 yet, I guess.


  • Plugin & Theme Dev

    Version 2.0.0

    New version is available, summary: compatibility with NodeBB v1 and better UX.

    • Compatibility with 1.0 forum
    • Interactivity for voters
    • Window with extended list of voters
    • Introduced Language support: en_US

    Preview

    By clicking on others it will open window with users preview.

    Window



  • @Nicolas I love this plugin. but it is incompatible with Nodebb v1.0.3. Will there be a fix in the future?


  • Plugin & Theme Dev

    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.


  • Plugin & Theme Dev



  • @Nicolas I did not. Will try that when I wake up :) Thank you.



  • @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?


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.