|
Mar
05
|
As I was publishing a new version of my website, I noticed that some of the little animations I had previously inserted with the bas_flvplayer plugin had ceased to function. Well, apparently… because on other computers they seemed to still look fine.
I noticed that it had stopped functioning for my browsers with the latest Flash version (10) and after some research, it appeared that Adobe has decided to implement a few security “improvements” on the way things are allowed or not to be loaded by Flash.
The thing is that the plugin calls the files in a “download” mode which changes the headers and streams the files. While I didn’t manage to tweak the crossdomain.xml file appropriately to have it work again, I changed a few lines in the plugin and voilà.
If you happen to have the same problem, you can go for a quick and easy fix to the Admin panel, plugins, and then click “Edit” on the bas_flvplayer line.
I have already added a few mods on the plugin (to add sounds and a more standard compliant insertion of the player) so I can’t tell you the exact line, but if you make a search for the function function bas_flvplayer_get_file($where)
You will find this line
// hu.gTxt('file_download').'/'.$thisfile['id'];
That you can comment out and replace by the following
hu.'files/'.$thisfile['filename'];
Where “files” is your folder’s name (would need to find the textpattern proper call for that). Note that as the flash files now will go through a GET mode, it’s not tracked by textpattern and the download counter won’t increment. (I couldn’t care less, as these files are embedded anyway.)
You have also probably to change the if(!empty($thisfile['id'])) by if(!empty($thisfile['filename']))
And that should be all… Enjoy!






Recent Comments