rslyon Posted November 22, 2010 Share Posted November 22, 2010 Hi, Just thought i show the following if anyone is interested. How to add Facebook Like button to your whmcs pages, ideal for KB Register at http://developers.facebook.com/setup/ and get an APP ID Change the code bellow and replace YOUR APP ID with your id number. Add the following code to the end of header.tpl <div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({appId: 'YOUR APP ID', status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement('script'); e.async = true; e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; document.getElementById('fb-root').appendChild(e); }()); </script> Then on your page templates add the like button: <script src="https://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="{$whmcs_url}"></fb:like> 0 Quote Link to comment Share on other sites More sharing options...
Jpoke5 Posted April 4, 2011 Share Posted April 4, 2011 l would like to add the like button just under the twitter image in the client portal. anyone know what file that is?? Thanks 0 Quote Link to comment Share on other sites More sharing options...
GGWH-James Posted April 4, 2011 Share Posted April 4, 2011 (edited) l would like to add the like button just under the twitter image in the client portal. anyone know what file that is?? Thanks "templates/portal/footer.tpl" is where you'll find the Twitter image that's displayed in the right column for the Portal theme. Edited April 4, 2011 by GGWH-James 0 Quote Link to comment Share on other sites More sharing options...
Inetbiz Posted June 4, 2011 Share Posted June 4, 2011 Didn't work for me 0 Quote Link to comment Share on other sites More sharing options...
Payton Designs Posted June 4, 2011 Share Posted June 4, 2011 The script portion needs to be wrapped in {literal} tags. 0 Quote Link to comment Share on other sites More sharing options...
Inetbiz Posted June 5, 2011 Share Posted June 5, 2011 http://bit.ly/m6U4vv still can't get it to post the URL it's currently on 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.