![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||
Social Buttons with Short Share URL
![]() Developer Last Online: May 2015 ![]() ![]() ![]()
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 Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
The following members like this post: mangoz
|
Comments |
#2
|
|||
|
|||
Sweet
![]() No members have liked this post.
|
#3
|
|||
|
|||
Perfect! Thanks for sharing, works well on mobile devices as well.
No members have liked this post.
|
#4
|
|||
|
|||
When I click conversion_toolbar it wont let me customize it
No members have liked this post.
|
#5
|
|||
|
|||
Works, thanks a bunch! VB5.0.5
No members have liked this post.
|
#6
|
||||
|
||||
works, thank you so mch
__________________
BUYerde No members have liked this post.
|
#7
|
||||
|
||||
thanks
No members have liked this post.
|
#8
|
|||
|
|||
Any udate for the latest version 5.1.1 ? it seems this line we have to find isn't there any longer.
Thanks.
__________________
Cyprus Company Formation | Cyprus Bank Account - We also provide our company formation service in many other offshore jurisdictions. ![]() No members have liked this post.
|
#9
|
|||
|
|||
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. No members have liked this post.
|
#10
|
|||
|
|||
This work.
No members have liked this post.
Last edited by Razgritz; 24 Jun 2014 at 08:39. |
#11
|
|||
|
|||
Works in 5.1.2 (and the line is there). Thanks!
No members have liked this post.
|
#12
|
|||
|
|||
<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> No members have liked this post.
|
#13
|
|||
|
|||
Originally Posted by badawidollah
i made a mistake! Maybe i didnt. leaving the bolded did not work for my site(G+). however if i change the bolded to platform.js everything works fine. am not sure which .js google want people to use. in the snippet it was platform.js however in their documentation it is plusone.js.![]()
any way if gplus one does not work for you just substitute the .js and see if it will work. No members have liked this post.
Last edited by kehindelawal; 30 Jul 2014 at 09:30. |
#14
|
||||
|
||||
It works for 5.1.4 thanks
![]() No members have liked this post.
|
#15
|
||||
|
||||
Works great in 5.1.1
![]() No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:48.