The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Submit to Twitter and Facebook Details »» | |||||||||||||||||||||||||||
This is an update to vB4.0 Beta 3 of my Submit to Twitter and FB mod https://vborg.vbsupport.ru/showthread.php?t=217117
See screenshot for example of where it goes and how it looks. Keeping up with the latest in social networking keeps traffic flowing to your site. This can all be added at once or you may add only the one's you want. Additionally, this will probably work in any version of vB. At the moment it cannot be turned off for specific forums, I still have to work out the conditional changes for vb4 so it will appear in all forums for now. In the SHOWTHREAD template find: Code:
<li class="popupmenu nohovermenu" id="threadtools"> Code:
<!-- Begin Share FB --> <li class="popupmenu nohovermenu" id="sharefb"> <h6><a class="popupctrl" href="javascript://">Share</a></h6> <ul class="popupbody popuphover"> <!-- Facebook Share --> <li> <a name="fb_share" type="icon_link" href="http://www.facebook.com/sharer.php">Facebook</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> </li> <!-- / Facebook Share --> <li> <!-- Twitter Share --> <script type="text/javascript"> var twtTitle = document.title; var twtUrl = location.href; var maxLength = 140 - (twtUrl.length + 1); if (twtTitle.length > maxLength) { twtTitle = twtTitle.substr(0, (maxLength - 3))+'...'; } var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl); document.write('<a href="'+twtLink+'" target="_blank"'+'>Tweet This!<'+'/a>'); </script> <!-- / Twitter Share --> </li> </ul> </li> <!-- End Share FB --> Screenshots
Show Your Support
|
Comments |
#22
|
||||
|
||||
Thanks for the great mod. I have a small request (I think it was mentioned before also)
Could this be posted at the bottom of the posts instead? Where the Edit, Reply, Reply with Quote, etc are? Thanks again! |
#23
|
||||
|
||||
Quote:
Here is the core code you would want to use: HTML Code:
<!-- Begin Facebook Share --> <a name="fb_share" type="icon_link" href="http://www.facebook.com/sharer.php">Facebook</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> <!-- End Facebook Share --> <!-- Begin Twitter Share --> <script type="text/javascript"> var twtTitle = document.title; var twtUrl = location.href; var maxLength = 140 - (twtUrl.length + 1); if (twtTitle.length > maxLength) { twtTitle = twtTitle.substr(0, (maxLength - 3))+'...'; } var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl); document.write('<a href="'+twtLink+'" target="_blank"'+'><img src="images/tweet.png" border="0" alt="Tweet This!" /'+'>Tweet This!<'+'/a>'); </script> <!-- End Twitter Share --> |
#24
|
||||
|
||||
Sorry to ask but is this working for 4.0 gold? Im still confused w/ all the changes and I really need my Facebook and Twitter bookmarks back.
|
#25
|
||||
|
||||
Yes, this specific one is the updated version for 4.0 and I am using it on Gold.
|
#26
|
|||
|
|||
Works ok for me on VB4 PL1 and VBSEO 3.5 RC1
|
#27
|
||||
|
||||
Quote:
|
#28
|
|||
|
|||
hi. as I could fix it are next to each other. since they are one above the other.
thanks |
#29
|
||||
|
||||
I hate to seem dumb but what exactly does this mod do? If someone clicks on the facebook link are you telling me it creates a link to that specific thread on their facbook wall?
|
#30
|
||||
|
||||
Quote:
Exactly, it will create a new facebook or Twitter entry containing the contents of the post. |
#31
|
|||
|
|||
hello. and try to fix the position and I can not put it online. I want it next to each other. I can do.? or to do.
thanks Code:
<!-- Begin Share FB --> <li class="popupmenu nohovermenu" id="sharefb"> <h6><a class="popupctrl" href="javascript://"><FONT COLOR="#FF0303"><B>COMPARTIR</B></FONT></a></h6> <ul class="popupbody popuphover"> <!-- Facebook Share --> <li> <a name="fb_share" type="button" href="http://www.facebook.com/sharer.php">FACEBOOK</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script> </li> <!-- / Facebook Share --> <li> <!-- Twitter Share --> <script type="text/javascript"> var twtTitle = document.title; var twtUrl = location.href; var maxLength = 140 - (twtUrl.length + 1); if (twtTitle.length > maxLength) { twtTitle = twtTitle.substr(0, (maxLength - 3))+'...'; } var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl); document.write('<a href="'+twtLink+'" target="_blank"'+'><img src="http://i50.tinypic.com/f9imv_th.jpg" border="0" alt="Tweet This!" /'+'><'+'/a>'); </script> <!-- / Twitter Share --> </li> </ul> </li> <!-- End Share FB --> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|