Member
Member
enj   2008-06-04, 15:12
#1

OK...here we go.I love this gallery....in fact...I dumped the menalto gallery for this one
My issue is that

My zenphoto is installed in the root of my directory. so when I go to "http://mysite" it loads the default index.php for zenphoto.

I created a custom page called "start.php" and thought how cool it would be to load my start.php file by default rather than the index.php. This way my photos are not the first thing to show up.

I then edited my default site file and added in the lines:

[code]
Options FollowSymLinks
AllowOverride None
DirectoryIndex start.php
[/code]

Ok...so now that Apache2 is told to not load index.php though start.php by default one would think my issue is resolved......

now I have more issues....when you go to "http://mysite" I get an error
Zenphoto Error: the requested object was not found. Please go back and try again.

If I type in "http://mysite/start.php" the page loads with the theme without any errors

How can I make it to where Apache2 loads the custom file I specified instead of generating the error?

Member
Member
jsumners   2008-06-04, 15:28
#2

You will have to provide some more details, and possibly a link to the site. I'm having a hard time following what you are trying to do here. What is "start.php"? Is it just a splash page? Does it somehow interface with ZP?

Administrator
Administrator
acrylian   2008-06-04, 15:29
#3

The correct zenphoto path for a "custom page" (one that should use your zenphoto theme) is:
zenphoto/index.php?p=pagetitle (non mod_rewrite)
or
zenphoto/page/pagetitle (mod_rewrite)
http://www.zenphoto.org/2008/05/theming-tutorial/

Member
Member
enj   2008-06-04, 15:44
#4

Acrylian....I will elaborate for you.
I installed zenphoto into the root of my site.....
my site is /media/disk/www
all the zenphoto folders and files reside there. so when people go to "enj.homelinux.com" they are automatically pulling up the index.php of zenphoto. I am creating custom page though I am trying to find out if there is a way to create a custom page and force that custom page to load rather than index.php....in my case....home.php

this is why I was in the config for apache.....changing what file loads by default in my hosts file.
I changed it to reflect home.php though when I navigate to enj.homelinux.com I get the error Zenphoto Error: the requested object was not found. Please go back and try again.

Is what I am trying to do at all possible? Is this something that has to be set up in the zenphoto .htaccess?

Administrator
Administrator
acrylian   2008-06-04, 17:22
#5

Actually I think I had unterstood what you are trying to do. That's why I posted the correct paths to "custom pages" within zenphoto themes.

I believe nobody has tried that before since it's simply not the "normal" way zenphoto works.I just would think that you have to change the zp htaccess a little.

May I ask why you not just remove the album loop from index.php to use it? you could have "faked" for example the index with a top level album containing subalbums on album.php, too.

Member
Member
sbillard   2008-06-04, 23:27
#6

So, you want your page to load when a user first visits your site. Is there a link on this page to the zenphoto index.php?

Why don't you just install zenphoto in a subfolder. Then you can have your startup page called indes.php and it will load. You can link from it to the zenphoto gallery which will then be .../subfolder/index.php

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.