phpWebSite Manual
phpWebSite Manual

phpWebSite Resources

Mods

3rd Party Mods

Who's Online
There are currently, 7 guest(s) and 0 member(s) that are online.
You are an Anonymous user.
You can register for free by clicking here
No Members are currently logged in.

Photo Albums

Photo Albums

The Photo Albums Module

Getting Started

Steven Levin

First navigate to the administrative side of the Photo Album module. It can be found under the Site Content Tab of your Control Panel. The link that says Photo Albums and has an icon of a camera next to it.


  • Click on the textual link or the icon to continue.


Listing Albums

When you first enter the Photo Album you will see a listing of all the Photo Albums which are currently in the database (Note that Figure 1 does not yet have an album). From this list you can go to view each individual album.



In this album view you can see thumbnail images of all the photos in the album. At the top of the page with this list are two links. The first link is for listing albums: it will always bring you back to this list. The other link says New Album and will take you to the form you need to add a new photo album to the database.


Creating a New Album

When creating a new Photo Album there are five fields to fill out but only one of them is actually required (See Figure 2).




  1. The Name of the album is the first field and the only required one. The name represents this album in the listing of all the photo albums and throughout phpWebSite.

  2. The second field is Short: it allows you to add a short description of your album. This may be used in something like a search result.

  3. The next option (Activity) is to choose whether or not you want the album to be viewable by the public. Selecting Visible makes it viewable by your users and the public alike. Selecting Hidden keeps it out of the view of the public and only administrators with access can see the album.

  4. Next you can select a Category for the album to go in. This is very useful if you would like the album to show up as related data. If you do not understand categories and wish to find out more, please refer to the chapter about the FatCat Categorizer.

  5. Finally you can add an Extended description of your photo album. This is shown when listing all your albums so visitors can read about them. A wysiwyg html editor is provided for adding very basic html tags to the description.


Adding, Editing or Deleting Photos from an Album





When you are viewing an album for the first time and the album has no photos associated with it, you have two links to add a new photo. The first is under the message: No photos were found for this album; and it says Add a Photo. The second is a the top of the page next to the List Albums link and it says New Photo. The New Photo link will always be present when you are viewing an album. Both of these links take you to the same form to add a new photo.


  1. Two things are required when adding a new photo to the database. You must upload an image file and also provide a short description for that image. The short description is needed to make the html valid.


    • Upload your image by clicking the Browse button and selecting the file you want from your computer.

  2. After that you can choose whether or not the photo is publicly viewable (under Activity) which is much like the Activity for the album.

  3. Finally, you can add an Extended description to the album which will be displayed when the individual photo is being viewed. A wysiwyg is provided here for your convenience.





Editing a photo allows you to update the information entered when adding that photo to the database. You can also remove the photo and add a new one if it better fits the album or description.


  1. You can get to editing a photo by clicking on the Edit link under its thumbnail in the main album view or by clicking the Edit link when viewing an individual photo.

  2. To upload a new image, you must first remove the old one by checking the box Remove Image under the photo and then clicking Save Photo. Then click the browse button and select a new image off your computer. Click Save Photo and you are done.

  3. You can also edit any of the textual data by just modifying it in the form and then clicking the Save Photo button. You will get a message saying the photo was successfully saved.






The are two places in the photo album where you can delete photos. One is in the main album view under each thumbnail is a Delete link. Also when viewing a specific photo there is a Delete link at the top of the page. After clicking the delete link it will take you to a Yes/No confirmation to make sure you want to delete the photo entirely from the album. The photo will also display below for confirmation. Click Yes to remove the photo and No to cancel the deletion process.


Album Settings

The settings for an album are found under the main album view. Next to the List Albums and New Photo links is a Settings link. These settings are the same information you filled out when creating a new album. It is helpful to be able to get to this so you can possibly update the description of your album or hide it from the public while you add new photos to it. Just click the Save Album submit button to save any changes you may have made.


Navigating Albums

Navigating albums is easy. There are two navigation toolbars at the top and bottom of a main album view. The main album view is split up into pages. The limits on this toolbar control how many thumbnails to show per page. There are arrows (<< and >>) provided for moving back and forth from page to page. Also, page links are there to help jump around from page to page. In order to view a photo all you must do is click on the thumbnail image. This will take you to a big view of that one specific image. Located at the top and bottom of the image will be <<Prev and Next>> links to page through each individual photo. At any time you can get back to the main album view by clicking the Back to Album link at the top of the page.



