Custom Page Saying URL not found

Hi,

I am trying to work on a custom page where users with this link can only upload to a set folder. I have named it upload_client and stashed it in our themes folder. When I log in through admin I can see that the themes recognize but if I were to directly go to the URL like yoursite.com/portal/zp-core/upload_client.php it throws a Not Found 404. Where could I start from here?

Tags:

Comments

  • fretzl Administrator, Developer

    Assuming that Zenphoto is installed in the folder portal, try this:
    yoursite.com/portal/upload_client/ (with mod_rewrite)
    or
    yoursite.com/portal/index.php?p=upload_client/ (without mod_rewrite)

  • acrylian Administrator, Developer
    edited August 2021

    My colleague has a small typo ;-) The modrewrite URL would be

    yoursite.com/portal/page/upload_client/

    That is a so called static custom page:
    https://www.zenphoto.org/news/theming-tutorial/

    yoursite.com/portal/zp-core/upload_client.php is in no case a valid frontend url. You should never put or modify anything within zp-core.

    Creating an upload form that follows zenphoto's rights management. To limit users to upload only to one folder (I assume you mean an "album") create a user account and assign the necessary rights to it. Info about the rights on the

    If you add a static custom page to a theme that has the urls yourdomain/page/your-custompage/ (without .php suffix).
    https://www.zenphoto.org/news/theming-tutorial/

    yoursite.com/portal/zp-core/upload_client.php is in no case a valid frontend url. And you should never put anything into zp-core at all.

    Creating an upload form is much more complicated. To limit users to upload only to pne folder (I assume you mean "album") create user accounts and assign the necessary rights to it. https://www.zenphoto.org/news/an-overview-of-zenphoto-users/

  • Hi Acrylian,

    I just want a page where the client can upload a file to a folder called upload that resides in the albums folder. I'm trying to use the jquery upload by blueimp. I still cannot access the upload_client page. I made a test.php page and stuck it in our active theme. yoursite.com/portal/page/test throws a 404 error.

  • acrylian Administrator, Developer
    edited August 2021

    A folder called upload within the albums folder is an album called upload. So you can directly achieve this by doing what I recommend. Of course the user will have to visit the backend for the upload.

    If you want to do this outside of Zenphoto bypassing anything, this would equal FTP upload. You can do that but we cannot really help with that.

    I made a test.php page and stuck it in our active theme.

    You really did make a proper static custom theme page? If not doing that it will not work properly. See the example in the official themes like archive.php. Please read the theming tutorial if you haven't yet.

Sign In or Register to comment.