Deleted Files Still Showing When Uploading New Pics Coppermine Gallery

Coppermine ane.4.ten FAQ

FAQ for Coppermine Photo Gallery v1.4.x
For credits and copyrights, come across Coppermine documentation

With thousands of users, it'south not surprising that so many of the same questions are asked on the support forums for Coppermine Photo Gallery. So, to help facilitate your website development, we've included this basic FAQ file on common issues. Please be certain to refer to this FAQ first earlier posting questions on the forum. Failure to do so will, could, well ... , reflect unkindly on you and could result in some negative "karma."

Table of contents:

  • Installation
    • What are the minimum requirements for the installation and utilize of Coppermine 1.4.x ?
    • What's ImageMagick and how tin can I become it?
    • What'southward GD and how tin I get it?
    • How practice I observe out which version of PHP I accept?
    • How exercise I find out which version of GD I have?
    • What's the difference between GD1 and GD2?
    • What are the steps to get Coppermine running?
    • How tin can I install ImageMagick or GD?
    • I'm short on webspace. Is there a "minimum install"?
  • Upload
    • Full general Upload Troubleshooting
  • Error letters
    • When installing I get the fault Fatal error: Call to undefined role: imagecreatefromjpeg() in /include/picmgmt.inc.php on line 168. What does that mean?
    • When installing I get the error Warning: mkdir(dummy) [function.mkdir]: Permission denied in /your/path/to/coppermine/install.php on line 126. What does that mean?
    • I get the error "Warning: Empty Delimiter in search.inc.php line 33". What can I do?
    • I go the mistake Zero Sized Reply during install. What can I practise?
    • I have the error message Alarm: Undefined index: SCRIPT_NAME in /world wide web.your-domain.com/include/init.inc.php on line 90. What can I do?
    • When I try to upload a picture I get the error message Impossible to move somepic.jpg to albums/userpics/ | Warning: move_uploaded_file(/tmp/phpezCYKr) [function.move-uploaded-file]: failed to create stream: Functioning not permitted. What'south wrong?
    • When I endeavor to upload a picture I get the fault message Warning: opendir(./albums/edit): failed to open dir: No such file or directory. What's wrong?
    • When uploading I get the fault Warning: Undefined variable: HTTP_POST_VARS in include/init.inc.php on line 43. What can I do?
  • Setup / Configuration
    • How tin I include a link in an album description or the caption of a pic?
    • I don't want to show the last uploads and/or random pictures on the starting time page. How do I edit what'due south shown on the kickoff page of coppermine?
    • How do I remove/edit the bottom line "Powered by Coppermine" ?
    • I want to buy a license for Coppermine (and get rid of the "Powered by Coppermine" line). How?
    • I don't want to use the feature XYZ of Coppermine. How can I remove it?
    • How practise I add a custom header/footer to Coppermine?
    • How do I create an album that anyone can add photos to?
    • How tin I backup my coppermine database?
    • The fullsize-pic doesn't popular up when clicking on the intermediate size moving-picture show. What's wrong?
    • How tin I let unregistered users run across the thumbnails only, but non the bodily pictures?
    • How can I forestall other sites linking directly to the pictures in my gallery instead of the gallery page?
    • I tried to alter the language on the config page, but it doesn't work. What's wrong?
    • How do I permit guests, not only registered users to put comments on pictures?
    • I can't upload with the upload feature. What's wrong?
    • How practice I change the order of categories?
    • I can't delete a certain picture with ftp. What tin can I do?
    • I tin can't upload big pics. What's wrong?
    • I tin can't login to Coppermine. What's wrong?
    • How can I change the sorting order of the albums?
    • I don't employ the intermediate pictures anymore. How can I delete them to gain disk space?
    • How do albums and folders work in coppermine?
    • How tin can I move albums from i category to another?
    • How do I move a gallery?
    • How do I show the same file in multiple albums?
  • Add together-ons / Modifications / Hacks
    • How can I change the order of the pics when editing them?
    • How can I create a menu that's shown on the right side of the gallery?
    • How tin can I send a user directly to his private album once he logs in?
    • How can I preclude unregistered user from viewing the gallery?
    • How can I display the name of the uploader with the picture info?
    • How practice I enable clickable links in custom user fields?
    • How can I sort the thumbnails by user divers (custom) fields?
    • How do I enable IPTC back up?
    • How can I add together some output direct before the line "Powered by Coppermine"?
    • Common PHP errors and how to get rid of them...
    • Can I rename template.html to template.php to include PHP code in my template?
    • How can I prevent users from saving (stealing) my pictures?
  • I'm running my own server
    • How practise I enable gd on my Windows server?
    • How practice I enable ImageMagick on my Windows server?
  • Coppermine Support board
    • I don't know PHP/mySQL...
    • I've posted my question a while ago, just nobody answers. What the...?
    • How should I write my question?
    • I've run across trouble. What should I practice first (before posting on the board)?
    • Hey, by looking at your profile I can meet you're German/French/Whatever. Can I post a question in that language?
    • May I email/pm/im you for support?
    • Who are you anyway?

Installation

What are the minimum requirements for the employ of Coppermine 1.4.ten ?

  • whatsoever webserver, Apache recommended (Coppermine has been reported to work with Apache, Microsoft Cyberspace Information Server (IIS), Roxen WebServer, Abyss, JanaServer)
  • PHP 4.1.0 or meliorate
  • GD lib or Image Magick
  • mySQL 3.23.23 or better (4.10 recommended). Don't misfile the client api version (which is shown in phpinfo) with the mySQL version!



What'south GD and how tin I become it?

GD is a graphical library which enables PHP to do image manipulation. If you are running your own webservem you lot tin download it at www.boutell.com/gd/. You volition need to recompile PHP on (Fifty)Unix systems, depending on your setup Apache also. Almost recent versions of PHP come with GD - go for a package. On about windows systems, you can just enable it in the php.ini file. If you are subscribing to a webhost: find out through your webhost if GD/GD2 support is available on your site. If not, ask your webhost if you can have information technology or find yourself another webhost. GD/GD2 are pretty much a standard feature at about webhosting services.



What'due south ImageMagick and how can I get it?

ImageMagick is another graphical library like GD/GD2 for image manipulation. If you are running your ain webserver, yous can download it at imagemagick.org. There are sources bachelor for Unix, Linux, Mac and Windows executables, every bit well as binary packages for various server operating systems. Y'all cannot install ImageMagick if you are subscribing to a webhost.



How do I find out which version of PHP I have?

If you haven't installed Coppermine, still, create a blank file named "info.php". Add the following code to it:

<?php phpinfo(); ?>

