Page as a homepage (zpGalleriffic theme)

JimL Member
I created a "published" page to use as my initial "home page" and while I'm logged into my site as admin, it goes to that page. Yet when I test it as a "member" that does not have admin rights, it defaults to the gallery page (index.php I guess). I changed the gallery index page link to gallery vs index.

What do I need to do to make the published page the home page for everyone that logs in regardless of rights. thnks

Comments

  • You will probably have to explain exactly what you do to cause this page to be your initial home page. BTW, when you say "page" do you mean a Zenpage Page or just a particular WEB page?
  • JimL Member
    It's a zenpage page, although I'm using the zpgalleriffic theme. I created the page under the page tab. And I have to be honest, I don't know exactly what I did to make it default to it when I logon. I know I went into the options and plugins and selected/deselected a few things. As I may have mentioned before, I'm not very knowlegeble about writing script and this is my first exposure to zenphoto, although I do like it very much.
  • acrylian Administrator, Developer
    Since the zpgallerific theme is not an official one we don't know what it how does.

    The official Zenpage theme's functionality requires an unpublished Zenpage page to be set as a home page (to avoid a duplicate appearing in the page menu naturally).
  • JimL Member
    I even tried using an unpublished page as the home page and its the same. Admin login, it works, no admin rights, defaults to gallery. I realize you don't support "unofficial" themes, I just thought that since it's a compatible theme, you may have an idea why it doesn't work. Perhaps I'll try and go to the author. thanks anyway.

    I don't know if this should be in another post, but since I want this to be my home page, can anyone help me by writing a script for me to put in the codeblock of a page. In addtition to the latest news, I want to show the latest photos, by date uploaded, description and the user who uploaded the photo. I've seen the functions for each of these, but don't know how to combine them to put them in the codeblock. Appreciate any help.
  • acrylian Administrator, Developer
    Yes, it is marked as compatible but we really don't test if really everything works. It might do things different or not add things we do with the officials.

    I just tried and I can't reproduce this with the current Zenpage theme from the svn/nightly. I can set any unpublished page as a home page logged in or logged out. Please try with the Zenpage theme and if it works there it is the theme. I have changed the topic title so its developer spots it as he occasionally visits the forum to my knowledge.

    Regarding codeblocks: You have to add the codeblock function with a call to the number of the codeblock to your theme's pages.php. On hte backend you can then add normal php functions like `<?php function to call(); ?>`.

    In addtition to the latest news, I want to show the latest photos, by date uploaded, description and the user who uploaded the photo.
    We have functions for each of that, for the news from the Zenpage plugin and for images from the image_album_statistics plugin. If you want to combine these read the documentation of `printLatestNews()`. However, no function will show you what user uploaded as Zenphoto does not track that.
  • I try, it's works me. I use a mixed of zpgalleriffic theme and the Zenpage theme.
    Maybe you don't use the right option.
    I made a print screen of the option to validate in option-->theme:
    `http://www.latitudes-photos.com/_Explain/option-Zp.jpg`

    Hope this help
    Laurent
  • JimL Member
    Laurent, I had the correct options as you indicated. thanks anyway.

    Acrylian, I changed the theme back to zenpage and still get the same results. My "member" login has all rights except Admin, Options & Themes, yet it still defaults to the gallery instead of the unpublished page, while mine (all rights) goes to my unpublished page. If I give the member admin rights, then it goes to the unpublished page. Not sure what else I am missing here.

    Here are the options that I have set in the theme tab

    Albums per page: 12
    Thumbnails per page: 15
    Thumb size: 100
    Crop thumbnails: checked
    Crop width 85 Crop height 85
    Gray scale conversion: none checked
    Image size: 595 longest side
    Gallery index page link: "none"

    Allow search "checked"
    Homepage: events (this is my unpublished page)
    News on index page "unchecked"
    Use Colorbox "checked"
    Use custom menu "checked"
    Use standard contact page "checked"

    I also noticed that when I went back to the zenpage theme the custom menu isnt showing up in the member login. Like I said, it seems giving admin rights makes it work, but I don't want them to have admin rights if I can avoid it.
  • acrylian Administrator, Developer
    Sorry, I really can't reproduce that: See http://zenphoto.maltem.de/ (1.3 svn5687)
    The setting you make is of course not dependent on the user viewing.

    I don't know what you mean with the custom menu/menu manager is not showing in the member menu.The menu manager plugin does not require admin rights.

    I can only sugggest to try the nightly build at this point.
  • Simplest solutions is to put this inside index.php of selected theme:

    <?php

    header( 'Location: http://www.yoururl.com' ) ;

    ?>
  • acrylian Administrator, Developer
    That will redirect to another page and is not really the same, is it?
  • Adn without following that with `exit();` you will get the rest of the script where it resides run as well.
Sign In or Register to comment.