Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default help solution image handler with facebook?

    hello guys, I'm going crazy to set the preview on facebbok, I can not find the image file that is directori nalla product page, you know help me?
    I modified the file tpl_product_info_display.php in line with eof Product description "<link rel =" image_src "href =" <? Php echo "<link rel="image_src" href="<?php echo "http://" . $_SERVER['HTTP_HOST'] . "/" . bmz_cache . "/" ?><?php echo... file image...; ?>" />" can you tell me what to put in (file image)? Thank you very much,
    greetings. : Smile:: Smile:: Smile:

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: help solution image handler with facebook!!!

    Don't use bmz cache just link to your /image/image_name.xxx
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: help solution image handler with facebook!!!

    the problem is that I do not know the link .... because I want to I get the image of the product, but taken from bmz_cache, not "product_image" ... can you tell me how?

  4. #4
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: help solution image handler with facebook!!!

    Quote Originally Posted by onlysteg View Post
    the problem is that I do not know the link .... because I want to I get the image of the product, but taken from bmz_cache, not "product_image" ... can you tell me how?
    Are you still trying to solve Facebook cannot find my image?

    In the product templates $products_image usually contains the entire path to the image (minus the http/https and domain name). Not sure if that helps at all as Facebook expects the og:image tag to be in the html header usually. Although you could probably change the image generation in tpl_modules_main_product.php to be absolute instead of relative (using HTTP_SERVER/HTTPS_SERVER + DIR_WS_CATALOG/DIR_WS_HTTPS_CATALOG + $products_image). This way Facebook would be able to automatically find the image... even though they still prefer you to set it using the meta tag.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  5. #5
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: help solution image handler with facebook!!!

    then the problem is that the image of (product_image) is the one that fits me in mysite / images / ... I want I want to take that in bmz_cache so it displays the preview makes me want to view other images ... I tried to do as you say but it does not work .. : (: (

  6. #6
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: help solution image handler with facebook!!!

    this is the file tpl_modules_main_product_image:
    PHP Code:
    <?php
    /**
     * Module Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_modules_main_product_image.php 3208 2006-03-19 16:48:57Z birdbrain $
     */
    ?>
    <?php 
    require(DIR_WS_MODULES zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?> 


    <div id="productMainImage" class="centeredContent back">
        <span class="image"><a href="<?php echo $products_image_large?>"><?php echo zen_image($products_image_mediumaddslashes($products_name), MEDIUM_IMAGE_WIDTHMEDIUM_IMAGE_HEIGHT); ?><span class="zoom"></span></a></span>
        <?php /*
        <a href="<?php echo $products_image_large; ?>"><?php echo TEXT_CLICK_TO_ENLARGE; ?></span></a>
        */
    ?>

    </div>

  7. #7
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: help solution image handler with facebook!!!

    So you want to grab the src for the small thumbnail image generated by Image Handler?

    I've not worked a ton with Image Handler, so will probably not be much help.... But based on the code in html_output.php I'd look to see how the function "handle_image" works and also look into any observers for "NOTIFY_HANDLE_IMAGE". I'm guessing one of those two will give you a good idea of how to capture the image src for the images generated by Image Handler...
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  8. #8
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: help solution image handler with facebook!!!

    i have try at edit in:
    PHP Code:
    <?php ?>
    <!--eof Product description -->
    <link rel="image_src" href="<?php echo "http://" $_SERVER['HTTP_HOST'] . "/" bmz_cache "/" ?><?php echo NOTIFY_HANDLE_IMAGE?>" />
    but not work...

  9. #9
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: help solution image handler with facebook!!!

    if i write:
    PHP Code:
    <link rel="image_src" href="<?php echo "http://" $_SERVER['HTTP_HOST'] . "/" bmz_cache "/" ?><?php echo . NOTIFY_HANDLE_IMAGE?>" />
    the result is :"url": "http://www.disotech.it/car_audio/autoradio/bmz_cache/7/7cc57bef8d3d2bbec1892d26988bfff3.image.190x106.jpg", but it is wrong because I have to avoid: "/car_audio/autoradio" how do I?

  10. #10
    Join Date
    Dec 2012
    Posts
    16
    Plugin Contributions
    0

    Default Re: help solution image handler with facebook!!!

    anyone has the same problem happened? nobody can help me? I found a site where everything works .... how do I make my site as well?

    website: http://www.holyart.it/it/articoli-re...colorata-20-cm

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Image Handler 2 - Doesn't help with attribute images;
    By E.Rogers in forum General Questions
    Replies: 2
    Last Post: 27 Dec 2013, 06:28 PM
  2. Image display issue for preview with image handler, please help
    By bengalliboy in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 16 May 2010, 06:34 PM
  3. Image Handler - Solution to additional images not showing
    By John Rock in forum All Other Contributions/Addons
    Replies: 8
    Last Post: 30 Apr 2010, 06:20 PM
  4. Need help with Image Handler 2
    By debjkramer in forum General Questions
    Replies: 3
    Last Post: 2 Apr 2008, 10:27 PM
  5. Help with image handler 2
    By brisbanetimeout in forum General Questions
    Replies: 10
    Last Post: 23 Jul 2006, 06:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR