![]() |
Social Buttons with Short Share URL
1 Attachment(s)
Description:
This Modification will help you to add social buttons in thread conversation toolbar
Screenshots: https://vborg.vbsupport.ru/attachmen...hmentid=148043 https://vborg.vbsupport.ru/attachmen...hmentid=148044 Instructions:
Tags: Social, Share, button, buttons, Facebook, Twitter, Google+, Google Plus, Thread, Short, URL, Link |
Sweet :) just what i was looking for, thanks for this .... guaranteed that this is installed
|
Perfect! Thanks for sharing, works well on mobile devices as well.
|
When I click conversion_toolbar it wont let me customize it
|
Works, thanks a bunch! VB5.0.5
|
works, thank you so mch
|
thanks
|
Any udate for the latest version 5.1.1 ? it seems this line we have to find isn't there any longer.
Thanks. |
Tested and works on 5.1.1.
It seems like though it sends the right URL's to Facebook, the title it sends out as a share is pretty generic. Will fiddle some more with that. |
This work.
|
Works in 5.1.2 (and the line is there). Thanks!
|
<vb:comment>START of Social Buttons Code</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-buttons iframe { float:{vb:stylevar left}; border:none; height:20px; } .share-buttons .facebook { width:135px; } .share-buttons .twitter { width:90px; } .share-buttons #___plusone_0 { width:72px !important; float:{vb:stylevar left} !important; } @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}}} <iframe class="facebook" src="//www.facebook.com/plugins/like.php?href=http://www.xxx.org/node/{vb:raw nodeid}&layout=button_count&action=like&show_faces =false&share=true&width=135&he ight=20" scrolling="no" frameborder="0" allowTransparency="true"></iframe> <iframe class="twitter" src="//platform.twitter.com/widgets/tweet_button.html?text={vb:raw conversation.title}%0A&url=http://www.xxx.org/node/{vb:raw nodeid}&counturl={vb:raw threadurl}" scrolling="no" frameborder="0" allowTransparency="true"></iframe> <div class="g-plusone" data-size="medium" data-width="68" data-href="http://www.xxx.org/node/{vb:raw nodeid}"></div> <script type="text/javascript">(function() {var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = '//apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);})();</script> </div> </vb:if> <vb:comment>END of Social Buttons Code</vb:comment> |
Quote:
any way if gplus one does not work for you just substitute the .js and see if it will work. |
It works for 5.1.4 thanks :D
|
Works great in 5.1.1 :D
|
Nice little add-on, thanks! Works well with vBulletin 5.1.4.
|
Anyone know how to add this to the article (CMS) conversation bar?
|
Very nice! Seems to work well on 5.1.4. Thanks!!!
|
Anyone have any idea how to adjust the code so these DO NOT show up on the floating bar?
|
Great, this is what I was looking for!
|
Works in 5.1.5
Thanks |
Quote:
|
Seems to be working well in 5.1.4. Thanks! :up:
|
Quote:
<vb:if condition="$page['view'] == 'thread'"> for this: <vb:if condition="$page['view'] == 'thread' OR $page['view'] == 'stream'"> |
Tested en VB 5.1.5 it doesn't works u.u
|
Upgrade vb 5.1.6 please :)
|
Can this be restricted to certain forums based on channel permissions? I have some private areas of the board where I wouldn't want this.
|
Work fine in 5.1.6.
Great! :D |
In spanish forums replace this line:
Code:
.share-buttons .facebook { width:135px; } Code:
.share-buttons .facebook { width:175px; } Can you help me adding linkedin button? Regards! |
Works well on 5.1.7.
For French, replace Code:
.share-buttons .facebook { width:135px; } Code:
.share-buttons .facebook { width:160px; } |
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> |
does it work with vb 5.1.9 ?
|
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? |
Its useful thanks
|
1 Attachment(s)
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 |
works fine , thanks
|
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
|
1 Attachment(s)
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 |
5.1.10 doesn't work
|
On vb 5.2 doesn't work
|
All times are GMT. The time now is 10:28 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|