. Save the file and upload information technology to your webserver, and so run it in your browser (eastward.g. http://world wide web.yourdomain.com/info.php). The very offset line should read "PHP Version X.Y.Z"
Please note: leaving info.php on your server could be a security risk; either delete information technology after apply or move information technology into a password protected directory!

 If you have already installed Coppermine, you volition find a phpinfo file (phpinfo.php) within the coppermine folder. Log in to your Coppermine setup equally the admin and simply point (type in the URL) your browser to http://yourdomain.tld/your_coppermine_folder/phpinfo.php .



How do I find out which version of GD I have?

If you haven't installed Coppermine, yet, create a blank file named "info.php", put this code into it: <?php phpinfo(); ?>. Save the file and upload this file to your webserver, then run information technology in your browser (e.thousand. http://world wide web.yourdomain.com/info.php). Look for a table like this:

gd

GD Back up enabled
GD Version 1.6.ii or higher
FreeType Support enabled
FreeType Linkage with TTF library
JPG Support enabled
PNG Support enabled
WBMP Back up enabled

Please notation: leaving info.php on your server could exist a security take chances; either delete it after use or motility information technology into a password protected directory!

 If you lot have already installed Coppermine, you will find a phpinfo file (phpinfo.php) within the coppermine folder. Log in to your Coppermine setup as the admin and simply indicate (type in the URL) your browser to http://yourdomain.tld/your_coppermine_folder/phpinfo.php. And so scoll downwards to the GD section of the brandish.



What's the divergence between GD1 and GD2?

GD2 is an updated version of GD1 and, as such, will create pictures with better quality (intermediate and thumbnails).

Upgrades of the GD lib after coppermine has already installed will non affect pictures that were previously created. Information technology will only affect those created after the upgrade. Unless you are running your own webserver, yous cannot upgrade nor install GD lib - simply your webhost can!


What are the steps to become Coppermine running?

equally stated in the Coppermine readme file:

  1. Download Coppermine
  2. Unzip it to your harddrive
  3. Upload the contents of the coppermine folder to your server (you can install information technology in the root or in a unique folder with a name of your choosing).
  4. CHMOD (CHange permission settings MODeast) your newly uploaded Coppermine "include" and "albums" folders and subfolders to let for read/write access. If your webhost does not provide file management tools to let you lot do this, y'all will probably need to search the net, download and install an FTP programme to facilitate this.
  5. Create a database with your website management tools if you don't already have one. You lot do not accept to add together any tables to your newly created database. Coppermine will create them for yous. If you already have a database on your site, Coppermine can use that as well.
  6. If you are installing on a Yahoo Webserver, read this thread first.
  7. Point your browser to http://www.yoursite.com/coppermine/install.php and follow the directions of the install file (basically the mySQL-tables will be created at that place and the config tabular array will be filled with default values)
  8. Upon successfull installation, delete the install.php file from your website.
  9. Point your browser to http://www.yoursite.com/coppermine/ , and login as admin using the ID and Password you provided during install. In admin mode, click on the CONFIG menu push to start customizing your coppermine photograph gallery.
  10. Experiment with your new install, create a few categories, sub-categories, and albums. Upload a few pics (not also many, but all the same), test if everything works.
  11. Point your browser to http://www.yoursite.com/coppermine/docs/ and READ the docs. The documents included with CPG1.4.x have been updated from previous versions to aid answer your questions and problems and then that you can get the site you want the kickoff time out. Reading the docs takes but a few minutes. Resolving issues after the fact tin can take days, even weeks.
  12. If your new Coppermine install is in a sub folder on your site, publish your site past linking it to your homepage.



How tin can I install ImageMagick or GD?

You can only install ImageMagic or GD if you're running your own server or if you lot have at least crush access to your webserver. If your site is beingness hosted by a webhost you tin can merely contact your webhost and ask them to install information technology for you. If they turn down cull another webhost.



I'chiliad running brusk on webspace. Is there a "minimum install"?

This is of course a contradiction in terms: running a gallery page usually means you will considerable webspace to store your pics, but if you only want to publish a few pics with what piffling webspace you have left, there are some files that don't have to be uploaded or that tin can be removed if not needed. It is however recommended that only experienced users create a minimum install; when in doubt, practise a full install.

  1. Remove all languages that you don't need (if your users are all from the same state).
    It'due south recommended that you proceed English language anyhow even if your users use another language, just for y'all equally admin to be able to temporarily switch to English.
    Delete all files in the lang-subfolder of your coppermine install except yourlanguage.php (east.g. if you're using french, delete all files but /lang/french.php and /lang/french-utf-8.php).

    Webspace that tin be saved (maximum): 2.9 MB

  2. Remove all language files that come with an encoding you don't need
    You'll notice that for each language there are two files in the lang-binder: yourlanguage.php and yourlanguage-utf-8.php. You will need the utf-8 files only if you chose "Unicode(utf-eight)" in "Character encoding" on your config page. Using Unicode (utf-8) will brandish the gallery in the language your folio company has prepare in his browser. If yous haven't called Unicode (utf-8) in coppermine config, it'southward safe to delete all language files with "utf-viii" in their filenames from the lang folder.

    Webspace that tin be saved (maximum): 1.seven MB

  3. Remove all unnecessary themes
    Remove all themes you won't use from your themes folder. If yous're using a customized theme, it's recommended to exit the classic/default theme in place for administrative purposes.
    Example: if yous're using the theme "Eyeball" that comes with coppermine, y'all tin can safely delete the sub-folders "classic", "fruity", "hardwired", "igames", "mac_ox_x", "project_vii", "rainy_day", "styleguide" and "water_drop" from your themes folder.

    Webspace that tin can exist saved (maximum): 1 MB

  4. Remove some docs from the docs folder
    The docs folder contains documents that are meant to assist you set up and administrate coppermine. In cpg1.iv.0 or better, there are some files in this binder that are mandatory to accept on the server for the aid icons to piece of work; others are optional. Yous can remove the files "credits.html", "faq.html", "README.html", "theme.htm" and "translation.htm". All other files (and the subfolder "pics") have to remain on the webserver if you desire to use the assistance icons (recommended).

    Webspace that can exist saved (maximum): 164 KB

  5. Remove bridge files
    The Coppermine package includes bridge files used for integration of coppermine with bulletin board software similar phpBB, SMF etc. It is safety to delete some files in the bridge folder; if you are using bbs integration, you lot volition have to proceed the span file that corresponds to the bbs yous're using. If you are not using integration, you lot must keep the file coppermine.inc.php. The file udb_base.php is required under all setups ans should non be deleted.

    Webspace that can be saved (maximum): 85 KB

  6. Remove the flags
    If yous're not going to apply the "select language past flags" option from the coppermine menu, information technology's safe to delete the flags folder (/your_coppermine_folder/images/flags/). If you are using the flags choice, yous can of grade delete all flags you don't employ at all.

    Webspace that can be saved (maximum): fourscore KB

  7. Remove files that are needed for install or upgrade only
    One time Coppermine has been installed and is "up-and-running", you can safely delete the files that are needed for installing but: from the coppermine root folder, delete install.php, installer.css, update.php, upgrade-1.0-to-1.two.php. You can delete the folder "sql" as well.
    If you want to update/upgrade your coppermine install later (in one case a new version comes out), you lot volition of course have to re-upload the update files and the sql folder to your webserver.

    Webspace that tin can be saved (maximum): 73 KB

  8. Cull to simply brandish intermediate-sized pics and thumbnails.
    After you have batch added your pics and confirmed that they are displaying properly in your CPG setup, click on Admin Tools and select the "Delete original size photos (one)" selection.

Summary: a minimum install of coppermine will need approx. 3.3 MB of webspace.

Upload

Full general Upload Troubleshooting

When troubleshooting uploads in CPG ane.4, you lot are advised to modify the upload settings in the Groups panel to 'Unmarried uploads but' and to actuate 'Debug way' in the config console. Changing this setting negates some of the error masking washed in the multiple upload setting. This volition allow you to admission more detailed error messages.

First and foremost: Check your folder and file permission settings on the /albums, /albums/userpics, and /albums/edit directories. All should be 777 or 755.

If yous don't know what we hateful by 777 or 755, you need to exercise a Google search on UNIX file permissions. Windows has a similar fix of file permissions. You can commonly set these permissions using an FTP client (If you lot don't know what an FTP client is, Google for FTP customer).


For those of you who skim over statements written in ruby-red letters, I will repeat to try to become your attention:

Yes, we are writing about something that could easily utilise to YOU.

  We repeat -- check your permissions on the

/albums, /albums/userpics, and /albums/edit directories. All should be 777 or 755.

  Yes, nosotros exercise want y'all to check the permissions of each folder even if yous think you have already done this. Yes, we mean it.

NOTE: HTTP uploads are limited by the restrictions placed upon them in PHP's configuration.

  Things to bank check:

(if y'all are webhosted, y'all will demand to consult with your webhost regarding the post-obit settings.)
  1. max_input_time- 60 seconds is the default time limit for uploading files.
    This time limit includes the time it takes for the files to upload, then if you exceed this limit, the file volition not fifty-fifty parse, and the browser will non get a response. Y'all can workaround this past trying to upload smaller or fewer files, or you can attempt uploading over broadband. The best solution, of course, is to increase the time limit to something more than in line with your needs.
  2. upload_max_filesize - 2MB is the default limit for individual files.
  3. post_max_size - 8MB is the default limit for post requests.
  4. memory_limit - 8MB is the default size.
  5. PHP's LimitRequestBody - 512KB default limit. (mainly an issue on Redhat/Apache systems. Found in /etc/http/conf.d)
    In general, upload_max_filesize < post_max_size < memory_limit in order for uploads to function properly. Coppermine may warn y'all if a file exceeds upload_max_filesize, merely it cannot warn you if the total size of all the files exceeds the post limit or the memory limit.
  6. file_uploads - This determines whether or not PHP will allow file uploads. It must be set to "On".
  7. upload_tmp_dir - This specifies the temporary directory where PHP stores uploaded files.

The most common issue caused past this setting is an open_basedir warning. In this situation, your server administrator has restricted the files that PHP can work with to a sure directory. If he does not create and specify a temporary directory within the open_basedir restriction, PHP will endeavour to use the Os temporary directory, and it will exist rebuffed by the open_basedir restriction.

Some notes about the different types of upload mechanisms available in CPG 1.3 (or ameliorate):
Multiple HTTP uploads are designed to handle a small number of files, and have an upper limit of 10 files at a fourth dimension. Therefore, they are non well suited for the uploading of large numbers of files unless y'all are running your own webserver or have command over the php.ini configuration.
If you are looking to upload more than fifteen or 20 files at a time, you should consider the batch add process or the XP_Publisher utility. Each has its own drawbacks and advantages.
The batch add process is fast, but it creates quite a load on the server and, equally a result, you may experience timeouts causing your uploads to end prematurely. XP Publisher, on the otherhand, is considerably slower, but it limits the load on the server. It also circumvents many of the pitfalls caused by limitations set in the php.ini configuration by uploading each file in the batch beingness uploaded every bit an individual post request.



Error Messages

When installing I get the error Fatal error: Telephone call to undefined function: imagecreatefromjpeg() in /include/picmgmt.inc.php on line 168. What does that mean?

This error ways that the version of PHP installed on your server does not support the GD1/GD2 paradigm library.
If you know that the ImageMagick suite is installed on your server, you lot could try using it instead. Otherwise, you will take to find some other webhost or convince your existing webhost to have GD1/GD2 installed (the GD epitome library is now a standard component of PHP and should ordinarily be installed and available, de facto). Coppermine won't run without gd or image magick.



When installing I get the error Warning: mkdir(dummy) [function.mkdir]: Permission denied in /your/path/to/coppermine/install.php on line 126. What does that mean?

The script must have the right to create and delete files.

  • on *nada/linux-webservers:
    chmod the coppermine directory (and all subdirectories) to 755 (rwxr-xr-x). To find more about chmod: check some of these fine chmod tutorials
  • on Windows/IIS:
    Check if the user the webserver runs the php-scripts under (usually chosen IUSR) has sufficient rights to read, execute, change, delete in the Coppermine folder. To notice out how, ask your webhost or read the server manual, if y'all're running your own server.
  • on Windows/Apache:
    Bank check the business relationship Apache runs under and ready the rights in the file-system.



I get the error "Warning: Empty Delimiter in search.inc.php line 33". What tin can I practice?

Edit the file include/search.inc.php
Look for the line with
$charset = $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'];
Replace information technology with :
$charset = $CONFIG['charset'] == 'language file' ? $GLOBALS['lang_charset'] : $CONFIG['charset'];



I go the fault Zero Sized Reply during install. What can I do?

On rare ocassions, some users experience this fault message during install:

While trying to recollect the URL: http://yoursite.com/coppermine/install.php The system returned: Cipher Sized Reply Reason: The remote server did not reply whatsoever data for this request. Delight try again later
Unfortunately, we even so exercise not know why this happens - those who become this error merely cannot utilize Coppermine (our apologies). Disabling or removing HTTP filtering on the firewall may aid (client and/or server stop). Should you have whatsoever idea as to what may exist causing this mistake (and even maybe come with a solution), please visit the Coppermine support board and enlighten us.


I have the error message Warning: Undefined index: SCRIPT_NAME in /www.your-domain.com/include/init.inc.php on line xc. What can I exercise?

Attempt to edit the file include/init.inc.php:
change

$PHP_SELF = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : $_SERVER['SCRIPT_NAME'];
to
$PHP_SELF = $_SERVER['PHP_SELF'];


When a user tries to upload a picture s/he gets the error bulletin Impossible to move somepic.jpg to albums/userpics/ | Warning: move_uploaded_file(/tmp/phpezCYKr) [function.move-uploaded-file]: failed to create stream: Operation not permitted. What's wrong?

You should contact the admin of your webhost considering you usually can't change the location of the website's temporary directory for file uploads, yourself (it is office of PHP configuration) .
If the open basedir restriction is in effect on your site then the temp directory for file uploads should be one that you can access.



When I try to upload a moving-picture show I become the error bulletin Alarm: opendir(./albums/edit): failed to open dir: No such file or directory. What's incorrect?

  • Make sure you have a folder named 'edit' in your albums folder.
  • Make certain the edit directory has been chmod to 777/755.
  • Make sure y'all accept completely upgraded to Coppermine 1.4.five


When uploading I get the error Warning: Undefined variable: HTTP_POST_VARS in include/init.inc.php on line 43. What can I do?

Check if your version of PHP fullfills the minimum requirements for Coppermine. If your version is iv.1.0 or better, and then this fault is probably acquired past a misconfiguration of your hosting server, and non a Coppermine issue. If the server isn't yours to configure properly (that is: if you're with a webhost), you can attempt this workaround (at your own risk):
Edit the file "init.inc.php" and look for

