Jump to content

Insert "like" button in ssl header


ngruy
 Share

Recommended Posts

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!

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

  • 4 months later...
  • 1 month later...
  • 5 weeks later...
  • 1 month later...
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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More