Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Liste aller Fotos  (Read 3142 times)

0 Members and 1 Guest are viewing this topic.

mirk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Liste aller Fotos
« on: February 19, 2007, 12:33:39 am »

Hi com

habe etwas herumgesucht aber english ist nicht meine stärke.

Gibt es einen Plugin das mir eine Seite erstellt mit allen Fotos. Fotonamen als Linkt zum Foto. Ich hoffe man versteht mich. ich suche ein modul das mir alle fotos mit namen auflistet und mit dem entsprechendem foto verlinkt

danke & gruss
mirk
« Last Edit: February 23, 2007, 07:52:02 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Liste aller Fotos
« Reply #1 on: February 21, 2007, 04:48:39 pm »

Ich hoffe man versteht mich.
Sorry, verstehe nicht. Das ist doch genau das was Coppermine tut - wofür braucht es noch ein Plugin? Was soll das Wunder-Plugin genau tun?
Logged

mirk

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: Liste aller Fotos
« Reply #2 on: February 23, 2007, 02:50:25 am »

eine seite auf der namen aller fotos gelistet werden mit dem link zum foto. eine art sitemap. brauche ich für indexierung bei suchmaschinen. habs gefunden im englishen teil des forum... hat etwas gedauert aber ich war mir sicher das es sowas sicher schon gibt. wers braucht (um allen weiteren das suchen zu ersparren:

Code: [Select]
<?php 
define
('IN_COPPERMINE'true);

require(
'include/init.inc.php');
pageheader(Fotoindex);

// Select all photos
$result mysql_query("SELECT a.pid, a.aid, a.title, a.caption, a.keywords, b.title atitle from {$CONFIG['TABLE_PICTURES']} a, {$CONFIG['TABLE_ALBUMS']} b where a.aid = b.aid order by a.aid, a.pid desc");
if (!
mysql_num_rows($result)) cpg_die(ERROR$lang_errors['non_exist_ap']);

$p_aid = -;

// Result to table
starttable("100%"Fotoindex3);

   while (
$row mysql_fetch_array($result)) 
        { 
                if (
$row[aid] != $p_aid) {
                  echo 
"<tr><td class=\"tableh2\" colspan = \"3\">$row[atitle]</td></tr>" ;
            }
            
// weer geef de data 
            
echo "<tr><td><a href=\"displayimage.php?pos=-$row[pid]\" title=\"$row[title]\">$row[title]</a></td><td>$row[caption]</td><td>$row[keywords]</td></tr>"
       
$p_aid $row[aid] ;
    } ; 
// while
                
endtable();
pagefooter();
?>

als php file abspeichern > hochladen > verlinken > fertig

gruss mirk
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Liste aller Fotos
« Reply #3 on: February 23, 2007, 07:51:51 am »

Bitte Link zum Original-Thread posten anstelle des Erzeugens von Code-Doubletten.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.