Page 33 of 35 FirstFirst ... 233132333435 LastLast
Results 321 to 330 of 347
  1. #321
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,371
    Plugin Contributions
    23

    Default Re: Facebook Like Button

    If you are trying to do a facebook like on any other pages besides the product page, that is what happens. The mod is set only for the product pages.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  2. #322
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    No, I installed it exactly per the instructions.
    Not trying to customize or do anything unusual at all.

    The "Like" button and text appear on the product pages only.

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

    Default Re: Facebook Like Button

    You sure you have replaced / merged the modules/metatags.php and the templates/common/tpl_html_header.php. Both go into your override template folders so be sure you have not just uploaded the folder in the package which of course is not named correctly.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

  4. #324
    Join Date
    Feb 2011
    Posts
    665
    Plugin Contributions
    0

    Default Re: Facebook Like Button

    I just downloaded a copy of includes/modules/CUSTOM/meta_tags.php and compared it with the same file in the add-on using WinMerge. No differences at all.


    templates/common/tpl_html_header.php....?
    I do not have this file, searched all files.

    I do have:
    includes/templates/CUSTOM/common/html_header.php
    includes/templates/CUSTOM/common/tpl_header.php
    Last edited by Serious; 4 Oct 2012 at 06:07 PM.

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

    Default Re: Facebook Like Button

    @ serious

    I just used the dark --- actually it was to show on dark backgrounds is what I used...that just lets the link show up in the stores link color of choice

    you are right there is no tpl_html_header.php, it was a mistyped thing...you have the two correct files.
    Last edited by DarkAngel; 5 Oct 2012 at 03:39 AM.

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

    Default Re: Facebook Like Button

    Still ugly! Thanks DarkAngel
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

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

    Default Re: Facebook Like Button

    ok, I have some code that trust me I have no idea where it came from but...I remember once I was having an issue with FB changing their button and not liking the share/like thumbs up button...soooooo

    this is the code I have for my link...which is worded a little different with my own FB button I did like...lol In red is where I added the color for the font of the text and the text I decided on...it changes the text of the wording to your choice, regardless of what your links are set to be for your store.



    in the tpl_product_info_display.php I placed mine here so look for the first line in your file if you want it in the same place...go to my store to see where it is and what it looks like---my live store is not with colored text, otherwise put it where you want your link to appear. I also added the breaks to give it some space below and above it.

    ------------------------------beginning of code-----------------------------------

    <!--eof Product Price block -->
    <br><br>

    <script>function fbs_click() {u=location.href;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolb ar=0,status=0,width=626,height=436');return false;}</script><style> html .fb_share_link { padding:2px 0 0 20px; height:32px;) no-repeat top left; }</style><a href="http://www.facebook.com/share.php?u=<?php echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];?>" onclick="return fbs_click()" target="_blank" class="fb_share_link"><img src=http://fantasiesrealm.com/images/facebook.gif width=25><font size=+2 color=#cc0000>&nbsp;&nbsp;Share on FaceBook: &nbsp;<strong><?php echo $products_name; ?></strong></a></font><br><br><br><br>

    ------------------------------end of code------------------------------------

    hope it helps

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

    Default Re: Facebook Like Button

    I just confirmed that the like button in one of my original installations is showing META_TAG_TITLE instead of product title. I have no earthly idea how this has happened because this part is not Facebook but zen cart coding which has not changed. This is on a 1.3.9h cart by the way. Any of you using the original mod with no changes, please check to see if it is happening in your carts as well.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

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

    Default Re: Facebook Like Button

    I'll bet you that it depends on the version of php you are using. I'm now on 5.3 so if you have a problem and it's on 5.3, please let me know.
    The full-time Zen Cart Guru. WizTech4ZC.com
    New template for 2.0 viewable here: 2.0 Demo

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

    Default Re: Facebook Like Button

    Quote Originally Posted by delia View Post
    I just confirmed that the like button in one of my original installations is showing META_TAG_TITLE instead of product title. I have no earthly idea how this has happened because this part is not Facebook but zen cart coding which has not changed. This is on a 1.3.9h cart by the way. Any of you using the original mod with no changes, please check to see if it is happening in your carts as well.

    well my test 1.5 store got deleted from the server but the one on my computer disappeared...lol

    but

    1.3.9h cart:

    <title><?php echo META_TAG_TITLE; ?></title>

    <meta property="og:title" content="<?php echo META_TAG_FBTITLE; ?>"/>
    <meta property="og:title" content="<?php echo META_TAG_TITLE; ?>"/>
    <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 $canonicalLink; ?>"/>
    <meta property="og:type" content="product"/>
    <meta property="fb:admins" content="my info"/>

    That is how mine is written and I have no problems with facebook button what so ever....save the button change to my liking.

 

 
Page 33 of 35 FirstFirst ... 233132333435 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