Custom Guest Page

I am trying to make it so when someone goes to my site they see a custom page. I created a page called guest.php and in the theme options I set the custom index page to my guest page. When I go to the site I see my albums still and not my guest page. How would I go about getting this to work?

Comments

  • You need to do things the other way around. Make change the name of your original index.php page to, say, gallery.php and point the custom index page to it. Then take your guest.php and rename it index.php.
  • Ok I did that but now I have two other problems. When I log in I still get the new index.php page. I would like it to point to the original index.php once it is logged in.

    The other problem is if the user is not logged in and they are on the new index.php, they can still click on the printHomeLink() and get to the original index.php. I tried changing it but it messes up the site and every time it is clicked it goes to the link I put in.
  • For your first problem you will have to add code to index.php that will redirect the user to the correct page is he is logged in.

    Not sure why you have the printHomeLink() call on the index.php page, but if you have it there it will do what it is supposed to do. Maybe you should be password protecting your gallery?
  • Sorry for the delay in getting back to you. If I remove the printHomeLink() from the new index page it removes it from all the other pages. I am not sure of how to add the code that you are speaking of which after login directs it to the correct page. If you would like, you can look at my page at http://pics.bytely.com
  • Maybe some terminology definitions are needed here:

    When I refer to the index page I mean the page created by your theme index.php script. In a normal Zenphoto theme, this is the main gallery level page that displays when a user visits your site by just specifying the base URL.

    Other pages of interest are album pages--the album.php script and image pages--the image.php script.

    So, to change a theme so that there is an introductory index page, you first take the themes original index.php script and rename it to, say, gallery.php. Then you create a new index.php script which defines the page you want to display when a visitor first accesses your site.

    Then you change the custom index page option to `gallery`.

    Anything you make in the new index.php script will show only when people visit the base site. The gallery.php page will be linked to in breadcrumbs, etc. as the album index.

    Two distributed themes work this way--effervescence+ and stopdesing. You should review them for an example of how to do this.
Sign In or Register to comment.