Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Hybrid View

  1. #1
    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

  2. #2
    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

  3. #3
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: XML Slideshow in define_main_page.php

    Had tried your files but the Flash show up in my local tests.
    Only saved all the following to the root.
    /gallery/*.*/*.*/*.*
    /dari.swf
    /images.xml

    But your site had changed the path, and the swf pointed to:
    flashGallery

    And the following have not been changed accordingly.
    Code:
    <gallery> 
     <album title="Shop Dari" 
    lgPath="gallery/album1/large/" 
    tnPath="gallery/album1/thumbs/" > 
      <img src="001.jpg" /> 
       .....
      <img src="011.jpg" /> 
     </album> 
    </gallery>

    To confirm that, in my test also swapping the locations of the files, it still work if make changes to both of the paths and the relative paths.
    e.g.
    /flashGallery/album1/large/*.*
    /flashGallery/dari.swf
    /images.xml

    Code:
    <gallery> 
     <album title="Shop Dari" 
    lgPath="flashGallery/album1/large/" 
    tnPath="flashGallery/album1/thumbs/" > 
      <img src="001.jpg" /> 
       .....
      <img src="011.jpg" /> 
     </album> 
    </gallery>
    A New Starter again

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

    Default Re: XML Slideshow in define_main_page.php

    I am eternally grateful Samad, and seethrou.

    It is such a reminder of how lucky we are to have this kind of a forum. As I had posted this on the Slideshow forum as well, where no could even bother to view the post....!

    we are so lucky.


    I have solved the issue. but i never would have gotten there without you guys.

    because the html is auto generated. it could only see a relative link from the position of the html_includes. even though it could correctly link the swf. the link from the swf was still affected... absolutes will not work in this situation either.. without additional js.

    so: the answer was adding these two things to the html, overriding the relative base:
    Code:
    <param name="base" value="." /> 
    <embed base="." </embed>
    hope that helps someone in the future!

    thanks again, guys.

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

    Default Re: XML Slideshow in define_main_page.php

    awesome.. glad you got it figured out :)

  6. #6
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    Hi pensive612,
    This is a post to clarify things for others that hit this problem -

    I think seethrou has hit the nail on the head.
    Basically to make SlideshowPro work correctly:
    Put your xml file in the root of zen (where your index.php file is)
    Your xml should be like so:

    <gallery>
    <album title="My Title" description="My Project"
    lgPath="images/YOURFOLDERNAME/gallery/album1/large/">
    tnPath="images/YOURFOLDERNAME/gallery/album1/thumbs/"
    <img src="yourPictureName.jpg" caption="Your Caption" />
    </album>
    </gallery>

    Hence the lgPath and tnPath need relative links
    BUT the img src just needs the picture name.

    The html code for the flash is as follows (note relative links in bold)


    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="360" height="400" id="slideshow" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="images/YOURFOLDERNAME/slideshow.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <embed src="images/YOURFOLDERNAME/slideshow.swf" quality="high" bgcolor="#ffffff" width="360" height="400" name="slideshow" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>

    As fas as I can see - you don't need to alter the HTML to add
    <param name="base" value="." />
    <embed base="." </embed>

    The reason I can say this is because I have just created all of the above in a SlideshowPro project and it is all functioning correctly. I hope this helps someone in the future.

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

    Default Re: XML Slideshow in define_main_page.php

    Good call Markov. thanks for the detailed explanation. it made perfect sense.

    I think what mine did, allowed you to not need the XML file in the root directory.

    both solutions seem to work perfectly...


    thanks again for the update.

    now, onto getting them to validate!

  8. #8
    Join Date
    May 2009
    Location
    Kansas
    Posts
    39
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    After two days of beating my head against the wall I found this thread.

    thank you all so much! I can sleep now.

  9. #9
    Join Date
    Apr 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    Quote Originally Posted by pensive612 View Post
    I am eternally grateful Samad, and seethrou.

    It is such a reminder of how lucky we are to have this kind of a forum. As I had posted this on the Slideshow forum as well, where no could even bother to view the post....!

    we are so lucky.


    I have solved the issue. but i never would have gotten there without you guys.

    because the html is auto generated. it could only see a relative link from the position of the html_includes. even though it could correctly link the swf. the link from the swf was still affected... absolutes will not work in this situation either.. without additional js.

    so: the answer was adding these two things to the html, overriding the relative base:
    Code:
    <param name="base" value="." /> 
    <embed base="." </embed>
    hope that helps someone in the future!

    thanks again, guys.
    Yes its help me man
    i spend more then 3 days trying to solve this problem
    im so thanxful to you
    many many many thanx to you
    god luck and may god bless you


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

    Default Re: XML Slideshow in define_main_page.php

    No problem at all, drma. Good luck with everything in the future...

    Take care.

 

 
Page 1 of 2 12 LastLast

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

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