Viewing *.lin files with Firefox
#1
Posted 2007-February-05, 03:22
I post a lot *.lin-files on my site.
example
If 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
♠♥♠ BAD bidding may be succesful due to excellent play, but not vice versa. ♦♣♦
Teaching in the BIL TUE 8:00am CET.
Lessons available. For INFO look here: Play bridge with Al
#2
Posted 2007-February-05, 04:56
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.
#3
Posted 2007-February-05, 07:59
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
#4
Posted 2007-February-05, 09:10
it 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.
If it´s not important to win, tell me, why do they keep records?
(Barcht, Captain of Nir`ch Tyse´th, Klingon Warship)
www.bridgeball.de
#5
Posted 2007-February-05, 09:52
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.
#6
Posted 2007-February-05, 09:56
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.
#7
Posted 2007-February-05, 13:34
or "anyname".htaccess ?
If it´s not important to win, tell me, why do they keep records?
(Barcht, Captain of Nir`ch Tyse´th, Klingon Warship)
www.bridgeball.de
#8
Posted 2007-February-05, 13:38
Unix filenames starting with '.' are not displayed by default when you list the files of a directory. They are often used for configuration files.
#9
Posted 2007-February-05, 13:47
i will talk to my provider tomorrow.
If it´s not important to win, tell me, why do they keep records?
(Barcht, Captain of Nir`ch Tyse´th, Klingon Warship)
www.bridgeball.de
#10
Posted 2007-February-06, 13:14
FF to properly open lin files.
#11
Posted 2007-February-06, 13:37
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.
#12
Posted 2007-February-07, 01:15
<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
♠♥♠ BAD bidding may be succesful due to excellent play, but not vice versa. ♦♣♦
Teaching in the BIL TUE 8:00am CET.
Lessons available. For INFO look here: Play bridge with Al
#13
Posted 2007-February-07, 06:10
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.
#14
Posted 2007-February-07, 14:14
If it´s not important to win, tell me, why do they keep records?
(Barcht, Captain of Nir`ch Tyse´th, Klingon Warship)
www.bridgeball.de
#15
Posted 2007-February-07, 14:29
these seem to solve the problem, to be honest i dont dare trying it
http://www.wanginator.de/posts/22/
http://wiki.bsdforen..._und_MIME_Types
If it´s not important to win, tell me, why do they keep records?
(Barcht, Captain of Nir`ch Tyse´th, Klingon Warship)
www.bridgeball.de