Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Jun 30
Gross Amount: $25.00
Net Balance: $23.57
Left to go: $76.43

Donations
Anonymous ($15)Jun-14
Anonymous ($10)Jun-10

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 87 2013 Abuse admin Amazon AntiHarvesting AntiMalUser AntiSpam API bags Beats billige black Blocks blue Captcha cell Christmas chronolabs content Conversion demo docek download Dresses editor evden eve facebook floor free herre Honeypot Human IP IPInfoDB jQuery kantor lamps Language log logger Lucire mobile module modules Monster mulberry MyAlbum-p newbb news online PageRank pandora Password Permissions pink Plugin portal preloader Prevention profile project propose Protector publisher Rights rmcommon Room Rotor sale security Server site SmartClone Smarty SOAP Songlist Spam stem Studio tag tags tdmcreate template Theme themes User userlog website Whitepaper Wishcraft XIPS xoops Xortify ZendFramework

New Users

Registering user

# 136105

niloy_raisul

Welcome to XOOPS!




Bottom   Previous Topic   Next Topic  Register To Post



#1 Posted on: 2012/2/1 5:22 Module: SEXY - No Images
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;
}




Top

Maffy
Just popping in
Just popping in
Joined:
2006/12/9 1:40
Group:
Registered Users
Posts: 18
(Show More) (Show Less)


#2 Posted on: 2012/2/1 16:19 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

Top


Click to see original Image in a new window
www.ohloh.net/accounts/226400

Follow, Like & Read:-

* www.twitter.com/espacey
* www.ceo.blogs.labs.coop
* www.facebook.com/epsacey
wishcraft
Module Developer
Module Developer
Joined:
2007/5/18 15:56
From Dulwich Hill, Sydney, Australia
Group:
Registered Users
Posts: 2051
(Show More) (Show Less)


#3 Posted on: 2012/2/1 16:22 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..

Top


Click to see original Image in a new window
www.ohloh.net/accounts/226400

Follow, Like & Read:-

* www.twitter.com/espacey
* www.ceo.blogs.labs.coop
* www.facebook.com/epsacey
wishcraft
Module Developer
Module Developer
Joined:
2007/5/18 15:56
From Dulwich Hill, Sydney, Australia
Group:
Registered Users
Posts: 2051
(Show More) (Show Less)







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You can vote in polls.
You cannot attach files to posts.
You can post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.

[Advanced Search]