$PHP_SELF = isset($_SERVER['REDIRECT_URL']) ? $_SERVER['REDIRECT_URL'] : $_SERVER['SCRIPT_NAME'];
Supplant it with
$PHP_SELF = $_SERVER['PHP_SELF'];



Setup / configuration

How tin I include a link in an album description field or in the explanation of a pic?

Coppermine supports the following bbCodes (the same bbCodes that are used by phpBB) in image and album clarification:

code output
[b]bold text[/b]
bold text
[i]italic[/i]
italic
[url=http://world wide web.foo.com/bar.html]URL text[/url]
URL text
[electronic mail]user@domain.tld[/electronic mail]
user@domain.tld

I don't desire to prove the last uploads and/or random pictureson the starting time page. How practice I edit what's shown on the offset page of coppermine?

  1. login equally admin into your CPG setup
  2. click on "Admin Mode" if it is non already enabled
  3. Click on Config in the "Admin Bill of fare"
  4. nether "Anthology listing view" utilize the in a higher place provided keywords:
    • 'breadcrumb': navigation inside the gallery (e.g. "dwelling house > category > subcategory > album")
    • 'catlist': category list
    • 'alblist': album list
    • 'random': random pictures (leaving random pictures "on" for huge galleries with more 10,000 pics might consequence in performance problems; switch random "off" in this case)
    • 'lastup': terminal uploads
    • 'topn': well-nigh viewed
    • 'toprated': top rated
    • 'lastcom': last comments
    • 'lasthits': last viewed
    • 'lastalb': last created albums
    • 'anycontent': inserts php-generated custom content that YOU have coded into the file 'anycontent.php' and displays the content on the index folio. It tin be used to include banner-rotation scripts, welcome scripts, or like. Where information technology appears in the index folio is determined by it'south placement in the string example below.
    (e.thou. anycontent/catlist/alblist/random,2/lastup,ii translates to: "anycontent file contents, category list, anthology listing, 2 rows of random pics, two rows of terminal uploads" -- and will display in the order that they are listed)



How do I remove/edit the lesser line "Powered past Coppermine" ?

You mustn't remove the line - it'due south part of the deal: yous're immune to utilise and modify Coppermine on your site, simply this line must remain! Nosotros feel strongly that it is more than a justified demand to give credit where credit is due. We hope that you will agree with us and merely exist glad that such a smashing piece of software is available for utilise at NO Toll, with no banner ads or embedded spyware, to y'all.
You are allowed to modify the way the line looks past editing the CSS course to make it fit into the blueprint of your site; edit /themes/yourtheme/mode.css, look for the class "Footer" and change the settings there every bit you wish.
Notation: PLEASE don't ask idiotic questions on how to remove this line in the Coppermine Photo Gallery Support Board - your posting will exist deleted!



I want to buy a license for Coppermine (and get rid of the "Powered by Coppermine" line). How?

As Coppermine is based on OpenSource software published under GNU/GPL (which allows the modification of the code, merely disallows changes of the license model of your modifications), y'all can not purchase a version of coppermine with or without the credit line removed. Read the file COPYING that comes with the distribution of Coppermine for details.



I don't want to use the feature XYZ of Coppermine. How tin can I remove information technology?

Just remove the link; edit /themes/yourtheme/theme.php, look for the feature you desire to remove and comment out the HTML code.
Example: if y'all want to remove the ecard-characteristic, just await for

<td marshal="heart" valign="middle" class="navmenu" width="48"> <a href="{ECARD_TGT}" championship="{ECARD_TITLE}"> <img src="images/ecard.gif" width="16" height="16" edge="0" marshal="absmiddle" alt="{ECARD_TITLE}"></a> </td>
and supersede it with
<!--<td marshal="center" valign="center" form="navmenu" width="48"> <a href="{ECARD_TGT}" title="{ECARD_TITLE}"> <img src="images/ecard.gif" width="16" peak="16" border="0" marshal="absmiddle" alt="{ECARD_TITLE}"></a> </td>-->


How do I add a custom header/footer to Coppermine?

There are these files to look for:

  • if yous desire to add static html-content (for example your site logo), edit /themes/yourtheme/template.html - add/remove anything y'all want, but exist sure to leave everything in that is in brackets.
  • if you want dynamic content (or want to add PHP-code), edit the file /themes/yourtheme/theme.php
  • if yous want the edit the color scheme of a theme to match the "await-and-feel" of your site, edit /themes/yourtheme/style.css
  • for experienced php users, cpg 1.4.x introduces an alternative method of adding intricate custom headers or footers. Create a php file for your header and 1 for your footer using a format similar to the following:
                
    <?php
    echo <<<EOT

    Enter your header/footer content here. What you enter hither will be displayed
    at the top of my folio if it is a header and at the bottom of my page if it is a footer.

    EOT;
    ?>

    Proper name them myheader.php and myfooter.php, or any other original proper name that doesn't already exist in the cpg folder and save them into the Coppermine root folder. Then while in Admin mode, click on the CONFIG tab, scroll to Themes settings and enter the proper name of your header and footer files in the appropriate include fields at the bottom of this section. (Annotation: You will even so need to edit the template.html file of your theme to remove any unwanted logos and entries above the menu sections.)




How do I create an album that all users tin can add photos to?

(Assuming that you have already created at least one category and/or ane album where the uploaded photos should go to):

  • Log in as admin
  • Ostend that you are in admin mode
  • Select the Anthology list button
  • If you placed the album in a category, choose the category yous created the album in
  • Next to the appropriate album, click on "backdrop"
  • Set "Visitors can upload pictures" to "yeah" and click "update album"
  • Provide an upload link in your navigation menu if it's not already in that location (check /themes/yourtheme/theme.php)
  • Next, click on the Groups tab
  • For the grouping named "anonymous" - set the allowable space usage quota and upload rights



How tin I backup my coppermine database?

Currently, at that place are no congenital-in backup solutions for coppermine available, yet. To backup your directory/file construction, y'all must apply the skillful old ftp method and a tool like phpMyAdmin to backup your database (Many webhosts that offer mySQL also offer a pre-installed version of phpMyAdmin - if and so, use that!). PhpMyAdmin is piece of cake to install: just download the distribution, unzip information technology to your harddrive, edit one config file and upload it to your server. (NOTE: Some webhosts offer backup services. Yous should cheque if this service is available to you lot, commencement.)

Here's a quick "how to fill-in a database with phpMyAdmin" primer:

  • Download the software if it's not available to you, install it (recollect to password-protect it).
  • Point your browser to the location yous installed it on.
  • Select the database y'all desire to back up from the dropdown list in the left frame.
  • In "View dump (schema) of database" select the table(south) you want to back up (press CTRL to select more than than i table).
  • Marking "Structure and data"
  • Cheque "Salve every bit file"
  • Check "zipped"
  • DON'T bank check "Add together 'driblet table'" - your database volition be erased, if you do.
  • Press "go"
  • Save the file on your harddisk (depending on the speed of your connection this could have a while).



The fullsize-pic doesn't pop upwardly when clicking on the intermediate size pic. What'south wrong?

If you are certain that your original file is larger in dimensions than the settings you selected for intermediate sized pictures, there's a skillful take chances that you over-edited your theme's template/html file: make sure that the line <script type="text/javascript" src="scripts.js"></script> inside /themes/yourtheme/template.html is yet in that location to make the pop-upward window work...
The <head>-part of your template file should await like this:

<head> <title>{TITLE}</title> <meta http-equiv="Content-Blazon" content="text/html; charset={CHARSET}" /> {META} <link rel="stylesheet" href="themes/default/style.css" /> <script type="text/javascript" src="scripts.js"></script> </head>
- If yous're still unsure near this, only compare your theme's template.html with the default theme that comes with coppermine .


How can I let unregistered users see the thumbnails only, but non the actual pictures?

Edit displayimage.php and add
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
merely earlier

/************************************************************************** * Local functions definition **************************************************************************/


How tin can I forbid other sites from linking directly to the pictures in my gallery instead of the gallery page?

IF your webhost supports the apply of .htaccess files (you volition need to inquire them), you lot tin can prevent "hotlinking" by creating an .htaccess file in the albums folder.
Open your text editor and add the following lines, then save the file as .htaccess :

SetEnvIfNoCase Referer "^http://www.yourdomian.com/" locally_linked=one SetEnvIfNoCase Referer "^http://yourdomain.com/" locally_linked=one SetEnvIf Referer "^$" locally_linked=1 <FilesMatch "\.(gif|png|jpe?g)$">   Order Allow,Deny   Permit from env=locally_linked </FilesMatch>
This will only piece of work on linux/unix and apache servers AND simply if you're immune to use /htaccess files by your webhost or if y'all run your own server and "mod_rewrite" is enabled on your server .


I tried to change the linguistic communication on the config page, but it doesn't work. What'south incorrect?

"Grapheme encoding" is probably set (or has been prepare sometime ago) to UTF-viii on your config page.
When UTF-eight is selected, Coppermine chooses your language file based on your browser configuration and stores the value in a cookie. This overrides the value stored in the CONFIG.
To fix that:

  • Gear up "Graphic symbol encoding" to Default (linguistic communication file)
  • And so call the script with http://yoursite.com/coppermine_dir/index.php?lang=thirty (this will reset the cookie)



How do I permit all guests, not but registered users, to add comments to pictures?

  • log in every bit admin
  • admin mode
  • groups
  • "Anonymous" - "Tin postal service comments" - "yes"
  • Apply modifications
To change the settings on a per album basis, first, complete the above steps, then):
  • Log in as admin
  • Ostend that you are in admin fashion
  • In Category view, click on the album of choice
  • Select "Properties"
  • Set"Permissions for this album" - "Visitors can mail comments" - "Yes"
  • "Update album"