Created on 07/26/2003 12:35 AM by RobertK
Updated on 04/11/2004 10:01 PM by RobertK
 Printable Version

Comments - Please Log In to make a comment
The comments are owned by the poster. We are not responsible for its content.
Albums
Posted on: 09/21/2003 12:51 AM   By: Anonymous
How do you transfer a photo from one album to another album?

Re: Albums
Posted on: 02/28/2005 01:03 AM   By: flyinverted
How do you delete a Photo Album ???..... Using 10.0
I can hide an album, but that's not the same as delete.
Managing albums
Posted on: 10/07/2003 08:22 AM   By: Anonymous
1) What sticky means?
2) Is there a way to create sub-albums?
I mean: I would like to create sub-categories in an album
3) Is there a way to fix photos in a specified order?
I mean : I would like to arrange photos in a certain order that should not be loose adding or modifing
Photos won't upload
Posted on: 11/06/2003 01:20 AM   By: Anonymous
I am new to all this stuff, including my os (Gentoo). What settings do i need to allow people to upload files to my server. In fact, I can't 'upload' photo to my photo album. It says it works but no photo is poster!

Any suggestions?
I have an error while uploading large size image...
Posted on: 01/16/2004 04:58 AM   By: Anonymous
I got this error while uploading a image that is about 592KB.
===============================
Fatal error: Allowed memory size of 16777216 bytes exhausted at (null):0 (tried to allocate 10208 bytes) in /home/lesroches/www/LR4/core/File.php on line 315

Fatal error: Allowed memory size of 16777216 bytes exhausted at (null):0 (tried to allocate 0 bytes) in Unknown on line 0

Fatal error: Allowed memory size of 16777216 bytes exhausted at (null):0 (tried to allocate 132 bytes) in Unknown on line 0
=============================

Where can i change the file size limits ?
Re: I have an error while uploading large size image...
Posted on: 05/11/2004 05:55 PM   By: Anonymous
well, im new to this , but I remeber setting a memory limit in php.ini to 16M during installation. Could it be that limit that causes the problem?
Re: I have an error while uploading large size image...
Posted on: 08/10/2004 02:41 PM   By: Anonymous
You would need to increase your memory limit to more than 16M. The message is saying that you dont' have enough memory allocated to php script.

I have mine at 32M
Re: I have an error while uploading large size image...
Posted on: 08/10/2004 02:42 PM   By: Anonymous
I didn't say that this is changed in php.ini file which is usually located in /etc directory on linux.

Re: I have an error while uploading large size image...
Posted on: 09/29/2004 09:39 AM   By: Anonymous
Set the max_file_size in .htaccess. Upload it to the relevant directory and voila!

You can also set max_execuction_time in case that causes future problems.

Rgds
Alex
http://www.intrepid-developments.co.uk
Re: I have an error while uploading large size image...
Posted on: 02/24/2005 05:05 PM   By: Anonymous
I had to change the line "LimitRequestBody" in /etc/httpd/conf.d/php.conf to a larger value. Now I can upload larger files.
Re: I have an error while uploading large size image...
Posted on: 10/07/2005 09:20 PM   By: community
As a guideline, you should never try to upload any image larger than 50-60k in size, which is the size of a standard size 6x4 photo, for 2 reasons:
1. Downloading, viewing on the website will be very slow, and impact your download limit (if you have one)
2. Most photo album software will not work properly with images larger than this e.g. slideshows

ACDSee 8 is a brilliant photo management product which will downsize a photo to whatever size yoy need
Album View Image
Posted on: 01/20/2004 09:38 PM   By: DarkIcon
How do I change which image displays in the Album list. Right now, it seems as if the latest or most recent image displays. I want the first or oldest image to display instead. What particular variable do I need to tweak to make that happen?
Download Protection?
Posted on: 06/15/2004 06:20 PM   By: sonnyboy
Has anyone implemented some sort of download protection for photo album images? Maybe something as simple as intercepting mouseover clicks, or some such. Or are there other photo album programs which offer this and can be plugged into phpwebsite?

mjb.
Re: Download Protection?
Posted on: 07/10/2004 12:50 PM   By: Anonymous
I've noticed that when you select a photo to upload, it will upload the photo but not correctly. The thumbnail is generated nicely, but when you click on the thumbnail, you only get a no-picture-available box ...

If you go check with FTP, you will see that in fact there's actually a photo where it should be, but that the file itself is corrupt (?).
What I do, is manually upload the exact same photo to that location ... after that it works. Pitty about the double upload though.

