The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google+1 / Facebook / Linkedin / Twitter Share Buttons Details »» | |||||||||||||||||||||||||||||
Google+1 / Facebook / Linkedin / Twitter Share Buttons
Developer Last Online: Apr 2020
Hello VBers!
This is my first modification here, I hope you will find it useful and helpful About Most of us now are aware of the importance of integrating social networks plugins into our websites and the great impact on increasing the site visibility and traffic, social networks made it too easy to share and recommend content which you consider useful for your friends. What we will do now is integrating, Google+1, Facebook, Linked and Twitter share Buttons at your Showthread page Live Demo : Language Teaching & Learning Resources Check it under the signature There is also a photo attached below. Installation We will edit the template : postbit_legacy or postbit ( whatever you use let's assume that I will edit the postbit_legacy. open postbit_legacy, look for this code : Code:
{vb:raw template_hook.postbit_signature_start} {vb:raw ad_location.ad_showthread_firstpost_sig} <vb:if condition="$post['signature']"> <blockquote class="signature restore"><div class="signaturecontainer">{vb:raw post.signature}</div></blockquote> </vb:if> {vb:raw template_hook.postbit_signature_end} </div> </vb:if> add after ( DON'T FORGET TO EDIT THE TWITTER ACCOUNT IN RED): Code:
<vb:if condition="$post[postcount] == 1"> <div style="float: right; padding: 10px 0 8px 10px;"> <table border="0" height="62px"> <tr> <td valign="bottom"><g:plusone size="tall"></g:plusone></td> <td valign="bottom"><a href="http://twitter.com/share" class="twitter-share-button" data-count="vertical" data-via="YOUR TWITTER USERNAME" data-related="aaronwall">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></td> <td valign="bottom"> <script type="text/javascript" src="http://platform.linkedin.com/in.js"></script><script type="in/share" data-counter="top"></script></td> <td valign="bottom"><a name="fb_share" type="box_count" expr:share_url="data:post.url" href="http://www.facebook.com/sharer.php">Share</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></td> </tr> </table> </div> </vb:if> Code:
<script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script> Known Problems : Linkedin button give error if the thread titles has some characters like @, !!!!!! , etc, hope that once can help sort this out. Disclaimer I have got this idea from this post Thanks naveeid Feel free to Click ' Mark As Installed ' if you used. Screenshots
Show Your Support
|
3 благодарности(ей) от: | ||
justino, Toorak Times |
Comments |
#52
|
|||
|
|||
the twitter name do we put our own twitter name because I don't have one so trying to figure it out
|
#53
|
|||
|
|||
I know this site that I'm going to mention isn't vbulletin, but is there a way for us to add the social buttons to the side of the forum and make it so they scroll with the page when you scroll down? See example.
|
#54
|
|||
|
|||
Is this mod works with 3.8.2 version?
|
#55
|
||||
|
||||
Yes, it would work if you change code a bit (as vB4 has some things a bit different).
For example, you use only if instead vb:if So you have this: <if condition="$post[postcount] == 1"> In the end use only: </if> And of course, you need to search for different code in your postbit template. But all in all, this is it. |
#56
|
|||
|
|||
i have a question for this i hot dont violate the terms of service of vBulletin, but there is some way, when i clic share on facebook that the message under the thread dont be ths:
Code:
'This is a discussion forum powered by vBulletin. To find out about vBulletin, go to http://www.vbulletin.com/ .' |
#57
|
||||
|
||||
Thanks for that winter sonata
|
#58
|
|||
|
|||
Quote:
I have this same issue and this is how I fixed it. I am still working on the fact that it is not incrementing tweet counts (yet). Though this seems to be a twitter bug https://dev.twitter.com/issues/48 The fix was adding this snippet "{vb:raw href}" Code:
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="YOUR_TWITTER_USERNAME" data-url="{vb:raw href}">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> |
#59
|
|||
|
|||
Simply honored to join vBulletin, These amazing top modification and so easy can only be made by vBulletin professional and amazing users... Congurats to all of you who have joined vBulletin, and many many credits to all of them who have participated and showen appreciation .. and I am one of them, Appreciated and thank you
|
#60
|
|||
|
|||
Hi there-
Trying to edit the files, but the only place I'm seeing that code is in the install folder, vbulletin-style.xml I'm using the latest 4.x release... are my templates stored in the database? Can anyone tell me? Or do I need to download the latest files from my webserver and edit it that way? Thank you |
#61
|
|||
|
|||
Hello.
I try to install for use only for google+1 but don't work. Modify postbit_legacy, and not work. I use vb 4.2.1 Any error, any message, but not work. Any iddea? Thanks. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|