Why would you not simply add this to the social bookmarking template??
In Show Thread templates..
showthread_bookmarksite
Paste the following after the existing code
Code:
<if condition="$bookmarksite[title]=='Facebook'">
<li>
<fb:like></fb:like>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'YOURAPPID', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
</li>
</if>
All that is required is to create a Social Bookmark for Facebook, as suggested in this thread..
https://vborg.vbsupport.ru/showthrea...light=facebook
The reason this works more nicely, is that
a) It puts the LIKE button with the rest of the social networking stuff.
b) Vbulletin will only display the Social Bookmarking bits in threads that are GUEST viewable.