BBO Discussion Forums: Viewing *.lin files with Firefox - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Viewing *.lin files with Firefox

#1 User is offline   xx1943 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 492
  • Joined: 2004-March-11
  • Location:München; Germany

Posted 2007-February-05, 03:22

Hi all

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
Play Bridge for fun and entertainment and to meet nice people.
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
0

#2 User is offline   hotShot 

  • Axxx Axx Axx Axx
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,976
  • Joined: 2003-August-31
  • Gender:Male

Posted 2007-February-05, 04:56

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.
0

#3 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2007-February-05, 07:59

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
0

#4 User is offline   chicken 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 205
  • Joined: 2004-September-09

Posted 2007-February-05, 09:10

i have been trying this for the last 2 years. gerardo was of some help, but to be honest
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.
Kom kit´cha vangar´th, kin patakh´ch vananch, pargh?

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
0

#5 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2007-February-05, 09:52

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.
0

#6 User is offline   hotShot 

  • Axxx Axx Axx Axx
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,976
  • Joined: 2003-August-31
  • Gender:Male

Posted 2007-February-05, 09:56

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.
0

#7 User is offline   chicken 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 205
  • Joined: 2004-September-09

Posted 2007-February-05, 13:34

.htaccess.html ?

or "anyname".htaccess ?
Kom kit´cha vangar´th, kin patakh´ch vananch, pargh?

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
0

#8 User is offline   hotShot 

  • Axxx Axx Axx Axx
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,976
  • Joined: 2003-August-31
  • Gender:Male

Posted 2007-February-05, 13:38

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.
0

#9 User is offline   chicken 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 205
  • Joined: 2004-September-09

Posted 2007-February-05, 13:47

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.
Kom kit´cha vangar´th, kin patakh´ch vananch, pargh?

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
0

#10 User is offline   nikos59 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 278
  • Joined: 2003-May-17

Posted 2007-February-06, 13:14

I wonder, why hasn't someone written an add-on to allow
FF to properly open lin files.
0

#11 User is offline   uday 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,808
  • Joined: 2003-January-15
  • Gender:Male
  • Location:USA

Posted 2007-February-06, 13:37

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.
0

#12 User is offline   xx1943 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 492
  • Joined: 2004-March-11
  • Location:München; Germany

Posted 2007-February-07, 01:15

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
Play Bridge for fun and entertainment and to meet nice people.
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
0

#13 User is offline   hotShot 

  • Axxx Axx Axx Axx
  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,976
  • Joined: 2003-August-31
  • Gender:Male

Posted 2007-February-07, 06:10

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.
0

#14 User is offline   chicken 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 205
  • Joined: 2004-September-09

Posted 2007-February-07, 14:14

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.
Kom kit´cha vangar´th, kin patakh´ch vananch, pargh?

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
0

#15 User is offline   chicken 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 205
  • Joined: 2004-September-09

Posted 2007-February-07, 14:29

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..._und_MIME_Types
Kom kit´cha vangar´th, kin patakh´ch vananch, pargh?

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
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users