Results 1 to 10 of 76

Hybrid View

  1. #1
    Join Date
    Apr 2012
    Posts
    82
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    hi can any one teach me how to do that like in the picture Name:  header.jpg
Views: 342
Size:  20.8 KB
    the twitter and google facebook they are all in the header and all of them showing the number like twit and share google is it possible to that using this software plss can any one answer it for me, where can i paste the code my website is http://www.oitem.com/

  2. #2
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    gopinathgoswami, in regards to the Facebook Open Graph tag in includes/templates/<your_custom_template/common/html_header.php

    HTML Code:
    <meta property="og:url" content="<?php echo $prod_url; ?>" />
    I suggest using the canonical link if it's available thus:
    PHP Code:
    if (isset($canonicalLink) && $canonicalLink != '') {
       
    $prod_url $canonicalLink;
    }
    else
    {
       
    $prod_url "http://" $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

    This is because the original code will include the "&zenid=" field if it happens to be in the URL.


    And for the Facebook like button code in individual product pages, I think there needs to be a "href" field in the link:

    HTML Code:
    <!--bof Facebook Like button code-->
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) {return;}
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=YOUR-APP-ID";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    
    <fb:like send="true" width="450" show_faces="true" href="<?php echo $prod_url; ?>"></fb:like>
    <!--eof Facebook Like button code-->


    If the FB Like button is the general like button for your website, I think it's a good idea to link it back to your website's Facebook page. Let's say the address of your website's Facebook page is "http://www.facebook.com/yourWebsite", then the general like button for your website should include the href to point to this.

    HTML Code:
    <fb:like send="true" width="450" show_faces="true" href="http://www.facebook.com/yourWebsite"></fb:like>
    Without this href, I found that the likes were being counted, but there's no where on Facebook that "collects" the likes and you can't see who's liked your page.

    Hope I haven't gotten the wrong end of the stick to this whole thing.

  3. #3
    Join Date
    Mar 2011
    Posts
    93
    Plugin Contributions
    0

    Default Re: "Google Plus One (+1), Facebook Send and Twitter Follow" addon Support

    Quote Originally Posted by oitem View Post
    hi can any one teach me how to do that like in the picture Name:  header.jpg
Views: 342
Size:  20.8 KB
    the twitter and google facebook they are all in the header and all of them showing the number like twit and share google is it possible to that using this software plss can any one answer it for me, where can i paste the code my website is http://www.oitem.com/
    You can try putting the FB, Twitter, Google code into includes/templates/<your_template>/common/tpl_header.php.

 

 

Similar Threads

  1. Facebook, Twitter, Google buttons and W3C validation
    By crazysarah in forum General Questions
    Replies: 0
    Last Post: 6 Sep 2012, 10:49 AM
  2. v150 Facebook google plus twitter
    By oitem in forum General Questions
    Replies: 0
    Last Post: 4 Jun 2012, 06:56 PM
  3. Replies: 0
    Last Post: 22 Dec 2011, 12:59 AM
  4. Facebook Sidebox, identifying "profile" and "api"
    By styledata in forum Addon Sideboxes
    Replies: 4
    Last Post: 3 Nov 2011, 08:25 PM
  5. Replies: 1
    Last Post: 22 Aug 2010, 01:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg