Page 1 of 2 12 LastLast
Results 1 to 10 of 76

Hybrid View

  1. #1
    Join Date
    Nov 2011
    Posts
    32
    Plugin Contributions
    3

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

    Three Internet Giants Viz., Google, Facebook and Twitter have launched three different services recently.

    1. Google has launched its own Social Networking called "Google +1. Now, Google +1 is open for businesses also as announced on November 8, 2011.

    2. Facebook has also recently launched a new service called "Send" button. The Send Button allows users to easily send content to their friends. It is just like "Tell A Friend" button already available in Zen cart, but lot superior as recipients' email addresses are automatically populated from Facebook database and instantly shoots a mail to a whole group or selected individuals. The message will include a link to the URL specified in the send button, along with a title, image, and short description of the link.

    3. Twitter too rolled out its awesome Follow button recently.

    In this contribution, I have attempted to avail the services of all these NEW SERVICES of all three INTERNET GIANTS...! Ofcourse along with Facebook Send button, Facebook Like button is also installed automatically.

    This contribution can be downloaded at http://www.zen-cart.com/index.php?ma...oducts_id=2026

    This is the support thread for this contribution... Shall try to support as much as possible.

    Regards
    Gopinath Goswami
    OnlineSurgicals.com

  2. #2
    Join Date
    Jun 2007
    Posts
    65
    Plugin Contributions
    0

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

    Hi
    I just installed this. But it seems to have distorted the size of product fonts. I have version 1.3.9h

    http://www.carolinapetsupply.com/cat...roducts_id=180

    Any ideas?

  3. #3
    Join Date
    Nov 2011
    Posts
    32
    Plugin Contributions
    3

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

    Hi,

    For google plus code, please try this:

    Code:
    <g:plusone annotation="inline" width="400"></g:plusone>
    For facebook code, please try this:

    Code:
    <fb:like send="true" width="400" show_faces="true"></fb:like>
    I have just reduced the width size to 400 from 450 pixels.

    Regards
    Gopinath Goswami
    OnlineSurgicals.com

  4. #4
    Join Date
    Nov 2011
    Posts
    32
    Plugin Contributions
    3

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

    Dear all users of this Contribution,

    I noticed that email address and City fields are prefilled with your store email address and your city when customer reaches Register page or Contact us page. This is because $city and $email_address used in the code appearing in (your-zencart-store-root)/includes/templates/your_custom_template/common/html_header.php interferes with zencart's code. So, I suggest you changing the names to $mycity and $myemail_address. Also, please replace "1" to "0" if you do not want to use your address, email and phone fields in the meta tags.


    Code:
    ################ start of AutoOpenGraph ###################
    
    $store_name = "Your Company Name"; //e.g. "Samanthas Power Tools", or "Gus' China Shop".
    $store_url = "http://www.yourdomain.com/store"; //url to your store (no trailing '/')
    $product_type = "product"; //type of product you're selling (see tutorial)
    $use_addr = 0; //use address? if yes, set $use_addr = 1; (no quotes). edit lines below suitably.
    $use_email = 0; //use email address? if yes, set $use_email = 1; (no quotes) edit lines below suitably.
    $use_phone = 0; //use phone number? if yes, set $use_phone = 1; (no quotes) edit line below suitably.
    
    //if $use_addr is set to 1;
    $mystreet = "123 Your Street Name";  //change to your street address.
    $mycity = "City"; //your city
    $mystate = "State"; //Your State. Facebook exaple uses abbreviation.
    $myzip = "zipcode"; //you're zip/postal code.
    $mycountry = "USA"; //your country. Facebook example uses acronym.
    
    //if $use_email is set to 1;
    $myemail_address = "[email protected]"; // your email
    
    //if use_phone is set to 1
    $myphone_number = "+1-123-12345678"; //format: +country code - area code - number.
    
    //no need to edit below this line:
    extract($product_info_metatags->fields);
    extract($category_metatags->fields);
    $prod_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    
    //get defined image or default
    $myImage= zen_get_products_image((int)$_GET['products_id']);
    $img = simplexml_load_string($myImage);
    $img = $img['src'];
    if($this_is_home_page){ $depends = $store_name; $product_type = "website"; }
    else if ($categories_name){  $depends = $categories_name; $product_type = "website";  }
    else if ($products_name){ $depends = $products_name; }
    else { $depends = META_TAG_TITLE; $product_type = "website"; }
    //print_r($product_info_metatags);
    ################# end of AutoOpenGraph ####################
    Under meta tags, please change suitably as follows:

    Code:
    <?php
    if($use_addr){
    echo '<meta property="og:street-address" content="'.$mystreet.'" />'."\n";
    echo '<meta property="og:locality" content="'.$mycity.'" />'."\n";
    echo '<meta property="og:region" content="'.$mystate.'" />'."\n";
    echo '<meta property="og:postal-code" content="'.$myzip.'" />'."\n";
    echo '<meta property="og:country-name" content="'.$mycountry.'" />'."\n";
    }
    if($use_email){
    echo '<meta property="og:email" content="'.$myemail_address.'" />'."\n";
    }
    if($use_phone){
    echo '<meta property="og:phone_number" content="'.$myphone_number.'" />'."\n";
    }
    ?>
    Regards
    Last edited by gopinathgoswami; 19 Dec 2011 at 11:11 AM.
    Gopinath Goswami
    OnlineSurgicals.com

  5. #5
    Join Date
    Jun 2007
    Posts
    65
    Plugin Contributions
    0

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

    OK I fixed it. It was the <div> tags.

    When I inserted the whole line it fixed it
    Thanks!

    I also made the other changes you suggested.

    Thanks for all of your help!

    Now I just have to figure out google, facebook and twitter

  6. #6
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

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

    Before I download and install this Add-On, is it possible to install just the FB and google portion? I'm not a twitter user.

  7. #7
    Join Date
    Nov 2011
    Posts
    32
    Plugin Contributions
    3

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

    Yes.. it is possible. Please do not copy and paste the code starting from

    <!-- Twitter Follow Button BEGIN -->

    to

    <!-- Twitter Follow Button END-->

    Thats.. it.. very simple....!!
    Gopinath Goswami
    OnlineSurgicals.com

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

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

    Dear gopinathgoswami,

    Did you try looking at the page for Facebook like button on Google Chrome browser? It doesn't show up in Chrome.

    I shows up in Firefox and IE, but not Chrome.

    Any ideas?

    Cheers,
    kamion

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

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

    Sorry gopinathgoswami. Ignore my post above about Google Chrome. I had the "Facebook Disconnect" plugin enabled, and that was blocking it.

  10. #10
    Join Date
    Mar 2012
    Posts
    4
    Plugin Contributions
    0

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

    Good day, thank you for this mod. I think it is awesome.

    I receive the following error when I click on the product like button.

    The app ID "116681851735368" specified within the "fb:app_id" meta tag was invalid.

    In html_header.php I have the following line.

    <meta property="fb:admins" content="116681851735368"/>

    My facebook page is http://www.facebook.com/pages/PC-4-Good/116681851735368

    My site is http://www.pc4good.co.za

    Do you have any ideas as to what might be the problem?

    Regards
    Andre

 

 
Page 1 of 2 12 LastLast

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