Welcome, Guest. Please login or register.
Did you miss your activation email?

 
Advanced search

22748 Posts in 6706 Topics- by 17591 Members - Latest Member: permsk

04-04-2020 16:06:16
JOOM::GALLERY::FORUMArchiveJoomGallery 2.x ACLMiscellaneousZip download message error
Pages: [1]
Print
Author Topic: Zip download message error  (Read 3079 times)
0 Members and 1 Guest are viewing this topic.
peet85
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: 21-07-2012 13:52:13 »

Hi!

I have a problem with Zip download message.

The message contains only the text "Array" instead of the image names or image links.

The message seems like this:

The zip components/com_joomgallery/joomgallery_21_07_2012__51_74679.zip has been downloaded by bela! It contains the following image files:
Array,
Array,
Array



Is there a way to correct this error??

Thanks!

Peter
Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #1 on: 21-07-2012 14:16:51 »

Hi,

thanks for this hint. Please try the following: Open file 'components/com_joomgallery/models/favourites.php' and replace line 687

Code
$imagefiles = implode(",\n", $files);

with the following code:

Code
$imagefiles = array();
foreach($files as $file)
{
 $imagefiles[] = $file['name'];
}
$imagefiles = implode(",\n", $imagefiles);

Regards
Chraneco
Logged
peet85
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: 21-07-2012 15:33:59 »

Many thanks Chraneco!! You are fast! :)

One more thing....
How can I replace the name of the images to links to original images?

Logged
Chraneco
Developer-Team
Hero Member
*****
Offline Offline

Posts: 3544


View Profile
« Reply #3 on: 21-07-2012 16:58:19 »

Hi,

please try that instead of the code above, but I haven't tested it:

Code
$imagefiles = array();
foreach($files as $key => $file)
{
 $imagefiles[] = JUri::root().'index.php?option=com_joomgallery&view=image&format=raw&type=orig&id='.$key;
}
$imagefiles = implode(",\n", $imagefiles);

Regards
Chraneco
Logged
Pages: [1]
Print
Jump to:  

HOSTED BY SCHWARZKÜNSTLER ®

PROTECTED BY  ZB BLOCK  AND Project Honey Pot
Theme orange-lt created by panic

Bad Behavior has blocked 2014 access attempts in the last 7 days.

maternal