habe die Bilderslideshow neu installiert, so funktioniert es nur die Bilder werden nicht angezeigt. Per Mail erhalte ich diese Fehlermeldung:
Your copy of MyBB running on Treffpunkt für Powerhunde (
http://treffpunkt-fuer-powerhunde.de/powerhunde) has experienced an error. Details of the error include:
---
Type: 2
File: inc/plugins/bilderslideshow.php (Line no. 438)
Message
unlink(/www/htdocs/w0119168/powerhunde/./uploads/bilderslideshow/u3LswUMBO5u5.jpg): No such file or directory
Danke Agnes
so sieht es auf dem Server aus:
{
$filename = $_FILES['image_upload']['name'];
$file_basename = substr($filename, 0, strripos($filename, '.'));
$file_ext = substr($filename, strripos($filename, '.'));
$filesize = $_FILES['image_upload']['size'];
$allowed_file_types = array('.png','.jpg','.bmp','.gif');
list($width, $height, $type) = @getimagesize($_FILES['image_upload']['tmp_name']);
list($maxwidth, $maxheight) = explode("x", my_strtolower($mybb->settings['bilderslideshow_dimensions']));
// delete old image
$old_bilderslideshowimg = $bilderslideshow['image'];
unlink(MYBB_ROOT.$mybb->settings['uploadspath'].'/bilderslideshow/'.$old_bilderslideshowimg);
// upload new image
$newfilename = random_str(12).$file_ext;
@move_uploaded_file($_FILES['image_upload']['tmp_name'], MYBB_ROOT.$mybb->settings['uploadspath'].'/bilderslideshow/'.$newfilename);
$update = array(
"name" => $db->escape_string($mybb->input['name']),
"link" => $mybb->input['url'],
"image" => $newfilename,
);