The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Twitter And Facebook Integrated Buttons in Threads Details »» | |||||||||||||||||||||||||||
Twitter And Facebook Integrated Buttons in Threads
Developer Last Online: Nov 2011
First of all, I would like to give credit to the founders of the codes I used in this mod. I know almost nothing about coding and without them, this mod would have never existed.
Twitter Code Founder: https://vborg.vbsupport.ru/showthread.php?t=242425 Facebook Code Founder: https://vborg.vbsupport.ru/showthread.php?t=241011 What's better about my mod? Doing two template edits is much quicker than making two advertisements. Another reason, is that both of these mods tell you to put the code as an advertisement. Although it's easier to do, it leaves an ugly blank space below the buttons that is just wasted. The way I implemented them in uses the space under the buttons. Their mods: My mods: OR: Demo this mod here! How to Install Add the following code at the top of the header template: Code:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <script type="text/javascript" src="http://tweet-it.s3.amazonaws.com/tweet-it.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".tweet-this a").tweetIt({ animate: "fade", header: "Tweet!" }); // Something else $("tr.openclose a").click(function(){ $(this).parents("tr").hide(); $("tr.closed").show(); }); }) </script> If you want it here: Find the following code in the postbit_legacy template: Code:
{vb:raw ad_location.thread_first_post_content} Code:
<vb:if condition="THIS_SCRIPT == 'showthread'"><div style="float: right; padding: 0px 0px 0px 0px;"><p class="tweet-this"><p class="tweet-this"><a href="javascript://"><img src="http://nextgendaily.com/images/retweet.png" /> Tweet Topic!</a></p> <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.YOURSITE.com/{vb:link thread, {vb:raw thread}}&layout=button_count&show_faces=false&width=80&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:25px"></iframe></div> </vb:if> If you want it here: Find the following code in the SHOWTHREAD template: Code:
<div id="thread_controls" class="thread_controls"> <div> Code:
<vb:if condition="THIS_SCRIPT == 'showthread'"><iframe src="http://www.facebook.com/plugins/like.php?href=http://nextgendaily.com/{vb:link thread, {vb:raw thread}}&layout=button_count&show_faces=false&width=80&action=like&font=tahoma&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:80px; height:25px"></iframe><div style="float: left; padding: 0px 5px 0px 5px;"><p class="tweet-this"><p class="tweet-this"><a href="javascript://"><img src="http://nextgendaily.com/images/retweet.png" /> Tweet Topic!</a></p></div></vb:if> Again, I take no credit for finding the code used in this mod, however, I did make some changes to it and moved the code to a different area to add more flexibility. If you have any way to increase the code or fix a flaw I might have made, please leave a comment with the code below and I'll change this code right away. PLEASE MARK AS INSTALLED IF YOU USE THIS Show Your Support
|
Comments |
#12
|
||||
|
||||
dosent work for me either, can u look at the issue please?
|
#13
|
|||
|
|||
Quote:
Quote:
|
#14
|
||||
|
||||
This doesn't work for me in 4.0.4 throws out some really weird issues within long threads where users have quoted the original poster.
|
#15
|
||||
|
||||
Quote:
The issue am facing is; it's in all pages (if you navigate to page 2, 3, etc) of each thread. I think it was supposed to be on the 1st post of the thread only, anyone with a code pls? |
#16
|
|||
|
|||
I used this code you but in thread
PHP Code:
|
#17
|
|||
|
|||
bookmarked.
|
#18
|
|||
|
|||
I have installed with but its only showing for the first post.
Also your demo site shows the "share" mod which one is that? |
#19
|
|||
|
|||
^ i would like to know that as well. Which mod are you using to "share"?
|
#20
|
|||
|
|||
I installed this and the Tweet button shows up fine and it does post to Twitter but the links do not work. He is an example of a link it posts to Twitter
http://www.victorylaneforum.comshowt...hp/?3603-Rumor The URL for my forum is http://www.victorylaneforum.com shouldn't there be some sort of forward slash or something between .comshowthread?? Thanks for any help |
#21
|
|||
|
|||
damn i have try to install this but it no't works for me
i have done exactly who u write hmmmmmmm |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|