Hi mistic100,
So much thanks for such a wonderful plugin.
I noticed some bugs (?) (Google2Piwigo 1.2.0).
1- ws_categories_add: is not defined in ws_functions.inc.php
safer to use create_virtual_category
2-
'all_elements' => $all_photos,
->
'all_elements' => json_encode($all_photos),
Otherwise [Array, Array,...] in javascript
3-
$photo = array(
'id' => $id,
'album' => $photo,
);
which outputs integers in javascript while
->
$photo = array(
'id' => ''.$id,
'album' => $photo,
);
which outputs quoted strings in javascript.
otherwise there are huge ids like 1011485443202
which are 'rounded' by javascript (which thinks that this is a number if not quoted) like 1011485443000 and the import can not be done.
4-
var all_elements = [{if !empty($all_elements)}{','|@implode:$all_elements}{/if}];
->
var all_elements = {if !empty($all_elements)}{$all_elements}{/if};
Thanks again.
Offline
Hi again mistic100,
Flickr2Piwigo too has the same problem:
modify
'id' => $id,
to
'id' => ''.$id,
Thanks
Offline