I tin can't upload with the upload feature. What's wrong?

If you experience the error message: No picture was uploaded. If you have really selected a picture to upload, cheque that the server allows file uploads..., check if there's a problem with HTTP uploads on your server - this feature may take been disabled or improperly configured. In phpinfo(), cheque that "file_uploads" is ON, "upload_max_filesize" is something like 2M and "upload_tmp_dir" is a valid directory!



How practise I change the order of categories?

  • Log in every bit admin
  • from the admin manner carte du jour strip
  • select the categories menu button
  • use the "arrow upwardly"- and "arrow down"-buttons to change the order of categories



I can't delete a certain movie with ftp. What can I do?

If yous tin can't delete a file or picture with your FTP software, it is not Coppermine that won't allow you to delete the picture; it is your FTP server. The problem is in the configuration of your server. Effort to delete your picture from within the script.

If PHP on your server is running under user "nobody," then all files created by any PHP script (this is not specific to Coppermine) will exist owned past "nobody". There is no style to modify that.

IMPORTANT: 0777 (CHMOD 777) should non exist the default mode for directories because information technology may present a security take chances, if your gallery is running on a shared server and PHP safety mode is not enabled, anyone with an business relationship on the same server could mayhap delete your pictures. There accept been several threads on this event on the Menalto Gallery forum and several users have seen their gallery hacked and destoyed because of this. This effect is not specific to Photo galleries, it applies to all PHP scripts that create directories. As long as someone has write access to a directory, southward/he could conceiveably delete any file information technology contains, even if that person doesn't accept write access to the file itself.

  We would prefer to have users complaining LOUDLY and REPEATEDLY that they have to constantly contact their sysadmin to set this or reset that or fifty-fifty uninstall Coppermine, and have THIS every bit an event and electing to switch to another gallery script because of this inconvenience, rather than acquire of one person devastated in finding that all his/her pictures have been erased by a hacker.

  Don't hold? Read this:
