Source

Any feedback, suggestion, bug reports, problems....
Post Reply
phadeb
Posts: 3
Joined: Tue May 27, 2008 1:14 am

Source

Post by phadeb » Tue May 27, 2008 1:20 am

Open source ?

When will it be ?

Advertisements

 

User avatar
DaveG
Flagfox Developer
Posts: 723
Joined: Wed Oct 03, 2007 9:06 pm
Location: Philadelphia, USA

Re: Source

Post by DaveG » Tue May 27, 2008 4:27 am

We're not closed source. Everything is written in JavaScript, so feel free to poke around in the code all you want. XPIs are just glorified ZIPs, with a JAR (i.e. another ZIP) inside. There's already a couple mods out there. (someone made a Seamonkey port at some point)

Flagfox has no license at this point. It's not exactly a complex piece of software. I should just throw a variant of the MIT or BSD license in there, but none of us ever bothered.

phadeb
Posts: 3
Joined: Tue May 27, 2008 1:14 am

Re: Source

Post by phadeb » Tue May 27, 2008 7:16 pm

Clear

As there is no "public" visible sources, i thought it was protected or something.

I was just wondering about adapting the code to integrate it inside a forum.

User avatar
rleeden
Site Admin
Posts: 110
Joined: Mon Oct 01, 2007 3:13 pm
Location: London, England
Contact:

Re: Source

Post by rleeden » Tue May 27, 2008 8:07 pm

If you're looking at implementing Geolocation into a forum or any other website, you may also want to have a look at the Maxmind website.

They have free geolocation databases, such as
GeoLite Country (used in a modified format in Flagfox) and GeoLity City (used in Geotool).

They also provide APIs for several languages: http://www.maxmind.com/app/api

Richard

User avatar
DaveG
Flagfox Developer
Posts: 723
Joined: Wed Oct 03, 2007 9:06 pm
Location: Philadelphia, USA

Re: Source

Post by DaveG » Tue May 27, 2008 11:30 pm

It's not hidden or anything. You just have to know how to get at it. ;)
In fact, with the exception of binary blobs in some larger extensions, you can root around in the code of most add-ons rather easily.

If and only if you have Flagfox installed, you can dump any of the following lines into your address bar to view the source directly:
chrome://flagfox/content/flagfox.js
chrome://flagfox/content/ipdb.js
chrome://flagfox/content/context.js

If you're using Firefox 3.0, you can even do this:
view-source:chrome://flagfox/content/overlay.xul
(Firefox 2 doesn't seem to want to show it correctly)

You can do this with any extension files, if you know where they are.
chrome://flagfox/content/logo-large.png
chrome://flagfox/content/icons/flagset1/us.png

I'd have put in direct links, but this forum doesn't like chrome URIs.

I don't know of a direct way to get a directory listing off-hand, but these steps worked fine for me:
1) Enter this into the address bar: chrome://flagfox/content/
2) You will be redirected to a long URL inside the JAR, which should come up as an error.
3) Remove "flagfox.xul" from the end of the URL and hit GO again.
4) You should now be at a directory listing for jar:file:///<path to your profile>/extensions/{1018e4d6-728f-4b20-ad56-37578a4de76b}/chrome/flagfox.jar!/content/flagfox/
(assuming Firefox 3 for the above)

Just downloading the XPI and unzipping is really the best way to go, though.

phadeb
Posts: 3
Joined: Tue May 27, 2008 1:14 am

Re: Source

Post by phadeb » Fri May 30, 2008 9:16 am

Thank you for the informations and for the api's http://www.maxmind.com/app/php

I will have a deep look in it :)

Post Reply