Does changing
postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' . $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&album=' + selform.album.value);
to
postTag.setAttribute('href', '<?php echo trim($CONFIG['site_url'], '/') . '/' . $_SERVER['PHP_SELF'] . '?cmd=add_picture'?>&album=' + selform.album.value);
also fix the problem ?
Nibbler, Thanks for this! It fixed the problem where xp_publish wouldn't copy the file to coppermine. I have not tested every combination of uploading yet, and I did not try the 'other' fix which koder listed a few posts before this one.
However, there still is one problem. This new version of xp_publish has a nice feature to ask the user for their login credentials if they are not logged into coppermine. This feature is not working. Even when you supply the correct credentials, it reports:
"The wizard cold not connect to the internet, or the web service returned a wizard page that is not valid."
Luckily if a person is already logged into coppermine this does not crop up, so we have an easy work around. But while we're looking at xp_publish it would be nice to get this fixed also.
I also have a minor request/suggestion about xp_publish. Could the name of the reg file which is created be changed to something more meaningful? For example, why not have it be something like cpg_mydomain.tld.reg or cpg_mydomain_tld.reg instead of the string of numbers which means nothing to most end users? I think this would make it more 'user friendly', especially if users work with more than one coppermine site.
There's also a minor issue with the "Gallery name" and "Gallery description" of the Coppermine site being translated into the xp_publisher name/description. If an apostrophe (') is used in the site name (i.e.: If I have "Rich's Pictures" set as the site description), instead of seeing "Rich's Pictures" in the xp_publish to net screen, I see "Rich's Pictures". It looks a little dirty. Seems like some translation is needed (or not needed).