1
Maffy
Module: SEXY - No Images
  • 2012/2/1 11:22

  • Maffy

  • Just popping in

  • Posts: 18

  • Since: 2006/12/9


Hello.

The images are stored in directories uploads/sexy/original and thumbnails but not displayed. It generates the following links:


http://mydomain.de/modules/sexy/image,resample,88d08d30c00befc2d548842d1283641e,gallery_thumb,70,6.gif

http://mydomain.de/modules/sexy/image,default,thumbnail,8a65d0b1dc91f0d4b3e21cbb09196505,1.jpg

What do I need to make the images appear?

Best regards, Maffy

Sexy 1.34 and 1.35 (same error)
Xoops 2.5.1


File sexy.forms.php:

function sexyPicturesProfile($pid) {

$pictures_handler =& xoops_getmodulehandler('pictures', 'sexy');
$criteria = new Criteria('pid', $pid);
if ($ttl = $pictures_handler->getCount($criteria)) {
$pictures = $pictures_handler->getObjects($criteria, true);
foreach($pictures as $id => $picture) {
$ii++;
$ret['images'][$ii]['id'] = md5($id);
$ret['images'][$ii]['thumbnail'] = XOOPS_URL.'/modules/sexy/image,resample,'.md5(XOOPS_LICENSE_KEY.date('Ymdhi')).',gallery_thumb,70,'.$id.'.'.$picture->getVar('extension');
$ret['images'][$ii]['orginal'] = XOOPS_URL.'/modules/sexy/image,resample,'.md5(XOOPS_LICENSE_KEY.date('Ymdhi')).',gallery_large,500,'.$id.'.'.$picture->getVar('extension');
$ret['images'][$ii]['download'] = XOOPS_URL.'/modules/sexy/image,orginal,'.md5(XOOPS_LICENSE_KEY.date('Ymdhi')).','.$id.'.'.$picture->getVar('extension');
$ret['images'][$ii]['title'] = $picture->getVar('title');
$ret['images'][$ii]['description'] = htmlspecialchars_decode($picture->getVar('description'));
}
}
return $ret;
}



2
wishcraft
Re: Module: SEXY - No Images

You either don't have the GD2 library installed as PHP extension or the upload folders are missing, one of the two.

Simon
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

3
wishcraft
Re: Module: SEXY - No Images

Oh your upload directories have to be chmod of 0777 as well, otherwise the file will not upload, check in your upload folder if the file exists when you upload it..
Resized Image
www.ohloh.net/accounts/226400

Follow, Like & Read:-

twitter.com/SimonXaies
github.com/Chronolabs-Cooperative
facebook.com/SimonSXaies

Login

Username:
Password:

Lost Password? Register now!

Who's Online

58 user(s) are online (40 user(s) are browsing Support Forums)


Members: 0


Guests: 58


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits