MyXoops Forum

Forum - myXOOPS German Support

2 + 6 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: Bestes Xoops Modul für Gallery

Betreff: Re: Bestes Xoops Modul für Gallery
von goeli am 07.03.2003 21:07:12

also ich fand nach einigen Beispiel Gallerys die Gallery 1.3.3 besser und hab die mal installiert.
Nun wäre da noch das Problem mit der Postcard funktion. Ich hab mich da mal ein bisschen auf der Seite von Gallery schlau gemacht und bin schlussendlich auf diese Thread hier gestossen:
http://gallery.menalto.com/modules.php?op=modload&name=phpBB_14&file=index&action=viewtopic&topic=109&6724

Nun funzt da keine einzige Installation bei mir. War ja eigentlich im Voraus schon klar. Habe mich darum selber ein bisschen ins Dateichaos (zumindest für mich) gehauen und rausgefunden, dass es im html_wrap Verzeichnis der xoopsgaller eine Datei namens inline_photo.header.default gibt.
Standartmässig ist dort folgender Text vorhanden:
<?php
// This is the default photo header (for the gallery photo
// page: view_album.php). It's companion is inline_photo.footer.default.
//
// To override this header, create a file called inline_photo.header
// in this directory.
//
// NOTE: This header gets inserted above each photo
//
// Some tips:
// $GLOBALS['index'] is the index of the photo
// $gallery->album is the current album
// $gallery->album->getPhotoId() is the id of the current photo
//
?>

Damit nun Postcard läuft, sollte ich eine Datei namens inline_photo.header mit folgendem Inhalt erstellen:
<?
$photo = $gallery->album->getPhoto($GLOBALS["index"]);
if ($photo->isResized()) {
$name = $photo->image->resizedName;
} else {
$name = $photo->image->name;
}
$url = $gallery->album->getAlbumDirURL("full") .
"/" .
$name . "." . $photo->image->type;
?>
<center><a
href="<?= $gallery->app->photoAlbumURL ?>/gallery_cards_send.php?photo_name=<?=
$url ?>" ><font="verdana" size="3"><b>
> > To Create and Send a Custom Postcard - Click Here < <
</b></a></font><br><br></center>

Kann mir jemand von euch helfen?
thx göli

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag
Modulentwicklung New Xoops Xcreate Module 0 5319 26.11.2025 15:22
efkan Gehe zum letzten Beitrag
Modulentwicklung XOOPS Custom Field Module 1 1810 24.11.2025 11:21
Goffy Gehe zum letzten Beitrag