Coppermine Photo Gallery, an excellent PHP Photo Album System

Source: Internet
Author: User

At first glance, we can see the interface of the central component as a forum, which is also determined by its multi-layer classification structure. Unlike some photo album websites, the central node can have an infinite number of categories, just like a forum with many la S, la S, and subla S. After understanding this concept, we can start daily management and use.
There are two modes for an administrator to log on to the central database as a member. One is for you to view the member mode on the Interface of common members, and the other is the default management mode, you can only view the category, album, member, and other management buttons in the management mode. The following describes these management functions.

I. Category

To upload an image, select the uploaded album. To create an album, you must first create a category. In the "category" menu, we can create and modify categories, and modify the order in which categories are displayed on the page, you can also modify the detailed attributes of a category (click the "e" icon next to the category). An important point is the category thumbnail, which is the title thumbnail when the category is displayed, if you don't want your category to be automatically the last uploaded image as the title image, modify it by yourself.

Ii. Album

Create and modify an album on this page. Select a category to display the existing album. Click Add. Then, enter the album name in the text box below, create and modify all the albums, and click Modify. This is more convenient. Note: Ordinary Members cannot create albums, but cannot create categories. They can only upload photos to pre-created albums by administrators (you must enable "allow public album uploads" in the group settings ", in addition, the specified album must "allow visitors to upload images" in the attribute) or all the member's own albums.

Iii. User Management

Group, member, and restricted member are all used for user management. The first "group" should be translated as "user group. Here, you can modify the settings of each user group. The default four groups cannot be deleted. The space quota can determine the total size of all images that can be uploaded by this group; the number of fields in the upload method indicates how many files can be uploaded at a time. The member interface is also a general usage, and the relationship between the group and the member is just understood as the relationship between category and album.

Iv. Batch upload

This may be one of the most commonly used functions, because unless you have a fast network speed and want to transfer a small number of images, it is very troublesome to use the normal upload function. Here, we should first talk about the file management structure of the central database. The path of the image to which the database records of the central database are added, and how to store the images is managed by users. By default, all albums are under the albums directory in the directory of the running directory. The userpics directory is the default user's personal album directory, I created an albums directory under the albums directory to store public albums. You are advised to arrange the folder structure strictly according to your type and album structure. Do not use the double-byte directory name (either Chinese or Japanese ).

After the directory structure is created, upload all the files in the album to the directory where the album is to be stored, and click batch upload in the running directory (this function is available only to administrators ), the directory structure under the directory where you are located will appear, and you will find the directory you just uploaded (no need to select any files) on a layer-by-layer basis. Click OK to automatically create thumbnails and medium-sized images, thumbnails and medium-sized images are saved in the same directory as the source image, with the name specified in the settings. It should be noted that if your host supports ImageMagick, it will greatly increase the speed of generating thumbnails, in addition, it can break through the memory limit of gD2 (GD2 often fails to generate a 4096*4096 graph on my host, and it is rumored that PhP5 + Zend does not support GD2 well ). When all the images in the right column of the table are displayed, select the album to add these images in the upper right corner, and click OK to start writing data to the database. After each image is successfully added to the table, OK is displayed on the right side of the table, which is similar to the previous step. Generally, it takes 2-3 minutes to add more than 100 cartoons. After all the OK images are displayed, the batch upload is completed. Go to the album directory and check it.

V. Management Functions

This is an interface for batch database processing. You can batch update image information and generate thumbnails in batches. This is very useful for those who have changed the thumbnail settings, the thumbnails of all old images will be recreated according to your new settings. Other functions are also clearly written and will not be detailed.

Vi. Member Mode

The functions of common members include uploading images to their own albums, and uploading images to functional albums that are allowed to be uploaded. These upload methods are not much different from ordinary photo album systems and Forum systems. The photo album management function of ordinary members is actually a simplified administrator management interface, so they will not be introduced anymore.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.