http://www.zend.com/manual/part.mkdir.php
http://www.zend.com/manual/function.chmod.php
earlier thinking of posting an argument in this forum.

  Ultimately information technology is the decision of the sysadmin on how due south/he volition elect to run PHP as an Apache module and if all files/dir created by PHP are to be owned past "nobodyquot;. And then sysadmins who have gear up up their servers every bit such, are in no position to complain when asked to remove certain files or directories.

On the webhost this site is running on, everything works fine when directory are created with style 755 and all files/dir created by PHP are endemic by the chezgreg user which is the user I use when connecting by FTP. Besides if one of the file/directory on my site has a mode of 777, the server will shutdown my site and ship me an email warning me that this is unsafe.

  Greg




I can't upload big pics or files. What's wrong?

The max. size of uploadable pics and/or files is limited by various settings - to find out why y'all tin can't upload big picks, check the following:

  • Make certain you accept plenty webspace left (think that you need space for the full size pic, the intermediate size flick and the thumbnail!)
  • When logged in as admin check your "Group" settings: the groups (fifty-fifty the admin grouping!) accept quota limits that can exist configured there
  • Browser time-out: the normally-used Internet Explorer has a time-out function: if your upload isn't finished within a sure menstruation, the browser volition time-out (this applies especially to dial-upwards connections)
  • At that place'are a maximum limits set in the PHP config of your server or webhosting server. If you're with a webhost there's very piffling you can do about it except ask them if they could help you out. If you're running your ain server, check php.ini and expect for LimitRequestBody - this value (in bytes) in the max upload immune by php/html



I can't login to Coppermine. What'southward wrong?

This is nigh likely a cookie consequence:

  • If you lot're running Internet Explorer half-dozen, yous'll have to enable the credence of cookies. Click on "Tools" - "Cyberspace Options" - "Privacy" and add your site to the list of sites that are trusted, or set the slider to a lower level.
  • Sometimes IE volition not handle Cookies properly. Close your browser, try deleting all local cookies manually and first your browser once more
  • Check if you're running a software that interferes with acceptance of cookies similar personal firewalls (ZoneAlarm, Tiny, Cookie Washer etc.) and turn them off to see if cookies are accepted then
  • Endeavor using another browser (like Opera, which is rather pocket-sized to download and can be removed hands). It's a generally a good idea to have some different browsers on your local machine to cheque if your site is displayed correctly not only in your favourite browser
  • If you're using subdomains and the dev version of coppermine or some modern on a different subdomain (like gallery.yoursite.com and board.yoursite.com) this could as well cause problems: a subdomain is a different domain (in fact foo.com and bar.com are subdomains of the tld ".com", so regarding cookies they are every bit dissimilar domains as bulletin board system.yoursite.com and comics.yoursite.com). Of course you can "hack some sense" into the scripts, but normally bbs are difficult to play a joke on to make them more hack-proof.



How can I alter the sorting club of the albums?

By default the albums appear in the guild they were created. If yous want to adjust the sorting club, exercise the following:




I don't use the intermediate pictures anymore. How tin I delete them to proceeds disk space?

Why would you desire to exercise that? Deleting the intermediate pics would disable many of the bang-up features that brand coppermine what is today. The pick to transport ecards, to add comments to pics, to charge per unit pics, to display exif information, simply to proper name a few. If you really want to save infinite, opt to delete your original files using the Admin Tools carte pick. Doing this volition let your users to enjoy all of coppermine's features with the exception of viewing total-sized images. In the end, it will probably save you more infinite every bit well. But be certain to set your intermediate sized picture settings in CONFIG to a size that you tin can live with.

If you really must remove the intermediate sized pics, search the mods and hacks lath in the coppermine forum to learn how.



