Back to vBulletin 4.x Template Modifications

Submit to Twitter and Facebook
Mod Version: 1.00, by ericgtr

vB Version: 4.0.0 Beta 3 Rating: (12 votes - 4.75 average) Installs: 148
Released: 22 Nov 2009 Last Update: Never Downloads: 6
Not Supported Template Edits Re-usable Code  

This is an update to vB4.0 Beta 3 of my Submit to Twitter and FB mod Submit to Twitter, Facebook and Digg

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">
Add this ABOVE:
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 -->

Download

No files for download.

Screenshots

Click image for larger version
Name:	fb_mod.jpg
Views:	6380
Size:	18.4 KB
ID:	106554  

Similar Mods

Show Thread Enhancements Submission buttons ( Facebook, Twitter, Digg, Addthisto, Ect ) vBulletin 3.8 Template Modifications
End-User Options Submit to Twitter, Facebook and Digg vBulletin 3.8 Template Modifications

vblts.ru supports vBulletin®, 2022-2024