Facebook like button and others

  • Posts: 138
  • Thank you received: 0
13 years 7 months ago #14269

Hello,

How would I integrate the facebook "like" and twitter button/links into a product page?

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 7 months ago #14284

Please Log in or Create an account to join the conversation.

  • Posts: 138
  • Thank you received: 0
13 years 6 months ago #15571

Hello,

I have try to add both the tweet and facebook like button given the code provided by both sites. The twitter code works fine but the fb code is not working for someone reason. Maybe I need to change something. Here are both codes.

Facebook

<script src=" connect.facebook.net/en_US/all.js#xfbml=1 "></script><fb:like href=" www.daydreamercreative.net " layout="box_count" show_faces="true" width="450" font="verdana"></fb:like>

Twitter


<p><a class="twitter-share-button" href=" twitter.com/share ">Tweet</a></p>
<p><a></a></p>
<script src=" platform.twitter.com/widgets.js " type="text/javascript"></script>

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 6 months ago #15579

I see that you're using the xfbml format for your facebook code. We had the same problem when trying it on our end.

You should use the iframe code provided by facebook instead:
<iframe src=" www.facebook.com/plugins/like.php?href&a...p;font&height=80 " scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>

Please Log in or Create an account to join the conversation.

  • Posts: 138
  • Thank you received: 0
13 years 6 months ago #15588

The Iframe does not work either the code just dissappears when I hit the update button on the html editor. Maybe this is a Joomla issue I posted on their forum as well.

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 6 months ago #15598

That's normal that the code disappear. It's the HTML editor which removes it. If you go in the configuration of hikashop and change the editor option to "no editor" you should be able to add the iframe code.

Please Log in or Create an account to join the conversation.

  • Posts: 392
  • Thank you received: 0
13 years 2 months ago #25828

Hello,

Has anyone else noticed the tweet counter on the plugin is not working?



Cheers :)

Last edit: 13 years 2 months ago by Bugger101.

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 2 months ago #25839

There are several possibilities to that problem:
stackoverflow.com/questions/3805670/twit...utton-does-not-count
One interesting is to add the attribute:
data-counturl="'.$_SERVER.'"

in the link:
$html.='<a href="http'.$this->https.'://twitter.com/share" class="twitter-share-button" '.$message.' data-count="'.$count.'" '.$mention.' '.$lang.'>Tweet</a>

in the file plugins/content/hikashopsocial.php

Please Log in or Create an account to join the conversation.

  • Posts: 392
  • Thank you received: 0
13 years 2 months ago #25874

Thanks Nicolas, it didn't work for me - must be another issue :)

Please Log in or Create an account to join the conversation.

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
13 years 2 months ago #25882

Mmm. I'm out of ideas on this one.

Please Log in or Create an account to join the conversation.

  • Posts: 392
  • Thank you received: 0
13 years 2 months ago #25911

That's cool. It may have something to do with htaccess file and www. etc, so will dig a little and post any news, if any :)

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0
12 years 10 months ago #35331

rsarpong wrote:

The Iframe does not work either the code just dissappears when I hit the update button on the html editor. Maybe this is a Joomla issue I posted on their forum as well.


If you are using Joomla version 1.7/1.6 and you are trying to add an iFrame into your article you will need to first adjust the text filter options so it does not get filtered out. In the article manager click on the option button at the top right then go to the "Text Filters" tab. In this tab you want to set the Filter Type for Super Users from "Black List (default)" to "No Filtering"

This should then allow you to include iFrames in your articles without the code being removed.

Please Log in or Create an account to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum