The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Social Buttons with Short Share URL Details »» | |||||||||||||||||||||||||||||
Description:
This Modification will help you to add social buttons in thread conversation toolbar
Screenshots: Instructions:
Tags: Social, Share, button, buttons, Facebook, Twitter, Google+, Google Plus, Thread, Short, URL, Link Screenshots
Show Your Support
|
Благодарность от: | ||
mangoz |
Comments |
#32
|
|||
|
|||
Hello,
THose buttons are not asynchronous. Bellow you will found the code for making them asynchronous (note that I didn't include G+ but can be added). Code:
<vb:comment>START of Social Buttons Code - VT</vb:comment> <vb:if condition="$page['view'] == 'thread'"> <style> .share-buttons { float:{vb:stylevar left}; position:relative; padding:8px 10px; height:20px; margin-top:-37px; } .share-buttons.withRB { margin-{vb:stylevar left}:150px; } .share-div { float:{vb:stylevar left}; border:none; height:20px; margin-right:10px; } @media only screen and (max-width:767px) { .share-buttons.withRB { margin-{vb:stylevar left}: 100px; } } @media only screen and (max-width:636px) { .share-buttons { float: none; border: {vb:stylevar toolbar_border}; background:{vb:stylevar toolbar_background}; margin: 0; } .share-buttons.withRB { margin: 0; } } </style> <div class="share-buttons<vb:if condition="(isset($showReplyBtn) AND $showReplyBtn) OR (isset($showAll) AND $showAll) OR $showVmBtn"> withRB</vb:if>"> {vb:set starterRoute, {vb:raw conversation.starterroute}} {vb:set starterPost.nodeid, {vb:raw conversation.starter}} {vb:set threadurl, {vb:url {vb:raw starterRoute}, {vb:raw starterPost}}} <div class="share-div fb-like" data-href="http://EXAMPLE.COM/node/{vb:raw nodeid}" data-layout="button" data-action="recommend" data-show-faces="false" data-share="true"></div> <div class="share-div"><a href="https://twitter.com/share" class="twitter-share-button twitter"></a></div> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.3"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <script>window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); t._e = []; t.ready = function(f) { t._e.push(f); }; return t; }(document, "script", "twitter-wjs"));</script> </div> </vb:if> <vb:comment>END of Social Buttons Code</vb:comment> |
#33
|
|||
|
|||
does it work with vb 5.1.9 ?
|
#34
|
|||
|
|||
Some reason, the facebook like and share buttons no longer display on my site. Only the tweet or google + 1 does. Version 5.1.9 ....
To note, it was working fine, did Facebook make a change? |
#35
|
||||
|
||||
Its useful thanks
|
#36
|
||||
|
||||
This one works well on 5.1.9.
I would prefer the little + symbol on the end to give people multiple choice though. It will save room in the toolbar. I will try that one myself. Thanks for your effort. . . https://vborg.vbsupport.ru/attachmen...1&d=1446998119 |
#37
|
||||
|
||||
works fine , thanks
|
#38
|
|||
|
|||
Looks like Google Plus changed their code so that doesn't work. I actually prefer @VB_Nils code but am having trouble getting the facebook buttons in english. v5.1.9
|
#39
|
|||
|
|||
Does anyone know how to force or change the image that Facebook grabs on shared threads? This mod works great for me but the Facebook post grabs my logo in the header which isn't a 1:1 ratio so it looks crappy on Facebook.
Example Attached |
#40
|
|||
|
|||
5.1.10 doesn't work
|
#41
|
||||
|
||||
On vb 5.2 doesn't work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|