Coppermine Photo Gallery v1.3.0: Documentation and ManualAbout CoppermineCoppermine Photo Gallery is a picture gallery script. Users can upload pictures with a web browser (thumbnails are created on the fly), rate pictures, add comments and send e-cards. The admins can manage the galleries and batch add pictures that have been uploaded on the server by FTP. Support for multimedia files has been added recently. Images are stored in albums and albums can be grouped by categories. The script supports multiple users and each user can possibly have its own set of albums. The script also supports multiple languages and has a theme system. It uses PHP, a MySQL database and the GD library (version 1.x or 2.x) or ImageMagick to make the thumbnails. An install script makes the installation fast and simple. Table of contents
1. What is required
2. Installation and Setup2.1 How to install the script
2.2 Getting startedLog in with the admin username and password you set up during install, click on the "admin mode" link if it is visible, go to the Config page and start to configure your gallery. Note that even if you are a member of the administrator group, you need to be in "admin mode" to configure your gallery. There are some settings in config that can't be changed later (if there are already files in the database) - make sure to set them up correctly in the first place. Although you'll surely want to start using coppermine immediately it is advisable to configure those settings (marked with an asterisk "*") properly at the very beginning. Use the "Album Manager" ("Albums" link in the admin menu) in to create and order your albums. You'll need at least one album your files can go into. Use the anonymous group to define what non-regsitered users can and can't do (in the groups panel). Use the properties of an album to modify its description and permissions. In order for a user to be allowed to upload a file in album three conditions must be met:
The same applies to picture rating and comment posting. If you have installed the script succesfully but are having trouble getting it working properly you can enable the "debug mode" on the config page. In this mode, the script outputs most of the warning/error messages produced by PHP in addition to some debug information. This can provide valuable information to understand what is wrong. 2.3 Using Windows XP Web Publishing Wizard with CoppermineIf you are using Windows XP, you can use its built-in web publishing wizard to upload your photos to your gallery. Once you have properly installed the script on your server, call the xp_publish.php file from your web browser (http://your_site.com/coppermine_dir/xp_publish.php). The script displays some information on how to do the installation on the client side and how to use the Wizard. Basically you will need to download a small file created by the script that needs to be loaded into your Windows registry. 2.4 Creating your own themesCoppermine themes are stored in the "themes" directory, they consist of 3 files :
To create a new template, the best solution is to use an existing one as a basis. To do that, make a copy of the folder of the theme you want to use as a basis. Then edit the "template.html" and "theme.php" files and replace all occurences of "themes/old_theme_dir" with "themes/new_theme_dir" in order for the links to point to the correct place. When editing the "template.html" file do not remove the elements between {} these are the placeholders used by the script. Also keep in mind that despite this file being located in the "themes/your_theme_dir" directory, it must be build like if it was in the main directory of the script. Practically to load an image, you must use <img src="themes/theme_dir/images/image.gif" alt=""/> and not <img src="images/image.gif" alt=""/>. The same apply for the "theme.php" file. Also, make sure not to delete the line <script type="text/javascript" src="scripts.js"></script> that is needed for the full-size pop-ups and other stuff related to JavaScript. If you are using an HTML editor to make your template, the best solution is that you copy the "template.html" file into the main directory of the script and edit it there. If the script find a file named "template.html" in the main directory it will load it instead of the one of the theme directory. Once you have finished your editings, move the file back to the directory of your theme. To modify the colors, fonts, font sizes, etc... used by the script, edit the "style.css" stylesheet. If you want to increase or decrease the size of the fonts you can simply modify the line with : table { font-size: 12px; }. Most of the font sizes used by the script are defined as a percentage of this size. The "theme.php" file contains all the HTML templates used by the script. You can also edit them. When making modifications to these templates, don't touch the lines with <!-- BEGIN xxx --> and <!-- END xxx -->. If you're not sure how to create your own theme, you could also have a look at the download section of the coppermine homepage: there are tons of user-contributed themes available for download that can be previewed on the coppermine demo page. While you're in the process of creating a new theme, you might not want to show the theme to the visitors of your page, but you (as coppermine admin) want to be able to preview your theme. To do that, simply add theme=your_theme_name to the url in your browser. Examples:
2.5 Safe mode issuesA significant number of webhost on the Internet run PHP in safe mode. Coppermine runs without any problem in safe mode and with the "open basedir restriction" active, provided safe mode is properly configured. Unfortunately on many hosts, safe mode is not configured properly. If your webhost is running PHP in safe mode but is misconfigured, you may need to do the following :
2.6 Using SMTP to send emailsBy default the script uses the PHP built-in mail function to send emails. In some cases, the PHP built-in function can't be used. If in order to send emails with PHP you need to supply a hostname, a username and a password, you need to edit the file "include/mailer.inc.php" and put the correct values there ($CONFIG['smtp_host'] = 'smtp.somewhere.com'; $CONFIG['smtp_username'] = 'username'; $CONFIG['smtp_password'] = 'password';). If you don't need a username and password to connect to your SMTP server, just leave them blank. 3. Upgrading3.1 Upgrading from version 1.0If you already have installed version 1.0 and you want to transfer your albums to version 1.2 proceed in the following way:
This upgrade process leaves your v1.0 gallery untouched 3.2 Upgrading from releases of version 1.1
3.3 Upgrading from cpg1.2.0rc2 or cpg1.2.0final to version cpg1.2.1
3.4 Upgrading from cpg1.2.0, cpg1.2.1 or cpg1.3.0beta to version cpg1.3.0
Please note: as there have been changes both in the coppermine files and the database from cpg1.3.0beta to cpg1.3.0 (final), users of the beta will have to apply all steps mentioned above: both the files have to be replaced and the update.php script has to be run once. 4. Configuration & Administration4.1 Categories, albums and filesThe Coppermine Photo Gallery (CPG) works in the following way:
If you don't have many albums, you don't need to use categories. In that case you don't create any category and all your albums will appear on the main page of the script. There is a special category named "User galleries". This category can't be deleted. If a user belongs to a group where "can have a personal gallery" is set to YES, he will have the right to create his own albums and his gallery will be a sub-category of "User galleries". The administrator can create albums in any category. Regular users can only create albums in "User galleries/Their_username". 4.2 Admin mode & User modeWhen you are logged in as an admin, the script has two modes of operation : Admin mode & User mode. You switch between Admin & User mode by clicking on the corresponding link in the menu bar at the top of the screen. When you are in admin mode, you can administer your gallery and the following menu bar appears : When you are in user mode you are just a regular user and can't access the admin pages. The items in the admin menu should be pretty self-explanatory:
There's an admin mode and user mode for "regular" users as well - the user admin has these options:
4.3 The group control panelThis is where you define what members of a group can and can't do. The disk quota applies only for groups where "Can have a personal" gallery has been set to "YES". Both files uploaded by a user in his personal gallery as well as files uploaded to public galleries are included in the quota. Use the anonymous group to define what non-registered users can and can't do. Quota and "Can have a personal gallery" are meaningless for anonymous users. Bear in mind that if a user is a member of a group where "can rate pictures", "can post comments" or "can upload files" is set "YES", he will have the right to perform these operations only in albums where they are allowed, ie. uploading files will only be possible in albums where "Visitors can upload files" has been set to YES. If "can have a personal gallery" is set to YES, the members of the group will have their own gallery in the "User galleries" category where they will be able to create their own albums. If "priv. upl. approval" is set to NO, files uploaded by members of the group in albums created in their own gallery won't need to be approved by the admin. The group control panel enables you to control the upload experience of any group. Upload form configuration lets you select the type of upload form a group may use. Four form types are currently available.
User may customize number of upload boxes? allows the user to select the number of upload boxes for an upload. Maximum/exact number of file upload boxes controls the number of file upload boxes presented to the user. If the user may customize the number of boxes, this setting serves a maximum limit for the number of boxes he may request. Otherwise, this setting determines the number of boxes that will appear on the upload form. Maximum/exact number of URI upload boxes is the same type of control as Maximum/exact number of file upload boxes, but it controls the presentation of URI upload boxes. 4.4 The categories control panelThis is where you can edit your categories.
"User galleries" is a special category. It is not visible unless you have some users that have created their own gallery. It can't be deleted but you can edit its title and description by using the button. 4.5 The Album ManagerCoppermine stores files inside of albums, so you'll need at least one album your pictures/files can go to. Albums can be stored in categories (but they don't need a category, they can as well go into the coppermine "root"). 4.5.1 Creating albums
4.5.2 Renaming albums
4.5.3 Changing the album order
4.5.4 Deleting albums
4.6 Modifying albums/filesWhen you are in admin mode there is a menu displayed next to each album Delete allows you to delete the album and all files it contains. Properties allows you to modify the name, description and permissions of the album Edit pics allows you to modify the title/caption/keywords etc... of the files in the album 4.7 Uploading pics by FTP / Batch-Add PicturesIt's recommended that the coppermine admin uses ftp to upload many pics in one go. Use your ftp software to create sub-folders within your_coppermine_directory/albums/, where your ftp uploads can go to. It's a good idea to have a folder structure within the albums folder that reflects your coppermine categories and albums, but it's not mandatory. Once you have uploaded your photos by ftp, click on the Batch Add Pictures button. The batch-add is done in three steps:
Giving FTP-access to other users is a serious security threat, that's why batch-add is only available for the coppermine gallery admin. Once files have been added to coppermine's database, make sure not to rename or delete them by ftp - use coppermine's admin menu to remove files instead, since this way they will be removed both from the file system and the database. 4.8 Album propertiesThe "Album category" drop down list allows you to move an album between categories. If you set this to "* No category *" then the album will be displayed on your main page. Coppermine understands the following bbCodes (the same bbCodes that are used by phpBB) in image and album description
The thumbnail is the picture that will represent the album in the album list. If you have set "Users can can have private albums" to YES on the config page, you can define who can view the files of this album. When "visitors can upload file" is set to YES, it is possible to upload files in this album. Note that a visitor will have the right to upload files into an album where this option is set to YES only if he is a member of a group for which "Can upload pictures" is set to YES. Non registered users are members of the "Anonymous" group. The same rules as above apply for "Visitors can post comments" and "Visitors can rate files". 4.9 Editing filesThis is where you can modify the title description, keywords and custom fields (if they are used) of a file. Use the album drop down menu to move the file to another album. 4.9.1 Editing videosThis is where you can modify the title description, keywords and custom fields (if they are used) of a video. Use the album drop down menu to move the video to another album. Use the height and width fields to set the size of the video. Video uploads are available for cpg1.3.0 (or better) as part of the distribution and for cpg1.2.1 as separate modification. 4.9.2 Custom ThumbnailsOrder of thumbnails: Types of thumbnails: Extension-specific thumbnails are named after the extension of the file. (Examples: 'thumb_wmv.jpg', 'thumb_wav.jpg'.) The base name for media-specific thumbnails are 'thumb_movie', 'thumb_document', and 'thumb_audio'. Images use file-specific thumbnails by default. Uploading:
1. Have an image already uploaded then upload a video via the upload page. (or vice versa) The video will share the thumbnail of the image. 2. FTP upload both the video and (thumbnail or image) then batch-add. If you FTP upload the thumbnail, the thumbnail will be shown instead of the default Coppermine thumbnail on the batch-add page. If you upload an image it will look like the screenshot. However, when the two files are added, the thumbnail of the image will be used by the video. Final result. Note: If methods 1 is used and the image is deleted, the thumbnail will be deleted also, and the default Coppermine thumbnails will be used. Video uploads are available for cpg1.3.0 (or better) as part of the distribution and for cpg1.2.1 as separate modification. Custom thumbnails aren't supported in versions prior to 1.3.0. Using these instructions, a custom thumbnail can be applied to any file, not just videos. FAQS:
4.10 The configuration page4.10.1 General settingsGallery nameThis is the name of your gallery. It will appear in the title of your page and is shown on some templates. Gallery descriptionThis is a short description of your gallery. This description is shown on some templates below the name of your gallery. Gallery administrator emailAll emails sent by the gallery are sent with this email address. Target address for the 'See more pictures' link in e-cardsThis is the URL where a user will be directed when he will click on the "See more pictures" link in an e-card. This should normally be the URL for your gallery but it may be the URL of another page of your site. Gallery is offlineIf you have to do maintenance work to do on your gallery, switch it to offline mode. Only members of the admin group will be able to log in, all other users will only see "Gallery is offline". Remember to switch this option off once your maintenance work is done. Log ecardsWhen enabled, all ecards that are being sent are as well written into the database, where the coppermine admin can view them. Before switching this option on, make sure that logging is legal in your country. It is also advisable to notify your users that all ecards are being logged (preferrably on the registration screen). Allow ZIP-download of favoritesWhen enabled, the user can download the files put into the favorites in a zip-file from the "My favorites" page. This option requires zlib to be installed on your server (run phpinfo to check if this library exists on your server). 4.10.2 Language, Themes & Charset settingsLanguageThis is the default language for your gallery. All language files are stored in the lang directory on your server. The language files with an "-utf8" suffix are unicode encoded files. If you select an -utf8 file as the default language and you set "Character encoding" to "Unicode (utf-8)" then the script will auto detect the preferred language of the visitor based on what is configured in his browser. If the corresponding language is available it will be used else the default language file will be used. When the script auto detect the preferred language, it stores the result in a cookie on the visitor's computer. To reset this cookie (and so force the script to do another auto detection) call it with something like: http://yoursite.com/coppermine_dir/index.php?lang=xxx Once you have added some comments or files to your gallery, you should not change the character set of your gallery. If you do so, non-ASCII character may not be shown correctly. ThemeUse this line to select the theme of your gallery. Themes are stored in sub-directories of the themes directory. Display language listEnable this option if you want your users to be able to select their own language with a dropdown list (you can specify to display only the list itself or a label saying "Choose your language:" in front of the list). Edit your template file (/themes/yourtheme/template.html) to specify where the language dropdown list should appear on your gallery (look for {LANGUAGE_SELECT_LIST}). Display language flagsEnable this option if you want your users to be able to select their own language by clicking on a flag representing their language (you can specify to display only the flags themselves or a label saying "Choose your language:" in front of the flags). Edit your template file (/themes/yourtheme/template.html) to specify where the language dropdown list should appear on your gallery (look for {LANGUAGE_SELECT_FLAGS}). Display "reset" in language selectionThis option only applies if you enabled language selection at all - it will show a "default"-icon or list entry to let the users go back to the original language of your gallery. Display theme listEnable this option if you want your users to be able to select another theme with a dropdown list (you can specify to display only the list itself or a label saying "Choose your theme:" in front of the list). Edit your template file (/themes/yourtheme/template.html) to specify where the theme dropdown list should appear on your gallery (look for {THEME_SELECT_LIST}). Display "reset" in theme selectionThis option only applies if you enabled theme selection at all - it will show a "default" list entry to let the users go back to the original theme of your gallery. Display FAQThis option adds "FAQ" to the menu bar when enabled. If a user clicks on it, it will display a list of "Frequently asked question" on how to use coppermine. To change the content of the FAQ, edit the file /your_coppermine_folder/lang/yourlanguage.php (e.g. english.php) and look for // ------------------------------------------------------------------------- // // File faq.php // ------------------------------------------------------------------------- // Edit the stuff that comes after it. Display bbcode helpWhen enabled, this will display the bulletin board codes that are allowed to use in description fields next to the field. Character encodingThis should normally be set to "Default (language file)" or "Unicode (utf-8)". See the discussion in the "language" section of this page. 4.10.3 Album list viewWidth of the main table (pixels or %)This is the width of tables used on your main page or when you are viewing thumbnails of an album. You can enter a width in pixels or specify it in percents. The default value is 100%. Number of levels of categories to displayThe default value is 2. With this value the script will display the current categories plus one level of sub-categories. Number of albums to displayThis is the number of albums to display on a page. If the current category contains more albums, the album list will spread over multiple pages. Number of columns for the album listSelf explanatory. The default value is 2. Size of thumbnails in pixelsThis is the size of the thumbnails that are displayed for each album. 50 means that the thumbnail will fit inside a square of 50x50 pixels. If the size you specify there is larger than "Pictures and thumbnails settings/Max width or height of a thumbnail", the thumbnail will be stretched. The content of the main pageThis option allows you to change the content of the main page displayed by the script. The default value is "catlist/alblist/random,2/lastup,2" You can use the following "codes"
The ,2 means 2 rows of thumbnails. Show first level album thumbnails in categoriesUse this setting to choose between showing or not showing thumbnails from the first album in the categories. 4.10.4 Thumbnail viewNumber of columns on thumbnail pageDefault value is 4 this means that each row will show 4 thumbnails. Number of rows on thumbnail pageDefault value is 3. Maximum number of tabs to displayWhen the thumbnails spread over multiple pages, tabs are displayed at the bottom of the page. This value define how many tabs will be displayed. Display file caption (in addition to title) below the thumbnailToggles whether the file caption is displayed
below each thumbnail while user is in thumbnail view. Display number of views below the thumbnailToggles whether the number of views is displayed
below each thumbnail while user is in thumbnail view. Display number of comments below the thumbnailToggles the display of the number of comments for below each thumbnail. Default sort order for filesThis option determines if you wish to have the file caption displayed below each thumbnail while user is in thumbnail view. Minimum number of votes for a file to appear in the 'top-rated' listUsed to determine how many votes a file must receive before appearing as "top-rated." If a file has received less than "this value" votes, it will not be displayed on the "top-rated" page.4.10.5 Image view & Comment settingsWidth of the table for picture display (pixels or %)The width of the table used to display the intermediate picture. File information are visible by defaultDefine whether or not file information (those that appear when you click on the (i) button) should be visible by default. Filter bad words in commentsRemove "bad words" from comments. The "bad words" list is in the language file. So far only the English language file has one. Max length for an image descriptionMaximum number of characters that an image description may contain. Max number of characters in a wordThis is intended to prevent that someone break the layout of the gallery by posting a long comment without space. With the default value, words with more than 38 characters are censored. Max number of lines in a commentPrevent a comment for containing too many new line char. Maximum length of a commentMaximum number of characters that a comment may contain. Show film stripToggles display of a "film strip" showing thumbnails of prior
and following photos in the album. Number of items in film stripSet the number of thumbnails to display in film strip. 4.10.6 Picture and thumbnail settingsQuality for JPEG filesThe quality used for JPEG compression when the script resizes an image. Value can range from 0 (worst) to 100 (best). This value can be set to 75 when using ImageMagick. Max dimension of a thumbnailSets the maximum size in pixels for the specified dimension for thumbnails. When changing this setting, only the files that are added from that point on are affected, so it is advisable that this setting must not be changed if there are already photos in the gallery. You can, however, apply the changes to the existing pictures with the "admin tools (resize pictures)" utility from the admin menu.
Use dimension ( width or height or Max aspect for thumbnail )Sets the dimension for which the maximum pixel size should apply to. When changing this setting, only the files that are added from that point on are affected, so it is advisable that this setting must not be changed if there are already photos in the gallery. You can, however, apply the changes to the existing files with the "resize pictures" utility from the admin menu.
Create intermediate picturesBy default, whenever you upload a file, the script creates a thumbnail of the file (file name with a thumb_ prefix) plus an intermediate version (file name with a normal_ prefix). If you set this option to NO, the intermediate file is not created. Max width or height of an intermediate pictureThe intermediate pictures are those that appears when you click on a thumbnail. The default value is 400, it means that the intermediate picture will fit inside a square of 400x400 pixels. Max size for uploaded files (KB)Any file with a file size larger than this value will be rejected by the script. Max width or height for uploaded pictures (pixels)Limit the dimensions of the pictures that are uploaded. Resizing large pictures requires a lot of memory and consumes CPU. 4.10.7 Files and thumbnails advanced settingsShow private album Icon to unlogged userToggles the display of the private album icon to unlogged users. Characters forbidden in filenamesWhen the filename of a file that is uploaded contains one of these characters, it will be replaced with an underscore. Don't change this unless you know exactly what you are doing. Accepted file extensions for uploaded picturesAny file uploaded whose extension is not in this list will be rejected by the script. This is intended to prevent a user from uploading non-image files. The GD library only supports JPEG and PNG images so other types of
files will be rejected even if their extension is valid. Allowed image types"ALL" will result in all allowed image file types that your image library (GD or ImageMagick) is capable of handling to be allowed. If you want to restrict the allowed file types to certain types only, enter a coma-separated list of extensions, e.g. jpg,bmp,tif
Allowed movie types"ALL" will result in all allowed movie file types to be uploaded. If you want to restrict the allowed file types to certain extensions only, enter a coma-separated list of extensions, e.g. wmv,avi,mov. Allowed audio types"ALL" will result in all allowed audio file types to be uploaded. If you want to restrict the allowed file types to certain extensions only, enter a coma-separated list of extensions, e.g. wav,mp3,wma. Allowed document types"ALL" will result in all allowed document file types to be uploaded. If you want to restrict the allowed file types to certain extensions only, enter a coma-separated list of extensions, e.g. txt,pdf. Method for resizing imagesIf you are using GD 1.x and the colors of your thumbnails or intermediate image are wrong then switch to GD 2.x Path to ImageMagick 'convert' utility (example /usr/bin/X11/)If you are using ImageMagick convert utility to resize you picture, you must enter the name of the directory where the convert program is located there. Don't forget the trailing "/". If your server is running under Windows, use / and not \ to separate components of the path (eg. use C:/ImageMagick/ and not C:\ImageMagick\). This path must not contain any space so under Windows don't put ImageMagick in the "Program files" directory. ImageMagick will hardly work if PHP on your server is running in SAFE mode and it is a real challenge to get it running under Windows. Consider using GD in these cases and don't waste your time asking for support in the forum. There are too many things that can prevent ImageMagick to work correctly and without a physical access to your server it is hard to guess what is wrong. Allowed image types (only valid for ImageMagick)This is the list of image types that the script will accept when using ImageMagick. Image type detection is performed by reading the header of the file and not by looking at its file extension. Command line options for ImageMagickHere you can add options that will be appended to the command line when executing ImageMagick. Read the ImageMagick Convert manual to see what is available. Read EXIF data in JPEG filesWith this option turned on, the script will read the EXIF data stored
by digicams in JPEG files. For cpg1.x to cpg1.2.1, this option will work only if PHP was compiled
with the EXIF extension. Coppermine 1.3.0 (or better) comes with built-in EXIF support even if the webserver itself doesn't have EXIF support, as it uses a separate EXIF class. Read IPTC data in JPEG filesWith this option turned on, the script will read the IPTC data stored
by digicams in picture files.
The album directoryThis is the base directory for your "Image Store". The path is relative to the main directory of the script. You can use ../ in the path to move-up one level in the directory tree. You can not use an absolute path there ("/var/my_images/" will not work) and the album directory must be visible by your web server. The directory for user filesThis is the directory where files uploaded with the web interface are stored. This directory is a subdirectory of the album directory. The same remarks as above apply. When you upload files by FTP, store them in a subdirectory of the "album directory" and not inside the "directory for user files". The prefix for intermediate picturesThis prefix is added to the file name of created pictures. The prefix for thumbnailsThis prefix is added to the file name of created intermediate thumbnails. Default mode for directoriesIf during the installation, the installer complained about directory not having the right permissions set this to 0777 else you won't be able to delete the directories created by the script with your FTP client the day you will decide to uninstall the script. Default mode for filesIf during the installation, the installer complained about directories not having the right permissions set this to 0666. 4.10.8 User settingsAllow new user registrationsDefine whether new users can self-register or not. User registration requires email verificationIf set to YES an email will be sent to the user that will contain a code to activate his account. If set to NO, user accounts become immediately active. Notify admin of user registration by emailIf set to YES an email will be sent to the gallery admin when a new user registers. Allow two users to have the same email addressAllow or prevent two users from registering with the same email address. Recommended setting is NO Users can can have private albumsIf set to YES then your gallery can contain albums that can be visible only by users that belong to a certain group. If a user is a member of a group that can have its own gallery and this option is turned on then this user will have the permission to hide some of this albums to other users. Note: if you switch from 'yes' to 'no' any current private albums will become public! Notify admin of user upload awaiting approvalWhen enabled, the gallery admin receives an email notification of all pics that wait for his approval (depends on the approval settings in "groups"). The email is sent to the address specified in "General settings". Allow logged in users to view memberlistWhen enabled, an additional menu item "Memberlist" is being displayed in the coppermine main menu if a user is logged in, to let him see a list of all users, with stats on their last visits, uploads and quota usage. 4.10.9 Custom fields for image description (leave blank if unused)These fields are displayed within the "file information" area. They will appear only if you give them a name. 4.10.10 Cookie settingsName of the cookie used by the scriptDefault value is "cpg130". Even if you have multiple instances of the
script running on the same server you can keep the default value. Path of the cookie used by the scriptDefault value is "/". Don't change this unless you know what you are doing. This may prevent you from logging in. If you have broken your gallery by modifying this value, use phpMyAdmin to edit the xxxx_config table in your database and restore the default value. When using bbs integration into Coppermine, make sure to use different cookie names for coppermine and your bbs! 4.10.11 Miscellaneous settingsEnable debug modeCPG will show error messages which are normally suppressed. This is
helpful in troubleshooting problems with your gallery or when asking
for help on the
CPG Support Forums. Turn this feature off if you don't experience problems. Display notices in debug modeMay be helpfull to trouble-shoot problems with your coppermine install - only recommended if you know a little PHP and you can understand the additional error messages this option shows. This option only applies if debug mode is enabled. 5. Integrating the script with your bulletin boardCoppermine can be integrated with the following bulletin boards (eg. Coppermine and your bulletin board will share the same user database).
The login integration use your bulletin board cookies, therefore it won't work if your board cookies are not visible by Coppermine. So unless you are an expert, keep things simple and install Coppermine and your bulletin board on the same domain. Examples :
To avoid confusion, make sure to set up both coppermine and your bbs as standalone first. Make sure they both run correctly without integration. Warning: If you already have users and custom groups in your coppermine database when you enable bbs integration, be aware that they will be lost. If your coppermine users have already created private albums and uploaded pics to them, they will be lost as well! Backup: it is very advisable to backup both your coppermine database before enabling bbs integration, so you can savely go back if the integration fails. If you are using phpBB 2, go to the admin control panel and check that "Cookie domain" corresponds to your domain, "Cookie name" is "phpbb2mysql" and "Cookie path" is "/". If you are using Invision Power Board, go to the "admin control panel / board settings / cookies" and check that all fields are blank. If they are not, you modified the default values and you are an expert. If you are using vBulletin, go to the "admin control panel / vBulletin options / HTTP Headers and output" and check that the value for "Cookie Domain" corresponds to your domain and that "Path to save cookies" is "/" It is also recommended that you use the same database for your board and Coppermine (in fact it is even mandatory!). Important: the cookie names of your bbs and coppermine must not be the same - they must differ! You will also need to perform the following operations after having unpacked the archive on your harddrive and before uploading the files to your webserver : Edit the file include/init.inc.php. At the beginning of the file you will find the following lines : // User database integration // Uncomment the applicable line if you want to use it // define('UDB_INTEGRATION', 'phpbb'); // define('UDB_INTEGRATION', 'invisionboard'); // define('UDB_INTEGRATION', 'vbulletin'); // define('UDB_INTEGRATION', 'yabbse'); // define('UDB_INTEGRATION', 'wbb21'); Un-comment the line that corresponds to the bulletin board you use (eg. remove the "//" that are at the beginning of the line) define('UDB_INTEGRATION', 'phpbb'); The go to the bridge directory and open the file that corresponds to the bulletin board you use (eg. phpbb.php). At the beginning of the file there are a number a configuration values that need to be set. For phpBB they are the following : // database configuration define('PHPBB_DB_NAME','phpBB'); // The name of the database used by the board define('PHPBB_BD_HOST','localhost'); // The name of the database server define('PHPBB_DB_USERNAME','root'); // The username to use to connect to the database define('PHPBB_DB_PASSWORD',''); // The password to use to connect to the database // The web path to your phpBB directory // If your URL to your board is for example 'http://yoursite_name.com/phpBB2/', // you'll have to set the below var to '/phpBB2/'. define('PHPBB_WEB_PATH', '/phpBB2/'); // Logout Flag // the value of this boolean constant depends on your phpBB version: // If your version of phpBB is 2.0.4 or lower - change the value to FALSE; // if your version of phpBB is 2.0.5 or newer - leave it as TRUE define('PHPBB_LOGOUT_GET', TRUE); Modify them according to the configuration of your board and save the file.
Upload all files onto your webserver. Visit your coppermine gallery in your browser. To login as an admin, you will need to use the admin username and password of your board. Login using the admin account of your board. Go to the gallery, enter admin mode and click on the "Groups" button. This will synchronize Coppermine groups with those of your board. The permission you will see for each group will be completely messy, so take some time to set them properly. Each time you add or delete a group in your board you will need to do the operation above in order to keep the synchronisation of the groups. When you will try to login / logout or manage users from Coppermine, you will be redirected to the corresponding page of your bulletin board. Once the login or logout is performed you won't be redirected automatically to the gallery because your board does not have any function for that. It's up to you to add a link on your board to get you back to the gallery. 6. Translating Coppermine into other languagesCoppermine has a separate language file that make the translation of the script much more easy. The language files are stored in the lang directory. The files with the utf-8 suffix are unicode encoded files. They are automatically generated with the iconv program so there is no need for you to make an unicode version of your translation. If you select an utf-8 language file as the default one, then the script will be able to automatically select a language file based on the visitor browser configuration. For instance if the default language file is danish-utf-8 and an english visitor access your gallery, the english-utf-8 language file will be used by the script. If you have translated Coppermine into a language not already supported, please read the translator's guide and visit the Coppermine Web Site at Sourceforge and follow the instructions for submitting your language. 7. Known IssuesThe following slight quirks and tiny issues are known and will be fixed in future releases.
8. Credits8.1 Coppermine team
8.2 Contributors
8.3 Coppermine uses code from the following free softwares :phpBB phpMyAdmin phpPhotoAlbum DOM Tooltip 0.6.0 TAR/GZIP/ZIP Archive Classes phpExifRW Codelifter Slideshow 8.4 Copyright and disclaimerThis application is opensource software released under the GPL. Because the program is licensed free of charge, there is no warranty for the program, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the program "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the program is with you. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction. Coppermine Photo Gallery is Copyright © 2002 - 2004 Grégory
DEMAR and the Coppermine Dev Team, All Rights Reserved. |