Setting the Path in the Config Files
Posted: 04 Apr 2007, 02:18
by DELETED
DELETED
Posted: 12 Apr 2007, 02:38
by mjau-mjau
Thats a good question - When moving the "container" files (ex. index.php and slideshow.php) out of the main Imagevue/gallery folder, you must change a few paths in these files.
Lets take your example, and modify slideshow.php to run from outside(above) your gallery folder(DShow). Open the file, and see the lines on the respective lines:
<div class="codes">7. include('DShow/include/version.inc.php');
9. require_once( 'DShow/include/Config.class.php');
11. $globalpath='DShow/';
12. $config='DShow/templates/lazyblue/slideshowconfig.ini';
32. $config='templates/lazyblue/slideshowconfig.ini';
40. ... script type="text/javascript" src="DShow/javascript/swfobject_source.js" ...
41. ... script type="text/javascript" src="DShow/javascript/window.js" ...
63. var so = new SWFObject("DShow/slideshow.swf", "slideshow" ...
</div>
As you can see, I have extended the paths in the document with the path to the DShow/ folder which is your main Imagevue gallery folder with all scripts. Why is $config set twice(line 12+32) and why is line 32 without the path to the DShow/ folder?
Now this is the tricky part. The issue here is that the HTML document requires the relative path to the config file, while the swf requires the path to the config file relative from the gallery folder root. By setting the config in line 11, the PHP script gets to execute on lines between 11 and 32, while on line 32, the config parameter is correctly set to the path relative to the gallery folder.
I know this is a little bit clumsy, but the setup is a little intricate. With this method, you will not need to copy any other files to your "remote" location.
Please reply in this post if you have any further questions.
It doesn't work well
Posted: 14 Apr 2007, 15:34
by DELETED
DELETED
Posted: 15 Apr 2007, 03:19
by mjau-mjau
You need to follow the instructions in my previous post. In addition, let me comment your config file:
globalpath does not need to be set in the config file since it is set in the html/php file which outweighs the config file.
All other paths should be relative to the globalpath folder. Therefore, I imagine the config file should/could be like this:
05: globalpath = DShow/
06: path = testimagefolder/
07: directimage = false
28: startimage = startimage.jpg
31: backimage = background.swf
Please include a link to your slideshow once you have done the changes.
It works, but without the right heigt
Posted: 05 May 2007, 15:55
by DELETED
DELETED
Everything works fine
Posted: 08 May 2007, 02:57
by DELETED
DELETED