View Full Version : latest thumb addon funktioniert nicht
locopoco
08-17-2007, 10:36 AM
hallo,
das latest thumbs addon funktioniert bei mir nicht.
ich habe
Pixelpost 1.6 vom März 07
Page-By-Page-Archive
ein Beispiel:
http://www.mittelwelle.com/about.php
PHP-version 4.3.10-16 (Pixelpost ist lauffähig ab PHP-Version: 4.3.0 )
Session save path /var/lib/php4
MySQL version 4.1.11-Debian_4sarge2-log (Pixelpost benötigt mindestens die MySQL-Version: 3.23.58 )
GD-lib 2.0 or higher mit Unterstützung des JPEG-Formates
Das Hochladen von Dateien zur Ihrer Pixelpost Installation ist possible.
Server Software: Apache/2.0.54 (Debian GNU/Linux) mod_jk2/2.0.4 PHP/4.3.10-16 mod_perl/1.999.21 Perl/v5.8.4
EXIF Pixelpost verwendet exifer v1.5 für die EXIF-information.
ich habe keine idee...
Dennis
08-17-2007, 01:14 PM
Was bedeutest du mit "funktioniert nicht"?
Hast du die installation vorschriften befolgt?
locopoco
08-18-2007, 07:05 AM
Was bedeutest du mit "funktioniert nicht"?
Hast du die installation vorschriften befolgt?
diese version von latest_thumb.php habe ich installiert.
so möchte ich das Thumb aufrufen.
<img src='http://www.mittelwelle.com/werke/index.php?showthumb=latest&thumbtag=image' width="100" height="75" />
<?php
/*
Pixelpost version 1.4.1
Datetime addon version 1.1
Addon developer: Ramin Mehran (Raminia)
Pixelpost www: http://www.pixelpost.org/
// usage
1) copy the addon to addons folder of Pixelpost
2) Use this tag to show the latest thumbnail of Pixelpost photblog on other pages on the web!
<img src='http://www.your_photoblog.com/index.php?showthumb=latest&thumbtag=image' />
you can make a link to it as
<a href='http://www.your_photoblog.com/' ><img src='http://www.your_photoblog.com/index.php?showthumb=latest&thumbtag=image' /> </a>
don't forget to replace the http://www.your_photoblog.com/ with you photblog address!
// TODO for future versions:
Showing title of the latest post as a tool tip on the image
*/
$addon_name = "Image link to latest thumb";
$addon_description = "Makes a link to Pixelpost's latest thumbnail. ";
$addon_version = "1.0";
// latest thumb
if ($_GET['showthumb']=='latest')
{
// get current time
$datetime = date("Y-m-d H:i:s");
$cdate = $datetime; // for future posting
// Get Current Image.
$query = mysql_query("select image,headline,datetime,id from ".$pixelpost_db_prefix."pixelpost where datetime<='$cdate' order by datetime DESC limit 0,1");
$row = mysql_fetch_array($query);
if(!$row['image']) {
echo "Coming Soon (query fail)!";
//exit;
}
$image_name = $row['image'];
$image_title = pullout($row['headline']);
$image_id = $row['id'];
$image_datetime = $row['datetime'];
// filename
$filename = 'thumbnails/thumb_'.$image_name;
// if user wants the thumb image
if ($_GET['thumbtag'] =='image')
{
// put it on the web!
header('Content-Type: image/jpeg');
header('Content-transfer-encoding: binary');
$img = imagecreatefromjpeg($filename);
imagejpeg($img);
exit;
}
if ($_GET['thumbtag'] == 'getlink')
{
$img_link = "<img src='" .$filename ."' title= '".$image_title."' /> " ;
echo $img_link ;
exit;
}
// if user wants the image title
if ($_GET['thumbtag'] =='title')
{
// echo <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
//echo "<body><html>";
echo $image_title;
//echo "</body></html>";
exit;
}
}
?>
Dennis
08-18-2007, 07:17 AM
Die PHP code schaut gut. Wenn du die Verbindung in deinem brower öffnest, zeigt es alle diese lustigen Buchstaben an.
Ich vermute, daß es etwas falsch mit deiner GD Bibliothek gibt.
locopoco
08-21-2007, 08:28 PM
hat niemand eine idee, an was das liegt?
Poste dein Problem doch mal auf englisch im Help- oder Development-Forum; ich denke da wirst du deutlich mehr Antworten bekommen als in der dt. Sektion.
Dennis
08-24-2007, 06:02 AM
http://www.pixelpost.org/forum/showthread.php?t=7077
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.