|
Home
Black&White
Fotogramme
Infrarot
Kategorien
Lightbox
Lochkamera
Portrait
Advanced
___________
Service:
EDV-Manuals Belichtungszeitentabelle
Schrauben u. Gewinde
Einführung in die:
Beurteilung v. Negativen
Farbmischung
Filmentwicklung
Infrarotfotografie
Blitzlichtfotographie
Entwicklungszeiten:
Agfa Rodinal
Kodak D76
Tiefenschärferechner:
Komplex
Einfach
Fotolabor
Kontakt / Impressum
______
Zähler:
Bilder pro Gast
Zugriffszähler
myPHPadmin
B4YCounter
Login
Logout
Files
Alle Bilder als Link
|
CpmFetch dient dazu, Bilder aus der
Coppermine Datenbank auf einen fremden Webseite darzustellen
|
Bildcounter auf Coppermine erste
|
Download
copperminefetch-2.0.0.zip
Beispielkonfiguration:
Die 4 zuletzt hochgeladenen Bilder werden mit Titel und Beschreibung angezeigt.
Den Code einfach an die Stelle kopieren, wo die Bilder auftauchen sollen.
<?php
include_once "./cpmfetch/cpmfetch.php";
$objCpm = new cpm("./cpmfetch/cpmfetch_config.php");
$options = array("subtitle" => "<b>{{pTitle}} </b><br> {{pCaption}}");
$objCpm->cpm_viewLastAddedMedia(1, 4, $options);
$objCpm->cpm_close();
?> |
CpmFetch 2.0.0 Coppermine 1.4 -> Umlaute werden nicht korrekt dargestellt
Folgenden Eintrag in die cpmfetch_dao.php einfügen:
function dbExecuteSql ($sqlcode, $convert
= true) {
$this->dbConnect();
$this->lastSQLRowsReturned = 0;
$this->lastSQLErrorMessage = "";
$results = array();
mysql_query('SET NAMES utf8');
$resultset = mysql_query($sqlcode, $this->dbconnection);
if (!$resultset) {
print mysql_error($this->dbconnection);
print "<p>{$sqlcode}</p>";
$this->lastSQLErrorMessage = mysql_error($this->dbconnection);
$this->lastSQLRowsReturned = 0;
} |
16.02.2008 J.Schilling
|
| |