xx1943 Posted February 5, 2007 Report Share Posted February 5, 2007 Hi all I post a lot *.lin-files on my site.exampleIf you click on the link browsing IEP the file is opened the BBO-software,but if you click on the same link browsing with Firefox you get the source-code. I tried to add in the htmlcode type"application/bbolin", but it didn't work. Viewing lin-movies from bbo-hands works fine with firefox Anyone able to help my problem? ty Al Quote Link to comment Share on other sites More sharing options...
hotShot Posted February 5, 2007 Report Share Posted February 5, 2007 This is not a matter of HTML code! If i pick up a local .lin file and drop it to an empty firefox window, i'm asked what to do with it and i can define to start the BBO-Software with it. Quote Link to comment Share on other sites More sharing options...
uday Posted February 5, 2007 Report Share Posted February 5, 2007 Can you configure your web server so that it knows to use the right MIME headers for files with the LIN extension? I can't remember exactly how this is done (tho i vaguely remember that on linux/apache there is some file called "magic" or something) , but you can make the web server issue the "application/bbolin" command when it is sending down a LIN file. You want something like this in the HTTP response (not in the actual lin filet is sent back) . You can't add this by simply editing a lin file. You have to configure the web server, or you have to deliver the files via a script that issues the content type and then dumps the file Content-Type: application/bbolin Quote Link to comment Share on other sites More sharing options...
chicken Posted February 5, 2007 Report Share Posted February 5, 2007 i have been trying this for the last 2 years. gerardo was of some help, but to be honestit still doesnt work. my computerskills unfortunately dont match the problem.this is sad for *lin because many people would use it much more often to display hands. Quote Link to comment Share on other sites More sharing options...
uday Posted February 5, 2007 Report Share Posted February 5, 2007 This is a tech thing, so you need some tech skills, I fear On one of my (linux) systems, this line, added to /etc/mime.types application/bbolin lin does the trick. If you don't have your own server, I suggest you ask your sysadmin how to associate specific mime types with specific file extensions when serving html documents. Quote Link to comment Share on other sites More sharing options...
hotShot Posted February 5, 2007 Report Share Posted February 5, 2007 Try to put a file named: ".htaccess" containing the following line: AddType application/bbolin .lin into the directory containing the lin files or the document root directory of your server. If you have a real "hosting package" and not just some sort of homepage and your provider is using apache, this should work. Quote Link to comment Share on other sites More sharing options...
chicken Posted February 5, 2007 Report Share Posted February 5, 2007 .htaccess.html ? or "anyname".htaccess ? Quote Link to comment Share on other sites More sharing options...
hotShot Posted February 5, 2007 Report Share Posted February 5, 2007 just ".htaccess" nothing more and nothing less Unix filenames starting with '.' are not displayed by default when you list the files of a directory. They are often used for configuration files. Quote Link to comment Share on other sites More sharing options...
chicken Posted February 5, 2007 Report Share Posted February 5, 2007 sigh, i tried it but the lin file opened as sourcecode again. additionally my norton security reported an external attack bei some IP-adress 102.000.***i will talk to my provider tomorrow. Quote Link to comment Share on other sites More sharing options...
nikos59 Posted February 6, 2007 Report Share Posted February 6, 2007 I wonder, why hasn't someone written an add-on to allowFF to properly open lin files. Quote Link to comment Share on other sites More sharing options...
uday Posted February 6, 2007 Report Share Posted February 6, 2007 FF does the right thing, i believe, by scanning for the presence of the mime type. I think IE also looks at the extension of the file and opens the appropriate viewer but I don't know that this is "correct" behaviour. Quote Link to comment Share on other sites More sharing options...
xx1943 Posted February 7, 2007 Author Report Share Posted February 7, 2007 I edited the mimetypes.rdf and added this: <RDF:Description RDF:about="urn:mimetype:application/bbolin" NC:fileExtensions="lin" NC:description="Bridge Movie" NC:value="application/bbolin" NC:editable="true"> <NC:handlerProp RDF:resource="urn:mimetype:handler:application/bbolin"/> </RDF:Description> Now I can drag and drop a lin-file from my PC into FF, but the link I provided above doesn't work yet. example If I click on this browsing my FF I get the source-code of the lin-file. :( I hate my PC. Al Quote Link to comment Share on other sites More sharing options...
hotShot Posted February 7, 2007 Report Share Posted February 7, 2007 Al it is a server issue, not a client one. You defined what FF should do, when it gets the mimetype "application/bbolin" from the server. But if the server is not prepared to do that, the default mimetype is text/html. This is why you see the listing. My hosting provider supports, the ".htaccess" file, chickens provider does not. I know that you have a different provider than both of us, and they (freenet) offer hosting with and without this feature. If you hosting provider is not supporting this, but you can use e.g. PHP-scripts, than it is possible to write a short PHP-script that will deliver the lin-file setting the mimetype manualy. Quote Link to comment Share on other sites More sharing options...
chicken Posted February 7, 2007 Report Share Posted February 7, 2007 however while browsing for the solution i found out, that it is a wanted feature of ff 2.0 for security reasons. i additionally found a 5 pages description how to change something in the sourcecode of ff to allow the direct procedure. i will post the link when i have found it again. Quote Link to comment Share on other sites More sharing options...
chicken Posted February 7, 2007 Report Share Posted February 7, 2007 hm, these seem to solve the problem, to be honest i dont dare trying it :lol: http://www.wanginator.de/posts/22/ http://wiki.bsdforen.de/index.php/Firefox_und_MIME_Types Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.