hih
Re: Download Protection?
Posted on: 09/07/2005 09:55 AM   By: Anonymous
There is no true method of protecting images. Since the images will always be downloaded to the internet cache, they can just be copied from there. By disabling mouse over saving, you will only deture the most amature of users using a few different browsers that support such options.
Album only visible for registred users and administrator!
Posted on: 07/29/2004 04:24 PM   By: Anonymous
Hi,

How do you make a photo album only visible for registrede users, and not for the public (anonymous users)?
Re: Album only visible for registred users and administrator!
Posted on: 12/27/2004 07:28 AM   By: Anonymous
Hi, I've done this using the "restricted access hack" that limits which theme variables are visible to different kinds of users.

There's a link to more info on using this hack on the home page.

hope this helps.



Thumbnails are black...
Posted on: 09/22/2004 10:07 AM   By: dand
Why are my thumbnails black?

And when I click on it the photo appears fine.

Any help would be appreciated. Thanks!
Re: Thumbnails are black...
Posted on: 09/29/2004 09:45 AM   By: Anonymous
Are you using the correct version of the photo compression/thumbnail creator? Im sorry, but I cant quite recall what its callled.... its somethign like GD(?)

Anyhow, find out what its called and check the version.

QUESTION

Does anyone know, before I dive into the code proper, how to amend the display of the thumbnails within the albunm gallery. I want to display 30 thumbnails in a DIV and let my users scroll across. Users will click on a thumb to pop up in the upper part of my web page.

I know this can be done, but if someone out there know's where I should be looking and modifying that would be a great help.


Rgds
Alex.

www.intrepid-developments.co.uk
Feature requests?
Posted on: 11/13/2004 11:20 PM   By: Anonymous
Where is the mods "home page" so that we may submit bugs and post "feature requests"? I assume sourceforge, but that site is a maze :)
Problem with uploading Pictures
Posted on: 11/28/2004 06:27 PM   By: Anonymous
Greetings,

I'm new to phpWS and I'm trying the PhotoAlbum module. Initially I had a problem creating a new album. Based on a previous post, I built a couple directories labled '1', '2' and '3' that have corrected that issue.

However, now I have an issue when I try to upload a photo. I'm now getting an

Error
There was a problem uploading the specified image.

message when I try to upload photos to this new album.

Any ideas??

Mark
Re: Problem with uploading Pictures
Posted on: 12/16/2004 10:31 PM   By: Anonymous
I get the exact same problem, although I didn't see any post about how to create the directories '1' '2' etc.. etc.. so I read the last problem post that briefly said to create them. That helped me get the "make photo album" feature to work, but now I get:

There was a problem uploading the specified image.

Any ideas on how to fix this? I see other posts with the same problem, but no solution.
Re: Problem with uploading Pictures
Posted on: 01/15/2005 04:06 PM   By: Liti
I am also getting error messages that say the image directory could not be created. I can create albums but can't upload any images. While I can still link to images that I have on other pages this only works for places where I post information, not in the album. Any help for those of us with image problems????
Re: Problem with uploading Pictures
Posted on: 01/23/2005 02:48 AM   By: Anonymous
Hmm...I'm having the same problem and can't seem to find the answer anywhere.

My PSPWebsite was installed using Fantastico. There were no installation options when I installed it.

I'm also not able to view Avatars or any of the icons in the "Forums".

Would appreciate any help!
Re: Problem with uploading Pictures
Posted on: 03/22/2005 10:53 AM   By: tligon
Well we found this error was due to the images being uploaded as apache.apache. If you are in a chrooted environment where you run as youruser.yourgroup then apache is not allowed to load images. So you need to chmod the manually created directories (maybe even to 777) depending on your server to allow apache to load images. (I dont recommend that but it works for those who arent security minded)
Edited By: tligon On: 03/22/2005 11:03 AM
Re: Problem with uploading Pictures
Posted on: 07/15/2005 03:20 AM   By: Anonymous
Well we found this error was due to the images being uploaded as apache.apache. If you are in a chrooted environment where you run as youruser.yourgroup then apache is not allowed to load images. So you need to chmod the manually created directories (maybe even to 777) depending on your server to allow apache to load images. (I dont recommend that but it works for those who arent security minded)

I just tried to chmod my directories, but I still can't upload photos. The same error keep coming: "There was a problem uploading the specified image.". All my directories in './images/' are now set to '777', but no result. The image uploading works fine in webpages :S

