Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18
  1. #11
    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!

  2. #12
    Join Date
    Sep 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    Hi pensive,
    I think I have just noticed the simplest answer to this - and perhaps we have both overlooked this.
    In your flash file - look in the Component Inspector of Flash MX 2004 - and you will see "XML File Path".
    Just set the correct path here eg. the default path would be images/slideshow/images.xml

    and hey presto - your file can now find the XML file no problem!

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

    Default Re: XML Slideshow in define_main_page.php

    markov,

    i wish it were that simple my friend. the XML path field is all you need normally, but the outcome will not work inside ZenCart without modifying the code.

    the problem is making the links relative to the SWF and not the HTML document. without having them all in the same folder, or having to keep them at the root level.

    check out page 9 of the SSP user guide it has a decent explanation.

    but the important part is this:

    To keep your relative links, add the following
    alongside the other existing <param> elements in your HTML document:
    <param name="base" value="." />
    Then add a similar base attribute anywhere inside the <embed> element:
    <embed base="." [rest of embed attributes] />
    This base parameter is a special override forces the Flash Player into making all links
    relative to the SWF, not the HTML document.
    here is the code i used to get the swf to load with the images for the slideshow:

    Code:
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="479" height="303">
      <param name="movie" value="/swfFolder/your.swf" />
      <param name="base" value="." /> 
      <param name="quality" value="high" />
      <embed src="/swfFolder/your.swf" base="." quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="479" height="303"></embed>
    </object>
    although, keep in mind, the code is not w3c compliant yet. i have to rewrite to avoid the embed script. but in the meantime. it works!

    if the way you were doing is giving you any problems, let me know and i'll help out in any way i can...

    take care.

  4. #14
    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


  5. #15
    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.

  6. #16
    Join Date
    Apr 2007
    Posts
    2
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    hope for you all the best

  7. #17
    Join Date
    Jun 2007
    Posts
    6
    Plugin Contributions
    0

    Default Re: XML Slideshow in define_main_page.php

    Hi there,

    I'm new to this tread and have a question.

    Flash slideshow is working fine on my site.

    But how do you get rid of the "press spacebar to activate".

    In my flash header I had no problems with this (I used the swfobject.js)

    But now with this slideshowpro I can't get rid of it.

    Anyone knows ho to do that?

    thanks

  8. #18
    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.

 

 
Page 2 of 2 FirstFirst 12

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