Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 31
  1. #21
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Why no support on this site - Sidebox image size question - need help please

    Thinking that this MAY be related to the problem we were writing about in the other thread last night to which no one would respond

    This is our setup

    We have the two sites running on a Windows Box with MYSQL

    The problem we were seeing at 1st as that the image was not showing up at all as when checking the image it was calling it from the jlaforums.com domain instead of the jlaenterprises.net domain

    All the other links were being called correctly pointing to www.jlaenterprises.net

    To solve this we created a virtual directory in IIS for the jlaforums.com site that pointed to our zen cart directory on the server

    once we did that, the images started appearing but under www.jlaforums.com/jladirect/images

    jladirect is the name of the virtual directory we created.

    In the config file we added jladirect just before /images

    We used a separate config file for these boxes

  2. #22
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Why no support on this site - Sidebox image size question - need help please

    Quote Originally Posted by JLA
    // $Id: tpl_whats_new.php,v 1.1.2.2 2005/05/21 21:05:42 tim Exp $
    You're using the ImageHandler mod, and attempting to run it from a remote call?
    Sorry ... I just may have to pass the buck here.
    Take out the image-handler and then maybe things will work... since, as I mentioned, making the change from constants to specific values works fine on a fresh untouched install.


    Quote Originally Posted by JLA
    Thinking that this MAY be related to the problem we were writing about in the other thread last night to which no one would respond
    And you wonder why anybody would respond when you're talking about a complex configuration as you've described?

    Sounds like you've got enough hacked changes that it's gonna be an interesting journey to track down what's causing this. Esp on older code.
    Hopefully you find a simple fix for it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #23
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Why no support on this site - Sidebox image size question - need help please

    Ok, I might be able to make this simple

    Lets back up

    The original problem we had with the code you provided for using boxes outside of zen was doing this

    No image would appear though the rest of the items and an image placeholder would show

    The product links and new products link pointed to our zen domain but the image was pointing to jlaforums.com/images instead of jlaenterprises.net/images

    This is due to the config file not allowing to specify the domain but only /images and it just takes the domain you are operating in and pops that in

    how can you change the config file we are using (we copied it and using a separate one for this test) to say hey ...... look at http://www.jlaenterprises.net/images instead of just /images and pop in the domain being called from?

  4. #24
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Why no support on this site - Sidebox image size question - need help please

    The config file originally had this

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');


    define('DIR_WS_IMAGES', '/images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');




    We mapped a virtual directory in IIS for the nonzen domain called jladirect and pointed it to the zen directory on the server and changed the config file to this

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');


    define('DIR_WS_IMAGES', 'jladirect/images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');


    So the ? would be...how do you change this to tell it to point to www.jlaenterprises.net/images when calling instead of /images and pop in the domain from the domain that it is being called from as it was doing originally. This would allow us to get rid of the virtual directory and probably solve the image size problem.

  5. #25
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Why no support on this site - Sidebox image size question - need help please

    Would someone please be able to provide some further help here?

    Perhaps Linda or someone more familar with the Zen Code?

    Thank You

  6. #26
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,683
    Plugin Contributions
    6

    Default Re: Why no support on this site - Sidebox image size question - need help please

    As you are not using just Zen Cart code and it is not an up to date version of Zen Cart, but rather an old, out of date version plus an add-on that could be causing this, perhaps you should post a Commercial Help Wanted ...

    It is going to take more than guessing and hands on review of the site would be faster and easier to do ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #27
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Why no support on this site - Sidebox image size question - need help please

    Hi Linda - thanks for responding

    Actually, we are just using Zen Cart code (with image handler) and the code provided by Dr Byte to display sideboxes on external pages.

    The only code on the external page is just the snip that calls the one file that was created by Dr Byte placed in the Zen Directory. The rest is the Zen Cart code and even do to the version of the Zen files - there should be no reason why this portion of our questions should not have a fairly simple (yet not known to us) answer

    So, I guess I will try to back this up and lets forget about all the other parts of this problem that might be affected by what you were suggesting.

    The issue is this

    When the box was called from the jlaforums site using the snip and file provided by Dr. Byte - it would call the box data with no problem

    1. The data would show
    2. The links to the product and new products were correct pointing to the correct pages on the jlaenterprises.net domain

    There was one problem though. The images were not showing

    1. When right clicking on the image placeholder, it was showing jlaforums/images... instead of jlaenterprises.net/images...

    When looking at the config file in Zen, we found that this is the place the code is taking direction from to call images for the side box

    // NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
    // * DIR_WS_* = Webserver directories (virtual/URL)
    // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
    define('DIR_WS_CATALOG', '/');


    define('DIR_WS_IMAGES', '/images/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
    define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
    define('DIR_WS_BLOCKS', DIR_WS_INCLUDES . 'blocks/');
    define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

    So the only question here is how do you tell this portion of the config file in Zen

    define('DIR_WS_IMAGES', '/images/');

    and instead when pulling the image of just popping in the domain from where the code is being called from to be able to manually specify that you need to look for images at jlaenterprises.net/images

    We tried changing this line to

    define('DIR_WS_IMAGES', 'jlaenterprises.net/images/');

    and the result when right clicking on the picture was showing it was attempting to look for the pictures at

    http://www.jlaforums.comjlaenterprises.net/images...

    If you can help us out with this answer, I think it might solve all the other problems we were speaking of regardless of the image handler mod, etc..

    P.S. All our private messages were deleted from our previous conversations prior to you changing your forums. So I sent you an e-mail two days ago for an upgrade quote to which I haven't heard back from you.

    Thank You for your help

  8. #28
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,683
    Plugin Contributions
    6

    Default Re: Why no support on this site - Sidebox image size question - need help please

    I will try to get back to you tonight about the upgrade ... not enough hours in the day ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #29
    Join Date
    Jan 2004
    Posts
    58,249
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: Why no support on this site - Sidebox image size question - need help please

    The use of my code to call sidebox display from outside Zen Cart is dependent on working with resources entirely within the same domain as your Zen Cart shop.

    If you wish to use it outside that context, you will need to alter the code, mostly in includes/functions/html_output.php, which draws the image using zen_image(), so that it looks for the image at the physical location specified by your internal server share in order to read the physical file and determine its contents, dimensions, etc, and then alter the output portion of the same function so that it grabs the real image from yet another domain.

    The DIR_WS_IMAGES constant will need to be adjusted to something like:
    define('DIR_WS_IMAGES', 'http://yourothersite.com/images/');

    and then you'll need to add another constant for the physical share/folder path available to the function, and have it use that for locating and reading the file.

    Oh, and, you'll need to make sure you don't bust it for your regular functionality, outside the sidebox.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #30
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Why no support on this site - Sidebox image size question - need help please

    Quote Originally Posted by DrByte
    The use of my code to call sidebox display from outside Zen Cart is dependent on working with resources entirely within the same domain as your Zen Cart shop.

    If you wish to use it outside that context, you will need to alter the code, mostly in includes/functions/html_output.php, which draws the image using zen_image(), so that it looks for the image at the physical location specified by your internal server share in order to read the physical file and determine its contents, dimensions, etc, and then alter the output portion of the same function so that it grabs the real image from yet another domain.

    The DIR_WS_IMAGES constant will need to be adjusted to something like:
    define('DIR_WS_IMAGES', 'http://yourothersite.com/images/');

    and then you'll need to add another constant for the physical share/folder path available to the function, and have it use that for locating and reading the file.

    Oh, and, you'll need to make sure you don't bust it for your regular functionality, outside the sidebox.
    What we did not to bust the functionality is to make copies of the referenced files (app top/bottom - config, etc) and reference those files in the appropriate places.

    This way these boxes are working independently from the main installation of Zen.

    I just tried adding the http://www.jlaenterprises.net to the /images and that fixed that one issue

    Could have swore I did that before ... so that portion is worked. I will look at the html files and see what it is you are talking about.


    Thanks

 

 
Page 3 of 4 FirstFirst 1234 LastLast

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
  •