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 |
#62
|
||||
|
||||
Quote:
|
#63
|
|||
|
|||
Quote:
|
#64
|
|||
|
|||
my mod with automatic tweet icon (no need to upload nothing):
Code:
<!-- 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> <img src="http://a1.twimg.com/a/1265328866/images/favicon.ico" align="left" style="margin:5px 5px 0 10px;" /> <!-- 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 --> |
#65
|
||||
|
||||
and where we must put this code?
|
#66
|
||||
|
||||
Please see the first post in this thread for full instructions.
|
#67
|
|||
|
|||
This looks interesting, I am new to all this so excuse me for being a bit think, but can you confirm a couple of things:
1 - I am assuming this doesn't auto-tweet/facebook new threads, is that correct? 2 - Assuming someone has to click on it to share with twitter/FB, is it: (a) Just the thread starter that can manually share the new thread with their twitter/FB account? (b) Or can any registered users use it to share it with their twitter/FB account? (c) Or is it just the thread starter and/or mods that can? (d) Or some other combination that I haven't thought of? Thanks in advance for any help. |
#68
|
||||
|
||||
Quote:
|
#69
|
|||
|
|||
Quote:
As soon as vb4.02 is released and my site is upgraded I'll add in this mod. |
#70
|
||||
|
||||
this works 100% fine with VB 4.0.1 but I want to get this slye on vb 4.0.1 instead of dropdown. what code should I use and where do i paste it?
|
#71
|
|||
|
|||
Does this work on vBulletin 4.0.2?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|