How do albums and folders work in coppermine?

  1. When you create an album, information technology is a dynamic 'virtual' album. Coppermine doesn't create a physical folder for this album on the server'southward difficult bulldoze, information technology leaves the pictures where you put them on the server, and uses the database to know which pic belongs in which album. You tin can move pics from album to album in Coppermine, just it'due south all washed in the database, the pics are never moved on the server.
  2. When y'all upload by html, using the 'upload' link, coppermine places the pic (and the thumb and normal size copies) in the 'userpics' directory.
  3. When you upload by ftp, you should place the pics into folders that you lot create within the 'albums' folder, but never in the 'userpics' folder. The 'userpics' folder is reserved for html uploads only. You tin create as many folders/sub-folders for FTP uploads as you want. (Many webhosting services volition recommend that y'all keep the number of files per binder nether 500 in order to maximize speed and certain functions. This means y'all can upload upward to 500/3 files in each binder.) Y'all can name these folders anything y'all want, but we do recommend mirroring the category/album structures that you lot accept created, whenever possible, to facilitate ease of use and site direction.
  4. When you batch add files that you have already FTP'd to your site, coppermine asks you what album you desire to put the pics in, but it leaves the pics where they are on the server.


How can I move albums from ane category to another?

  • log in as admin
  • admin mode
  • create categories (using category manager from admin menu)
  • become to the index page of your gallery
  • click "Properties" adjacent to the anthology thumbnail
  • From the dropdown listing "Album category", choose the category the anthology should get to
  • Click "Update Album"


How can I move my gallery to another host?

  • Backup your files: FTP-download your complete coppermine-folder to your hard drive
  • use a tool like phpMyAdmin to get a dump (backup) of your mySQL database entries. More info here
  • verify your backup is working: cheque if the mySQL-dump contains all data (open up the zipped dump file and use a text editor to view it)
  • on the new server: FTP-upload your coppermine-folder to the new server
  • CHMOD the folder /albums to 755 or 777 (depending on your server config]
  • restore the mySQL table past running the queries of the dump files you created in step ii
  • examination-bulldoze your coppermine gallery - you should be washed


How do I show the same file in multiple albums?

The Album Keyword in Album Backdrop is used to link images from 1 album into some other. Using this method, files/images can be displayed in various albums while the file itself need just exists in one album on your webserver. You lot simply upload a file to one album as yous would normally do, so assign i or more keywords to the file. The keyword function reads blank spaces betwixt words equally a 'interruption' and assumes that these words are divide words. If you must use phrases for your keywords, connect them with an underscore or by using the ascii space holder ctrl+Alt+0160 (NOTE: the latter option simply works with latin based grapheme sets.) Each anthology tin can only have ONE (one) keyword or keyword phrase. All pictures residing in dissimilar albums that you would like to be displayed in this album must have the aforementioned keyword or keyword phrase in their respective keyword fields. Pictures, unlike albums, can have multiple keywords or keyword phrases separated by spaces. This provides you with the choice to display pictures in many albums. For the company of these albums, it will appear as if the file/image had been uploaded to each.

If you lot use album keywords to display images/files in more than one anthology, enabling the Config option, Prove number of linked files, will brandish boosted information for the anthology stats. That is, if an anthology doesn't only contain "regular" files, but files linked via the "anthology keyword" option as well, the number of linked files will be displayed separately like this "iii files, last one added on Oct 07, 2004, 3 linked files, half dozen files total".



Add-ons / Modifications / Hacks

How can I modify the guild of the pics when editing them?

By default, the pics are shown alphabetically when yous edit them. To change the sorting club to "by appointment", edit editpics.php and modify
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE assistance = '$album_id' ORDER Past filename LIMIT $start, $count");
to
$result = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE assist = '$album_id' Lodge BY pid LIMIT $start, $count");



How tin I create a bill of fare that's shown on the correct side of the gallery?

When the template.html is read, it is split up in 2. What is before the {GALLERY} tag is output by the pageheader part, what is later by the pagefooter office.
If your bill of fare is in the "footer" you demand to modify your theme.php file

        $template_vars = array(       '{LANG_DIR}' => $lang_text_dir,       '{Title}' => $CONFIG['gallery_name'].' - '.$department,       '{CHARSET}' => $CONFIG['charset'] == 'linguistic communication file' ? $lang_charset : $CONFIG['charset'],       '{META}' => $meta,       '{GAL_NAME}' => $CONFIG['gallery_name'],       '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],       '{MAIN_MENU}' => theme_main_menu(),       '{ADMIN_MENU}' => theme_admin_mode_menu()    );     repeat template_eval($template_header, $template_vars);
will become
        $template_vars = array(       '{LANG_DIR}' => $lang_text_dir,       '{Title}' => $CONFIG['gallery_name'].' - '.$section,       '{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],       '{META}' => $meta,       '{GAL_NAME}' => $CONFIG['gallery_name'],       '{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],    );     repeat template_eval($template_header, $template_vars);
and
echo $template_footer;
will become
        $template_vars = array(       '{MAIN_MENU}' => theme_main_menu(),       '{ADMIN_MENU}' => theme_admin_mode_menu()    );     repeat template_eval($template_footer, $template_vars);



How can I send a user directly to his private anthology once he logs in?

edit

login.php

and search for

pageheader($lang_login_php['login'],"<META http-equiv=\"refresh\" content=\"iii;url=$referer\">");

and add together before it

$referer = 'index.php?cat='.(FIRST_USER_CAT+$USER_DATA['user_id']);


How tin I prevent unregistered users from viewing the gallery?

In Config, when "Allow unlogged users (guest or anonymous) access" is set to "No", unlogged users (i.east. guests or anonymous users) can not access anything in your gallery except the login screen (and the registration screen, if you allow registrations). Completely disabling bearding access will probably decrease your site'due south popularity. Use this option merely if you need your gallery to exist absolutely individual. The recommended setting is to go out anonymous access enabled and use the more than specific permissions past groups and albums settings instead.

How tin I display the name of the uploader with the motion picture info?

Warning: this is quite a complicated hack for a newbie to perform! Make sure to support your original files before attempting this.
Edit displayimage.php and search for:

$info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);

add after information technology:

$info[$lang_picinfo['Username']] = htmlspecialchars($CURRENT_PIC_DATA['user_name']);

.
Then open /include/functions.inc.php and search for following in part get_pic_data():

if($select_columns != '*') $select_columns .= ', title, caption';

and replace it with:

if($select_columns != '*') $select_columns .= ', championship, caption, user_name';

.
After that search for:

$outcome = cpg_db_query("SELECT $select_columns from {$CONFIG['TABLE_PICTURES']} WHERE aid='$album' $approved $ALBUM_SET Social club Past $sort_order $limit");

and replace it with:

$outcome = cpg_db_query("SELECT $select_columns from {$CONFIG['TABLE_PICTURES']} AS p LEFT Bring together {$CONFIG['TABLE_USERS']} As u ON u.user_id = p.owner_id WHERE p.assist='$album' $canonical $ALBUM_SET Society By $sort_order $limit");

Then you have to add together the language cord for the username. Open up /lang/yourlang.php and search for:

