Social Sharing Buttons
-
@psychobunny could you please tell me how do I replace google+ and linkedin buttons to whatsapp and telegram in this plugin?
https://github.com/psychobunny/nodebb-plugin-share-post-icons -
Probably best place to look is here in core:
NodeBB/public/src/modules/share.js at b5f8fc815e4eee6166fb3db929b067206a2a7a3f 路 NodeBB/NodeBB
Node.js based forum software built for the modern web - NodeBB/public/src/modules/share.js at b5f8fc815e4eee6166fb3db929b067206a2a7a3f 路 NodeBB/NodeBB
GitHub (github.com)
This plugin just takes the existing social sharing buttons from core and displays it in the topic's posts, all the logic already exists. But as you can see here I added additional logic for linkedin, so the same idea will work for the other services you want to add. Add the additional buttons here.
Hope that helps!
-
@psychobunny Thank you
-
@psychobunny is it possible to make the buttons only vissable in the OP and not in the other posts?
btw it looks very cool and usefull thanks for making and sharing
-
@psychobunny I believe there is bug in this plug-in with nodebb 1.12.2 , after sending a post these sets of share buttons are doubled or sometimes tripled , I even saw 4 sets of buttons next to each other under one post one time, it goes away when you refresh the page though.
Is it plug-in related? Or are we missing a setting?
Thanks. -
Social network share button is essential when I want to connect with social networks like facebook, whatsapp gb on WAGBPro