The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Twitter Like Button
I was advised at vbulletin.com https://www.vbulletin.com/forum/show...ok-Like-button to ask over here.
So, here goes. I'd like a Twitter Like button on the top of SHOWTHREAD and would like it to function just like my Facebook Like button does. In other words the button doesn't show in private forums. How can this be done? Thanks!! |
#2
|
||||
|
||||
That link doesn't work for me..
but.. I had added my social networking buttons in one of the ad_location templates, I think it was ad_location_above_forum or something like that. Just past the "tweet me" button code in there, you can add google plus and facebook if you want as well. You can add if conditions around the code to prevent them from showing in forums you wish. |
#3
|
|||
|
|||
FYI: Fixed link
Brandon, I'd like it exactly where vBulletin places the Facebook Like button (next to it obviously). I have the code to render it, what I really just need is help with the code to exclude the certain forums (which the Facebook Like button just does by default for lack of a better word). |
#4
|
||||
|
||||
Quote:
Either way I don't think there is a hook for it, I'd poke around the showthread template and see if you can find the facebook code, place it under that. |
#5
|
|||
|
|||
Thanks.
All I need is code to exclude certain forums. The Facebook Like automatically doesn't appear in private forums. Which to have the same for Twitter. FYI: Facebook code doesn't have the code, it's done automatically (for lack of a better word). |
#6
|
||||
|
||||
Quote:
https://vborg.vbsupport.ru/showthread.php?t=231525 |
Благодарность от: | ||
Bob_R |
#7
|
|||
|
|||
I've just done this, and used the same conditional as on the facebook like...as they will only want to show together. May be a bit simplistic but works perfectly.
Code:
<vb:if condition="$show['fb_likebutton']"> {vb:raw fblikebutton} </vb:if> <vb:if condition="$show['fb_likebutton']"> <a href="https://twitter.com/share" class="twitter-share-button" data-via="LegalBeagles">Tweet</a> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> </vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|