ZenphotoCMS Forum
How to load an swf on an album page? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: How to load an swf on an album page? (/thread-7917.html)



How to load an swf on an album page? - puregraphx - 2010-12-01

I'm building this website where I have an swf file in the root. ZP is installed in root/zenphoto. The swf loads in all root pages, but not on the index.php or album.php file inside the themes folder. I am using relative paths.

does not work: http://www.dewaele-tegelkachels.be/zenphoto/themes/puregraphx/isolatie.php
does work: http://www.dewaele-tegelkachels.be/isolatie.php

This is exactly the same file.




How to load an swf on an album page? - acrylian - 2010-12-01

Maybe you should tell a few more info what you are actually trying to do and what this isolatie.php file actually does. The not working link is in any case not a Zenphoto link and therefore not even in Zenphoto context. I suggest to read the theming tutorial.




How to load an swf on an album page? - puregraphx - 2010-12-01

The problem is with the flash file which loads on the one page but not on the other, even though those 2 pages are identical. It's like a relative link to "/header_flash.swf" inside a ZP album.php page doesn't seem to get "out" of the ZP root, to reach the main website root.




How to load an swf on an album page? - acrylian - 2010-12-02

Since you installed Zenphoto in a folder "zenphoto" /header_flash.swf of course does not reach your website root as that would be the root of the Zenphoto install naturally...