Page 18 of 35 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 347
  1. #171
    Join Date
    Jul 2010
    Location
    Findon, UK
    Posts
    90
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    Quote Originally Posted by DarkAngel View Post
    I have a dark back also -- try this in the tpl_product_info.php

    Code:
    <div id="likeButton"><fb:like colorscheme="dark"></fb:like></div>
    Dark Angel, many thanks. Your code gave me an idea as I have now changed the tpl_product_info.php with this

    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:40px"></iframe>

    I've also reduced the width to 300 px so the "like botton" doesn't push my side boxes out anylonger.

    Dark Angel, you seem to be anywhere. It's not the first time you have helped me. Once again many thanks.

    Kim

  2. #172
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: Facebook Like Button

    If your cart goes to secure after you login, that code will throw a security error. You could have just added the the color scheme tag to the existing code.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  3. #173
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    Quote Originally Posted by PUREchocolatetruffle View Post
    Dark Angel, many thanks. Your code gave me an idea as I have now changed the tpl_product_info.php with this

    <iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(zen_href_link(zen_get_info_page((int)$_GET['products_id']),'cPath='.$_GET['cPath'].'&products_id=' . (int)$_GET['products_id'])); ?>&layout=standard&show_faces=false&width=450&action=like&colorscheme=dark" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:300px; height:40px"></iframe>

    I've also reduced the width to 300 px so the "like botton" doesn't push my side boxes out anylonger.

    Dark Angel, you seem to be anywhere. It's not the first time you have helped me. Once again many thanks.

    Kim
    I'm here, I'm there, I'm verywhere so b e w a r e....lol

    glad I could help out a little

  4. #174
    Join Date
    Jul 2010
    Location
    Findon, UK
    Posts
    90
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    Quote Originally Posted by delia View Post
    If your cart goes to secure after you login, that code will throw a security error. You could have just added the the color scheme tag to the existing code.
    Nope, no security error comes up. However, I did change it and added DarkAngel's code instead.
    And now my website looks good again in the Chrome browser.

    May I ask, how do I make the width shorter in the Like Button line ? It was easy to do in the iframe code but I can't make it work now.

    Otherwise, many thanks for a great programme.

    Kim

  5. #175
    Join Date
    Jul 2010
    Location
    Findon, UK
    Posts
    90
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    Quote Originally Posted by PUREchocolatetruffle View Post
    Nope, no security error comes up. However, I did change it and added DarkAngel's code instead.
    And now my website looks good again in the Chrome browser.

    May I ask, how do I make the width shorter in the Like Button line ? It was easy to do in the iframe code but I can't make it work now.

    Otherwise, many thanks for a great programme.

    Kim
    Sorted by myself by adding "width= 300px" in DarkAngel's code.
    However, I have another question that really puzzles me:
    The Facebook Like Button is placed perfectly above the product where it should in the Chrome browser and Microsoft Internet Explorer 9. But in Microsoft Internet Explorer 7 and 8 the Facebook Like Button is only visible down in the left corner of the screen.
    How come ? Isn't it weird ?

    Kim

  6. #176
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: Facebook Like Button

    Not really - each browser does different thing with css. Getting cross browser compliant css can be problematic.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  7. #177
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    Quote Originally Posted by PUREchocolatetruffle View Post
    Sorted by myself by adding "width= 300px" in DarkAngel's code.
    However, I have another question that really puzzles me:
    The Facebook Like Button is placed perfectly above the product where it should in the Chrome browser and Microsoft Internet Explorer 9. But in Microsoft Internet Explorer 7 and 8 the Facebook Like Button is only visible down in the left corner of the screen.
    How come ? Isn't it weird ?

    Kim
    kudos for figuring it out yourself...sometimes when I do that it won't even show the image...lol

    I don't know why it does that I do not have mine showing at the top above image I positioned mine right below it, just between the image and the descritpion

  8. #178
    Join Date
    Oct 2005
    Posts
    66
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    If anyone is using an SEO mod such as Ceon URI's and the URL string with $canonicalLink is not working, use this bit of code instead of the normal og:url:

    Code:
    <meta property="og:url" content="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER) . $request_uri; ?>" />
    So the full bit of code im using on 1.3.9h with Ceon URI's is:

    Code:
    <meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>" />
    <meta property="og:site_name" content="<?php echo TITLE; ?>" />
    <meta property="og:image" content="<?php echo META_TAG_FBIMG; ?>" />
    <meta property="og:url" content="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER) . $request_uri; ?>" />
    <meta property="fb:app_id" content="APP ID" />
    <meta property="og:type" content="product" />

  9. #179
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: Facebook Like Button

    Thanks, Fran, I'll check that out and incorporate it into the instructions!
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  10. #180
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    How do I change the color of the text that is next to the "like" icon?

 

 
Page 18 of 35 FirstFirst ... 8161718192028 ... LastLast

Similar Threads

  1. Facebook like button
    By petestownrich in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 18 Feb 2015, 07:02 PM
  2. v151 facebook like button
    By ken1 in forum General Questions
    Replies: 0
    Last Post: 14 May 2014, 07:03 PM
  3. Facebook like button
    By bocahydro in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 5 Mar 2014, 01:48 PM
  4. facebook like button and google + button in Header.
    By Horrific_ending in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Jan 2012, 04:46 PM
  5. Facebook like button
    By rdsbaker in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 25 Mar 2011, 07:00 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