Does anyone know what the problem might be?

-Mathijs
Re: Problem with uploading Pictures
Posted on: 09/07/2005 11:48 PM   By: Anonymous
try..

chgrp apache /images/photoalbum
chown apache /images/photoalbum

Most of my photos upload but some dont. I do not know why? It doesn't seem to have anything to do with the file size as some of the photos it will not upload are lager and others are smaller than then ones that I already have uploaded
Re: Problem with uploading Pictures
Posted on: 10/07/2005 09:31 PM   By: community
Like Mark, I am new to phpWebSite, and I am getting the same error.

It cannot be an image size problem as mine are all about 40-50k.

While I am PC-literate, I am not a code or command level person, so I will need detailed guidance on how to fix it.

Can anybody please help? Thanks

John
Edited By: community On: 10/07/2005 09:32 PM
path for photoalbums
Posted on: 01/30/2005 01:35 PM   By: pdc124
ver 0.10.0

you have to manually create the directory for the photoalbums
the default has to be ./images/photoalbums
Batch adding files which are already on server?
Posted on: 04/03/2005 09:26 AM   By: Anonymous
Is there any way to batch_add files which are already on the server?

I assume no, in which case, any pointers on how/where to add this functionality to the PhotoAlbum module?

GD library functions??
Posted on: 09/24/2005 07:28 AM   By: Anonymous
I've just installed PHPWebsite and want primarily to use the photo album module. I get this error though:
Error!
The photoalbum module requires the GD library functions. If you are getting this error then your GD libs are missing. Please contact your systems administrator to resolve this issue. With versions of php prior to 4.3.0 you must compile the GD libs into your build of php (--with-gd[=DIR], where DIR is the GD base install directory) Php 4.3.0 and greater have the GD libs already built in. For more information please refer to the PHP Image Function Manual

Not sure what all of that means. I don't think I'll be able to modify the PHP settings at all due to the fact that I've got a free webhosting plan and don't have access to those funtions.

Also, How does one go about resetting the allowed file types and allowed file SIZES please?
Comments Hack
Posted on: 09/24/2005 07:30 AM   By: Anonymous
Is there currently, or would it be possible to hack the photo albums mod to allow comments to the images uploaded in an album?
Problem uploading pictures
Posted on: 10/12/2005 11:44 AM   By: community
I a new to phpWebSite and have tried uploading pictures for the first time.

All of my pictures are 40-50K in size, so that is not the problem.

I get:
Error
There was a problem uploading the specified image

Does anybody know the answer to this problem?
I am computer literate, but not doen to code/command level so can somebody give me a step-by-step answer if there is one. Many thanks!

John
Edited By: community On: 10/12/2005 11:45 AM
Re: Problem uploading pictures
Posted on: 11/01/2005 06:00 PM   By: Anonymous
I had to delete the photoalbum directory in the images folder (on the web server). I created a new photoalbum folder in the root directory and set its permissions (777) and copied it to the images folder. Once that was done I tried to upload an image, still no joy. A new folder was, however, created in the photoalbum folder called '1'. This too had to be deleted and replaced so that permissions could be set (again 777). Pictures could then be uploaded.
The folders that the album creates are not writeable by the server and you cannot manually change permissions, that's why you have to manually recreate the folder structure.

Hope this makes sense to all.

Smid
Re: Problem uploading pictures
Posted on: 12/26/2005 04:55 PM   By: Anonymous
This worked for me:

1. CHMOD ./images/photoalbum to 777

2. Go to - Control Panel/Administration tab/ Boost.

3. Uninstall Photo Albums.

4. Reinstall Photo Albums.
Re: Problem uploading pictures
Posted on: 03/23/2006 04:27 AM   By: Anonymous
Thank you so much, that was not that difficult but saved my a ton of time.
Photo Albums
Posted on: 10/08/2006 09:29 PM   By: Anonymous
I have pictures and I have the album. I cannot get the pictures from the main album into the album I want them in. Do I have to delete them all and start over?
Error Uploading Files - The file Uploaded exceeded the max file size allowed
Posted on: 01/20/2007 04:08 AM   By: eyersee
Getting error "The file exceeded the max file size allowed" Error when attempting to upload an image in photo album. Please advise. Have PHP running at 32meg
Very useful module
Posted on: 01/28/2007 04:24 AM   By: eyersee
Photo
Самые свежие и интересные последние новости онлайн


Sponsored by Patterson Research
Founded by Robert Kennedy
Powered by phpWebSite