ngruy Posted November 2, 2010 Share Posted November 2, 2010 Hello, I´m trying to insert a facebook "Like" button in the header of PS, put the code that Facebook give: <iframe src="http://www.facebook.com/plugins/like.php?href=shopurl.com&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> in header.tpl , but when i go to ssl page, a warning appear...anyone know how can i fix this? Thnaks! Link to comment Share on other sites More sharing options...
rocky Posted November 2, 2010 Share Posted November 2, 2010 Try the following: <iframe src="http{if $smarty.server.HTTPS == 'on'}s{/if}://www.facebook.com/plugins/like.php?href=shopurl.com&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe> This should use https:// when appropriate. If Facebook supports https, then it should work. Link to comment Share on other sites More sharing options...
ngruy Posted November 2, 2010 Author Share Posted November 2, 2010 Thanks rocky, but don´t work. I add an s in "https://www.facebook.com/plugins/like.ph..." and they work but not with the code you post. Link to comment Share on other sites More sharing options...
Pippo3000 Posted November 5, 2010 Share Posted November 5, 2010 Thanks rocky, but don´t work. I add an s in "https://www.facebook.com/plugins/like.ph..." and they work but not with the code you post. had the same issue and it helped to set the facebook link to https://www.facebook/..., no other code changed. seems to be your observation, too. then there is no need to change any further code... Link to comment Share on other sites More sharing options...
dapottster Posted April 1, 2011 Share Posted April 1, 2011 I would like to add my own image in place of the standard facebook image to link to my page there. I'm having difficulties getting it done though. Can anybody help me? Link to comment Share on other sites More sharing options...
dapottster Posted May 30, 2011 Share Posted May 30, 2011 never mind, I got it figured out Link to comment Share on other sites More sharing options...
monova Posted June 29, 2011 Share Posted June 29, 2011 never mind, I got it figured out Do share Link to comment Share on other sites More sharing options...
dapottster Posted August 6, 2011 Share Posted August 6, 2011 never mind, I got it figured out<br/><br/>Do share Sorry for this slow response here. I never got notified of that reply. Here's what I ended up doing: I located where my header file was - modules/blockpermanentlinks opened up blockpermanentlinks-header.tpl I then was able to adjust the code so that I could have facebook and twitter buttons up in my header along side contact, sitemap, and bookmark Hope that helps! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now