$lang_picinfo = array(

and add later that:

'Username' => 'Username',

Also you lot need to execute this query in MySQL (with a tool like phpMyAdmin):

ALTER TABLE `cpg11d_pictures` ADD INDEX ( `owner_id` );

(Notation: If your database table_prefix is not "cpg11d_", y'all volition demand to change it in the query)



How exercise I enable clickable links in custom user fields?

Edit displayimage.php and change

$info[$CONFIG['user_field'.$i.'_name']] = make_clickable($CURRENT_PIC_DATA['user'.$i]);

into

$info[$CONFIG['user_field'.$i.'_name']] = bb_decode($CURRENT_PIC_DATA['user'.$i]);

  This volition allow you to use BBCodes in the custom fields: you tin can and then take something like

[url]http://www.somesite.com/foo/bar.php?whatever=42[/url]

or

[url=http://www.somesite.com/foo/bar.php?whatever=42]link to some site![/url]

in your custom user fields (the brandish of which, of course, has to be enabled in the config page, brainstorm with).



How can I sort the thumbnails by user defined (custom) fields?

  1. Edit /includes/functions.inc.php
    change
    $sort_array = array('na' => 'filename ASC', 'nd' => 'filename DESC', 'da' => 'pid ASC', 'dd' => 'pid DESC');          
    to
                $sort_array = array(       'na' => 'filename ASC',       'nd' => 'filename DESC',       'da' => 'pid ASC',       'dd' => 'pid DESC',       'f1a' => 'user1 ASC',       'f1d' => 'user1 DESC',       'f2a' => 'user2 ASC',       'f2d' => 'user2 DESC',       'f3a' => 'user3 ASC',       'f3d' => 'user3 DESC',       'f4a' => 'user1 ASC',       'f4d' => 'user1 DESC'    );          
  2. Edit /themes/yourtheme/theme.php
    • change
                      // The sort order options are not bachelor for meta albums    if ($sort_options){        $param = array(          '{ALBUM_NAME}' => $album_name,          '{Aid}' => $help,          '{PAGE}' => $page,          '{NAME}' => $lang_thumb_view['name'],          '{Engagement}' => $lang_thumb_view['engagement'],          '{SORT_NA}' => $lang_thumb_view['sort_na'],          '{SORT_ND}' => $lang_thumb_view['sort_nd'],          '{SORT_DA}' => $lang_thumb_view['sort_da'],          '{SORT_DD}' => $lang_thumb_view['sort_dd'],          );

      to
                      // The sort guild options are non available for meta albums    if ($sort_options){        $param = assortment(          '{ALBUM_NAME}' => $album_name,          '{Assistance}' => $help,          '{PAGE}' => $folio,          '{Proper noun}' => $lang_thumb_view['name'],          '{DATE}' => $lang_thumb_view['engagement'],          '{SORT_NA}' => $lang_thumb_view['sort_na'],          '{SORT_ND}' => $lang_thumb_view['sort_nd'],          '{SORT_DA}' => $lang_thumb_view['sort_da'],          '{SORT_DD}' => $lang_thumb_view['sort_dd'],          // Exxodus Sorting          '{FIELD1}' => $CONFIG['user_field1_name'],          '{FIELD2}' => $CONFIG['user_field2_name'],          '{FIELD3}' => $CONFIG['user_field3_name'],          '{FIELD4}' => $CONFIG['user_field4_name'],          // Exxodus Sorting          );
    • modify the lines after $template_thumb_view_title_row similar this:
      // HTML template for championship row of the thumbnail view (anthology championship + sort options) // Exxodus (Calculation Sorting past UserField) $template_thumb_view_title_row = <<<EOT           <table width="100%" cellpadding="0" cellspacing="0">          <tr>             <td width="100%" grade="statlink"><h2>{ALBUM_NAME}</h2></td>             <td><img src="images/spacer.gif" width="1"></td>             <td class="sortorder_cell">                <tabular array height="100%" cellpadding="0" cellspacing="0">                <tr>                   <td class="sortorder_options">{NAME}</td>                   <td course="sortorder_options"><bridge class="statlink">                   <a href="thumbnails.php?anthology={Help}&page={PAGE}&sort=na" title="{SORT_NA}">&+&</a>/</span></td>                   <td class="sortorder_options"><span class="statlink">                   <a href="thumbnails.php?album={AID}&page={Folio}&sort=nd" title="{SORT_ND}">&-&</a></span></td>                </tr>                <tr>                   <td course="sortorder_options">{DATE}</td>                   <td class="sortorder_options"><span class="statlink">                   <a href="thumbnails.php?anthology={AID}&page={PAGE}&sort=da" title="{SORT_DA}">&+&</a>/</span></td>                   <td class="sortorder_options"><span form="statlink">                   <a href="thumbnails.php?anthology={AID}&page={Folio}&sort=dd" title="{SORT_DD}">&-&</a></span></td>                </tr>                </tabular array>             </td>             <td><img src="images/spacer.gif" width="10"></td>             <td class="sortorder_cell">                <table height="100%" cellpadding="0" cellspacing="0">                <tr>                   <td class="sortorder_options">{FIELD1}</td>                   <td class="sortorder_options"><span class="statlink">                   <a href="thumbnails.php?album={AID}&page={PAGE}&sort=f1a">&+&</a>/</bridge></td>                   <td class="sortorder_options"><span class="statlink">                   <a href="thumbnails.php?album={AID}&page={Folio}&sort=f1d">&-&</a></span></td>                </tr>                <tr>                   <td grade="sortorder_options">{FIELD2}</td>                   <td class="sortorder_options"><span class="statlink">                   <a href="thumbnails.php?album={AID}&page={PAGE}&sort=f2a">&+&</a>/</span></td>                   <td class="sortorder_options"><bridge class="statlink">                   <a href="thumbnails.php?album={Assist}&folio={PAGE}&sort=f2d">&-&</a></span></td>                </tr>                </table>             </td>             <td><img src="images/spacer.gif" width="ten"></td>             <td form="sortorder_cell">                <table elevation="100%" cellpadding="0" cellspacing="0">                <tr>                   <td grade="sortorder_options">{FIELD3}</td>                   <td class="sortorder_options"><bridge class="statlink">                   <a href="thumbnails.php?album={Assistance}&page={PAGE}&sort=f3a">&+&</a>/</span></td>                   <td class="sortorder_options"><span form="statlink">                   <a href="thumbnails.php?album={AID}&page={PAGE}&sort=f3d">&-&</a></span></td>                </tr>                <tr>                   <td course="sortorder_options">{FIELD4}</td>                   <td class="sortorder_options"><bridge class="statlink">                   <a href="thumbnails.php?album={Assistance}&folio={PAGE}&sort=f4a">&+&</a>/</bridge></td>                   <td class="sortorder_options"><span class="statlink">                   <a href="thumbnails.php?album={Assist}&folio={Page}&sort=f4d">&-&</a></bridge></td>                </tr>                </table>             </td>          </tr>          </table>  EOT;



How do I enable IPTC support?

Edit /includes/picmgmt.inc.php and search for
$imagesize = getimagesize($prototype);
supplant this with:

$imagesize = getimagesize($image,&$info); $iptc = iptcparse($info["APP13"]); if (is_array($iptc)) { $caption.=$iptc['2#120'][0]; $championship.=$iptc['2#105'][0]; (is_array($iptc['2#025'])) && ($keywords.=implode(" ", $iptc['2#025'])); }
NOTE: This hack hasn't been thoroughly tested, utilise at your own risk...!


How tin can I add some output straight before the line "Powered by Coppermine"?

Edit /themes/yourtheme/theme.php, expect for echo $template_footer and add the stuff yous want to output in a line before information technology, like impress '<bridge class="footer"><a href="http://www.mylink.com/foo.htm">My Link</a></span>';



Common PHP errors and how to get rid of them...

In that location are a lot of people (particularly PHP newbies) that mail service questions like I get the fault "Parse error: parse error in Thirty" and don't know what to exercise about it. That'southward why I translated this list of common errors (and a solution how to fix them) from the original german article in Dr. Web :

  • Parse error: parse error in C:\Apache\htdocs\read.php on line 8 - This mistake message refers to an error in the PHP syntax. Y'all probably forgot to end a line with ; or you have too many brackets opened or closed ({).
  • Fatal error: Call to unsupported/undefined function ... in C:\Apache\htdocs\read.php on line 8 - This fault means that the office your script was going to employ isn't divers in the current PHP version with modules, or if you're using user-defined functions that your function hasn't been defined all the same (this is normally caused if you forgot to include the function definition).
  • Alert: Wrong parameter ... for ... in C:\Apache\htdocs\read.php on line 8 - you have handed over likewise many (or the wrong) parameters to the function. If it's a born php-function, cheque the manual; to see if it'southward a user-divers function, then recheck your code.
  • Warning: Cannot add header information - header was already sent ... in C:\Apache\htdocs\read.php on line iv - you lot had some text output first (e.g. the doctype declaration or <html>) and called the office header() subsequently. This is almost often the case when using cookie stuff. Recall you can not use header() twice!
  • Parse error: parser stack overflow in C:\Apache\htdocs\read.php - PHP is out of memory - this usually happens if you congenital an eternal loop, particularly when using include statements.
  • Warning: fopen("file.txt","r+") - No such file or directory - the requested file or directory doesn't exist. Check the spelling (accuracy counts hither).
  • SAFE MODE Restriction in upshot. The script whose uid is 531 is non immune to access... - The safe manner is switched on. Some functions in the upload systems can't be used. Usually your webhost has put prophylactic mode in place (often non correctly configured). Try switching silly_safe_mode on.



Can I rename template.html to template.php to include PHP code in my template?

No, this is merely not the manner coppermine works; for "normal" pages the proper name of the extension tells the webserver whether the file should be parsed past the PHP interpreter. The template files inside the themes folder are non being parsed this way - the extension .html was just chosen to make editing easier. You can not take PHP code in the template file, no matter how yous name it - that's all in that location is to it!



How can I prevent users from saving (stealing) my pictures?

You can not completely forestall users from stealing your pics - that'southward the mode the world wide web works: if a picture is existence displayed in the browser, the user already has a copy of it on his hard bulldoze. At that place are notwithstanding some methods to make it harder for newbie users to steal your pics:

  • Add a watermark to your images before y'all upload them
  • Apply i of the watermark-hacks: Coppermine support lath / mods / Watermarking hack (w/ ImageMagick), Coppermine support lath / mods / Watermark on a per image footing (GD), Coppermine support board / mods / Permanent Watermark with GD2. Please note that those hacks volition outcome in a loftier server load, every bit the watermark is applied to a moving-picture show each time a users views the picture in his browser.
  • Prevent Internet Explorer to prove the image toolbar when a user hovers over a pic with the mouse. Edit themes/yourtheme/template.html, find <meta http-equiv="Pragma" content="no-cache" /> and add subsequently it <meta http-equiv="imagetoolbar" content="no" />
  • Use one of the many "no right-click" scripts that are bachelor (e.g. Coppermine support board / mods / no right-click or codelifter.com: no right-click)



I'one thousand running my own server

How do I enable gd on my Windows server?

GD ane.x two.x are normally office of all standard PHP distributions nether Windows
To check if y'all have it, go to the directory where yous installed PHP, go to the "extensions" subdir and encounter if you have a file named "php_gd2.dll".
Ocassionally, you will also need to edit your php.ini file (located in windows directory commonly) and remove the ";" that is at the start of the line:
extension=php_gd2.dll (at the terminate of the file). This volition cause PHP to load the GD2 extension.
Whenever y'all brand changes to php.ini, call up that yous volition demand to restart your webserver before changes become constructive.
ImageMagick it quite complicated to use under Windows
Greg



How practise I enable ImageMagick on my Windows server?

ImageMagick is quite complicated to gear up on Windows. There are several things to be taken into account. The Coppermine support board is non the right place to inquire for help on installing it, as it deals with Coppermine, not "How to set up a server" (most people on the Coppermine boards don't run their own webserver, but they have webspace past a webhost). Instead, try to find support boards on the internet that deal with this special topic.



Coppermine Support board

These are (alas) not-so-frequently-asked-questions on the back up board. Before posting on the Support board (or, in fact, whatsoever board), please read this:

I don't know PHP/mySQL...

No trouble with that, everyone stars equally a newbie. But don't start each and every posting by stating "I'm a newbie", "I don't know annihilation virtually PHP" etc.
Commonly, one tin can acertain that from your question itself. There's no demand to apologize. Most of united states can nevertheless remember when we were in your shoes.



I've posted my question a while ago, simply nobody answers. What the...?

The support board is non a hotline. Although at that place are many visitors to the site, only a few exercise actually back up - on a unpaid, voluntary ground. Yes, nosotros don't receive remuneratio for our contributions and we each have a life, a job, family unit and more. We are away sometimes, besides. And then, delight, be patient, read the docs and search the boards while you are waiting.
If you don't get an respond to your question:

  • make sure y'all have given us enough time to react (days, non hours!)
  • maybe nobody knows the answer to your problem
  • possibly your question has been asked very frequently
  • maybe your posting has been rude or impolite and you're ignored for that reason
  • maybe you requested a feature that requires a lot of coding, and none of those who are able to do information technology have a need for the feature



How should I write my question?

If you lot accept a question, make sure you provide every bit much data as possible:

  • a link to your gallery, with a test account ID and exam account password, is most ofttimes the but style to help - provide it with your question, or even better: edit your profile on the support board and enter the url of your page there!
  • when addressing server bug, brand sure to provide information on your server (OS, server, PHP version, mySQL version, gd lib version, condom way on/off?). Well-nigh information can be retrieved past phpinfo()
  • if it's a client issue, give us information at to the lowest degree to your customer's Os and browser
  • Give us a screenshot, if necessary
  • use a proper subject line: state in the discipline line what your question is actually nigh! Virtually supporters are reluctant to answer to a posting that has a silly subject area line like "I have a question" or "Install trouble" or "feature request" or "assist me pleeeeaaaase"



I've meet problem. What should I do commencement (earlier posting on the board)?

  • read the readme that comes with the coppermine distribution
  • read the documentation
  • read this FAQ
  • Search the back up board
  • enable debug mode (log in every bit admin, admin mode, config, debug mode)
  • cull the right support board: if you're running the phpnuke-port of coppermine, don't mail service in the back up lath for the standalone version and vice versa



Hey, by looking at your profile I can see you're German language/French/Whatsoever. Can I post a question in that linguistic communication?

If y'all are posting in the English support boards, pPlease do not post in some other language - in this way, others may benefit from your question (and the answers you receive ), too. Don't be afraid to write "poor english" - no i will laugh at you, and nearly of our visitor's commencement language isn't english language to begin with! There's a german back up board available at http://forum.the-service.de/ - use it if you are more comfy with German language and you' not able to write in English!

Nosotros have linguistic communication-specific support boards for Chinese and French.



May I email/pm/im you for support?

No you mustn't! Mail service your question on the Coppermine support board (publicly) - if nosotros (the customs) don't find a solution and I accept the time and I desire to I'll email/pm/im you!



Who are yous anyway?

We are a group of people who decided to class a team to develop Coppermine further - check the team page for details...



  This FAQ is a work in progress, please contribute in the Coppermine Photograph Gallery Support Board (don't contact me to ask for fixes of your Coppermine install). Delight report whatever bugs, typos etc.
Check the online-version of this document for updates!
Have fun!

GauGau (aka Joachim Mueller) - coppermine dev team




SourceForge.net Logo Powered past Sourceforge.net

richardsonshance.blogspot.com

Source: https://www.novorotary.ru/coppermine/docs/faq.htm

0 Response to "Deleted Files Still Showing When Uploading New Pics Coppermine Gallery"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel