Frage: Wie bekomm ich es so hin, das in der gallery_show.htm und gallery.htm der Nick angezeigt wird von wem es hochgeladen wurde ?
Zuletzt modifiziert von Shoutala am 28.11.2010 - 17:37:33
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
ALTER TABLE `prefix_gallery_imgs` ADD `nid` VARCHAR( 250 ) NOT NULL ;
db_query("INSERT INTO prefix_gallery_imgs (cat,datei_name,endung,besch,nid) VALUES ('".$_POST['cat']."','".$name."','".$endung."','".$_POST['besch']."','".$_SESSION['authid'].'")");
'".$_POST['besch']." Userpload von ".$_SESSION['authname']."'
ALTER TABLE `prefix_gallery_imgs` ADD `uploader` varchar(50) NOT NULL
$erg = db_query("SELECT prefix_gallery_imgs.id,prefix_gallery_imgs.cat,datei_name,endung,prefix_gallery_imgs.`besch`,klicks,vote_wertung,vote_klicks FROM prefix_gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = ".$cid." AND (recht >= ".$_SESSION['authright']." OR recht IS NULL) ORDER BY id ASC LIMIT ".$page.",1");
$erg = db_query("SELECT prefix_gallery_imgs.id,prefix_gallery_imgs.cat,datei_name,endung,prefix_gallery_imgs.`besch`,prefix_gallery_imgs.uploader,klicks,vote_wertung,vote_klicks FROM prefix_gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = ".$cid." AND (recht >= ".$_SESSION['authright']." OR recht IS NULL) ORDER BY id ASC LIMIT ".$page.",1");
'besch' => unescape($row['besch']),
'besch' => unescape($row['besch']), 'uploader' => $row['uploader'],
$erg = db_query("SELECT prefix_gallery_imgs.id,prefix_gallery_imgs.cat,datei_name,endung,prefix_gallery_imgs.`besch`,klicks,vote_wertung,vote_klicks FROM prefix_gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = ".$cid." AND (recht >= ".$_SESSION['authright']." OR recht IS NULL) ORDER BY id ASC LIMIT ".$anfang.",".$limit);
$erg = db_query("SELECT prefix_gallery_imgs.id,prefix_gallery_imgs.cat,datei_name,endung,prefix_gallery_imgs.`besch`,prefix_gallery_imgs.uploader,klicks,vote_wertung,vote_klicks FROM prefix_gallery_imgs LEFT JOIN prefix_gallery_cats ON prefix_gallery_imgs.cat = prefix_gallery_cats.id WHERE prefix_gallery_imgs.cat = ".$cid." AND (recht >= ".$_SESSION['authright']." OR recht IS NULL) ORDER BY id ASC LIMIT ".$anfang.",".$limit);
db_query("INSERT INTO prefix_gallery_imgs (cat,datei_name,endung,besch) VALUES ('".$_POST['cat']."','".$name."','".$endung."','".$_POST['besch']."')");
db_query("INSERT INTO prefix_gallery_imgs (cat,datei_name,endung,besch,uploader) VALUES ('".$_POST['cat']."','".$name."','".$endung."','".$_POST['besch']."','".$_SESSION['authname']."')");
<strong>{_lang_filename}:</strong> {datei_name}
<strong>{_lang_filename}:</strong> {datei_name} <br /><strong>Uploader:</strong> {uploader}
<tr> <td class="Cmite"><strong>{_lang_desc}:</strong>: {besch}</td> </tr>
<tr> <td class="Cmite"><strong>{_lang_desc}:</strong>: {besch}</td> </tr> <tr> <td class="Cmite"><strong>Uploader:</strong>: {uploader}</td> </tr>
db_query("INSERT INTO prefix_gallery_imgs (cat,datei_name,endung,besch) VALUES (".$menu->get(2).",'".$name."','".$endung."','".$besch."')");
db_query("INSERT INTO prefix_gallery_imgs (cat,datei_name,endung,besch,uploader) VALUES (".$menu->get(2).",'".$name."','".$endung."','".$besch."','".$_SESSION['authname']."')");
Geschlossen | ||
Zurück zu Module und Modifikationen |