Results 1 to 10 of 18

Hybrid View

  1. #1
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default XML Slideshow in define_main_page.php

    Hey everyone,

    I'm at my wits end here...

    I've created a slideshow using Slideshow Pro upon the client's request.
    And I've done plenty of these before, so its all gone smoothly. except!! after I embed the flash file into the define_main_page.html it will not load the images, or the XML (I can't tell... all I know is it won't load)

    here is the link for the site (obviously still in development)
    i also created a blank page and embedded it in there... works fine. If I go directly to the link of the swf. it works fine.

    how come when i embed it into the main page it won't connect?

    any ideas at all would be very, very appreciated.


    Thank you so much in advance.

  2. #2
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: XML Slideshow in define_main_page.php

    how are you linking to the images in your XML file? are you defining them as just the image file name, or are you putting flashGallery/ before the image? Because of the way includes work.. the flash file is looking for all the images in the root folder of the store.. not in the flashGallery folder. So.. the best solution is to change the XML file and prefix each image name with "flashGallery/" in order for it to load properly

  3. #3
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    Thanks for checking it out...

    I was linking them relative

    Code:
    <gallery> 
     <album title="Shop Dari" 
    lgPath="gallery/album1/large/" 
    tnPath="gallery/album1/thumbs/" > 
      <img src="001.jpg" /> 
      <img src="002.jpg" /> 
      <img src="003.jpg" /> 
      <img src="004.jpg" /> 
      <img src="005.jpg" /> 
      <img src="006.jpg" />
      <img src="007.jpg" /> 
      <img src="008.jpg" /> 
      <img src="009.jpg" />
      <img src="010.jpg" /> 
      <img src="011.jpg" /> 
     </album> 
    </gallery>
    I think you might be onto something here... I'll keep you posted while i'm trying to figure this out...

    thanks again so much.

  4. #4
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    first off, I just found an amazing way to debug flash files that are online... this is the link that explains how... as I know it will be definitely be helpful to someone out there...

    as far as the linking problem. it tells me that the swf can't find the referenced XML file. however, it finds it when i put it on any other page outside of ZenCart.
    so the link seems good. (its in the same folder as the swf, so pretty hard to mess up) and the absolute path won't work either.

    anything that ZenCart could be effecting that i'm missing?

    thanks...

  5. #5
    Join Date
    May 2006
    Location
    Texas
    Posts
    565
    Plugin Contributions
    4

    Default Re: XML Slideshow in define_main_page.php

    don't think its a part of zencart why its not working.. had similar problems on a clients website which is non-zencart

    Try this: move the XML file to the root of your store (make a copy of the XML). In the one that you just put in the root, change the values to reflect the new path. For example, if the pictures were originally located in a folder called images/flash/gallery, but the XML only says the filename.. put images/flash/gallery in front of the file names.

    I can't remember exactly how we fixed the problem on that site.. we may have gone into the SWF and changed the location of the XML file in relation to the gallery. Not 100% sure

    A cheap workaround would be to have an IFRAME that calls a simple HTML page to show the SWF.. but i really don't suggest doing that because its not worth it :)

    Is the gallery an open source gallery? if so, could you PM me details on where to download it? itll help in the debugging :)

    //edit: nevermind.. found it on google.. $25 for it

  6. #6
    Join Date
    May 2006
    Posts
    313
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    man, i can't thank you enough for your advice on this...

    so after debugging. i'm pretty sure that its not the location of the images. but its the location of the XML file relative to the swf. the image location could very well be a problem afterwards, but first, the debugger says it can't find the XML.

    inside the flash component there is a field for XML file location. since the XML file and the swf are in the same folder. I have it as location - "images.xml"

    as i mentioned, the swf works fine on any html page. as well as, flash player, local, and online. and debug is cool with all of it.

    but if i put it anywhere in ZenCart (including EZpages) it says it can't find the XML file in the online debugger.

    I actually have tried moving the XML file to all locations on the site (root/site-root etc.) with no change...

    hope some of that helps...

    here is link to a zip with the XML, SWF, and IMAGES. here

 

 

Similar Threads

  1. XML Flash Slideshow Banner in Header?
    By mattymaxx in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 25 Jul 2010, 10:32 PM
  2. install xml image slideshow
    By dilbertdesk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 3 Mar 2010, 12:40 AM
  3. want to add php code in define_main_page.php
    By parin123 in forum General Questions
    Replies: 1
    Last Post: 2 Jul 2009, 04:27 PM
  4. Replies: 0
    Last Post: 21 Jan 2009, 09:49 PM

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