rename index.php?

I would like to put zenphoto in the root of my site. The only problem is that it obviously already has an index.php. Plus the .htaccess is giving me trouble. Is there a a way to make this work or do I need to keep it in it's own dir and figure out all the paths to my other files (css, includes, etc.)?

So far I like zenphoto. I hope I can get it to do what I want.

Thanks!

Brad

Comments

  • trisweb Administrator
    I'd stick with keeping it in its own directory if it isn't the primary "page" for the top directory. Usually works better.
  • OK. I like that idea. I'm just having trouble wrapping my design around it. I can get the main page of zp to look like I want it but as I get into the albums it breaks out of my design back to the default. Am I not editing the right files? I'm editing the theme files.
  • For my site I must change the index.php to galerie.php, because I had much problems with includes (the old/new problem). Now all works fine, but I must search for all related "index.php" in all zp-core-files and replace it with "galerie.php".

    My Question is:
    When I update next time I must change all files again. Also the next update-precess could be difficult, because the webroot has an existing index.php. But this one is the main file of the webproject, not from zp.
    It would be nice, when I can change the name of the main-file (index.php) and set this as an option. I don't know, how much new problems are there around (maybe the update-process), when you add this feature, but I think it makes zp more comfortable since yet.

    best regards,
    Sven
  • acrylian Administrator, Developer
    Why do you need to change the name? It is clearly not recommended. Why don't you just install zenphoto in a subfolder of it's own as stated above and you should not have any problems with an index.php.
  • First time I install zp in a subfolder. After this I create a new template and had many problems with includes graphics in included files (maybe the subnavi in my project is an included tile). It was for me not possible to include tiles from the root-dir in my new template, because the paths are wrong, when the template was active.

    After a lot of trying I had 2 options:
    1. I copy all files (graphics, included php-tiles) from my project-layout in the themes-folder. I did this - all works fine, but I had the problem to get dublicate content-files, that I must update 2 times.
    2. I install zp in root-dir and rename the index.php from zp into galerie.php (zp is only a part of the website).

    That's why I search for a better resolution. I know, its the wrong way (rename the index.php to galerie.php), but I have no idea, how easier I can resolve this problem yet. That is the reason, why I ask here for an option in zp do handle this problem.

    thanx,
    Sven
  • See the "zenphoto as a plugin" section at http://www.zenphoto.org/2008/01/hacks/
  • Oh thanx ... I'll try this @ weekend.
Sign In or Register to comment.