The Arcive of vBulletin Modifications Site. |
|
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 mod: 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>
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://forums.speedysparrow.com/images/retweet.png" /> Tweet Topic!</a></p>
<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>
</vb:if>
PLEASE MARK AS INSTALLED IF YOU USE THIS 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. Show Your Support
|
|||||||||||||||||||||||||||
![]() |
|
|