On Integration - Image gallery it says "Now you can insert the following into a php-enabled textarea (eg. a node body, custom block or other area)" But there is no code there... I would really like to use this feature and would be grateful if someone could point me in the right direction!
Cheers
Andy
Comments
Comment #1
andykemp commentedI had a hunt through the integration module, and it looked like the code should be:
But when I do this is seems to generate
But this generates the following error messages:
I have checked the generated xml file and this has paths to the images of files/images/PP.SG.3.preview.JPG, so it seems it is adding the files directory to both the base and the path.
I tried manually hacking the base attribute in the swftools.module file but this didn't seem to fix the problem...
Any ideas why? and how to fix this?
Thanks
Andy
Comment #2
andykemp commentedTried the upload version:
and that works fine, so it would appear to be an issue with the generated xml from swftools_playlist_from_image_gallery. Should the paths be in xml from the image gallery be full paths as they are for the upload module but not for the image gallery one...
Comment #3
andykemp commentedJust double checked and the path in the xml file looks like
so at some point when it is generating the xml it is adding the file folder twice.
I have uninstalled SWFTools, and reinstalled the latest dev and am still having problems...
Andy
Comment #4
funkeyrandy commentedme too!!!!!
plus i need to get the description data into the xml..its just not there!!
thanks!
Comment #5
andykemp commentedI still can't work out where the second Files folder is coming from but I found a nasty hack which got it working. So if anyone wants a quick and dirty fix replace line 105 in the swftools_integrate module with:
$files[$nid->nid] = substr($node->images[$derivative],6);
It just strips the first 5 characters off the image location...
It got it working which is nice, but a better more permanent solution would be good!
Comment #6
simeHi andykemp
I've updated the demo page with the php to use:
http://emspace.com.au/node/33
But I guess there is something else happening there... on the /admin/media/swf/embed page, there is a "File Locations" section. Can you tell me what value is in there for "Media directory url" ?
Also, what is your "File system path" in /admin/settings/file-system ?
Comment #7
andykemp commentedMedia directory url:
http://www.warwickbaptists.org.uk/beta/filesFile System Path:
filesComment #8
simeFixed in dev version, make sure shownavigation is true.
Comment #9
andykemp commentedSorry, I'm sure I am being slow but I have upgraded to the latest dev, but can't find the option you mention. Where should I be looking... Without changing this setting it is it still doesn't work.
Comment #10
simeI'm sorry, I got this issue mixed up with another, ignore my comment there.
While there is a new release, I didn't identify the cause of your extra "files" at this stage.
Comment #11
paxton commentedI have the same problem and used the following workaround.
files directory: www.domain.de/drupal/files
swf tools uses this instead: www.domain.de/drupal/files/files
Therefore I've added this to my settings.php
Now it does work (with Wijering Flash plugins - I still have problems with the others)...
Comment #12
Stuart Greenfield commentedThink this is now fixed in the latest dev code. I haven't seen any cases of the "double files" with recent testing so hopefully it is now cured.
Comment #13
Stuart Greenfield commentedSetting to fixed as new releases of SWF Tools 5.x-2.0 and SWF Tools 6.x-1.1 are now available which address this issue.
Comment #14
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #15
alex_ost commentedHi !
in fact, it seems there's a problem with the tag parameters parsing. Here's a quick and dirty fix (didn't bother to produce a patch) : line 1021, change
preg_match_all('/\s+?(\w*)=[\"](.*?)[\"]#?/', $passed_parameters, $match_vars[$key]);to
preg_match_all('/\s?(\w*)=[\"](.*?)[\"]#?/', $passed_parameters, $match_vars[$key]);(suppress the "+" after the "\s")
Thanx for this module !
Comment #16
Stuart Greenfield commentedThe regex is design to catch multiple spaces between parameters, hence the use of +? rather than just ?. The filters are working with the current format so I don't currently plan to change them.