Forums | Mahara Community

Support /
presentation miniatures are not displayed


30 September 2015, 1:19

Hi,

After performing the update to Version 15.04.1 , content presentation thumbnails do not appear in the frames of the page.
Version 15.04.1
I looked at the contents of the Raw file, there were no vl * .png files in the pictures folder raw / static / images
They are now copied, but it still does not apparaisent .

Please advise.

Thanks
Bruno Malaval's profile picture
Posts: 6

30 September 2015, 2:47

Hi,

This is know problem, depends of the language
It seems to be resolved for the 15.10 version, you can see the bug here

https://bugs.launchpad.net/mahara/+bug/1468144

On my side, I have same problem with mahara 15.04, and do this :

1) In $maharadat/langpacks/fr.utf8/lang/fr.utf8/view.php

Modify the string
$string['100'] = '100';
$string['50,50'] = '50-50';
$string['33,33,33'] = '33-33-33';
.....

In french, some strings are not numerical but in plain text. I copy values from the english version of view.php

2) in $mahararoot/lib/layoutpreviewimage.php

replace
$layout .= "<rect x='{$x}' y='{$y}' width='{$col_width}' height='{$col_height}' class='{$style}'/>";

by
$layout .= "<rect x='" . number_format($x, 2, '.', '') . "' y='" . number_format($y, 2, '.', '') . "' width='" . number_format($col_width, 2, '.', '') . "' height='" . number_format($col_height, 2, '.', '') . "' class='{$style}'/>";

to convert decimal separator from ' , ' (in french) to ' . ' (in english)

Mahara use now the SVG technology to draw dynamically thumbnails instead of loading image files

Aaron Wells's profile picture
Posts: 896

30 September 2015, 11:26

Hi guys,

As noted in the bug report, this problem should have been fixed as of Mahara 15.04.2. So upgrading to the latest Mahara 15.04 version should resolve the problem.

Cheers,

Aaron

02 October 2015, 3:47

Hi,

I will implement your solutions.

Many thanks for your help

Alain G

 

09 October 2015, 9:32

Hi,

I modified both files
The problem is solved !
Many thanks for your help

AG

5 results