I'm sure I must be missing something painfully obvious, but I've looked and looked and tweaked and tweaked and after a month or more I'm still having to type in the path to the flash player to get video to display.
In either the editing box (source mode) or the Flash popup window I have to type "/userfiles/flash/player/player.swf?file=" in front of the file path. Surely FCKEditor and the Drupal integration weren't designed that way.
There must be some little corner of the code where I can add the player path once and for all. Anybody know where it is? I've pored and repored over both files in fckeditor/fckeditor/editor/dialog/fck_flash, but to no avail.
Help will be appreciated.
Comments
Comment #1
markpenny commentedBy the way, without the player path, I still get the Flash icon in the editing box, but when I right click over the blank space where the video should be after clicking Preview or Save, I'm told there is no video. Odd, since what seems to be lacking is not the video, but the player.
Comment #2
wwalc commentedI haven't tested it and I guess it's not an universal solution, but you may try to modify modules\fckeditor\fckeditor\editor\filemanager\connectors\php\config.php and adjust $Config['FileTypesPath']['Flash'] and $Config['QuickUploadPath']['Flash']:
Comment #3
markpenny commentedThanks for the suggestion. I tried it, but it didn't change anything for me.
How is FCKEditor supposed to work vis-a-vis the flash player? I get the impression that a player has to be installed somewhere, but I can't seem to find any instructions for uploading or naming it. The only reference I can find to what might be a player is this snippet on line 215 of fckeditor/fckeditor/editor/dialog/fck_flash/fck_flash.js (fck_flash/claims.swf), but the code is commented out, it's html, not php or java, no such file exists in that or any folder and, in any case, nothing seems to actually point to a player anywhere.
Millions of other folks have no trouble at all, but I'm still mystified.
You provided the integration, so it must work fine on your site(s). How are you set up?
Comment #4
Jorrit commentedWhat kind of files do you put after the ?file=
Comment #5
markpenny commented.flv.
Here's an example. I've moved player.swf to sites/default/files so I only have to insert player.swf?= between player and video paths.
sites/default/files/player.swf?file=flash/humptydumpty.flv
Comment #6
Jorrit commentedPerhaps it should work because it's a feature, but as far as I know the path entry of the flash dialog wants you to enter a path to an swf, not an flv. An flv file is not a flash file, it's a video file.
Comment #7
Jorrit commentedComment #8
markpenny commentedYou were right. I uploaded an swf and it worked. Unfortunately, there are no controls. I'd like to insert the file in a player. There has to be a way to do that from the Flash window without manually inserting the path.
Comment #9
Jorrit commentedThat would be an FCKeditor feature. Sorry for this, but please contact the FCKeditor community in order to get this fixed.