• Welcome to the Chevereto user community!

    Here users from all over the world gather around to learn the latest about Chevereto and contribute with ideas to improve the software.

    Please keep in mind:

    • 😌 This community is user driven. Be polite with other users.
    • 👉 Is required to purchase a Chevereto license to participate in this community (doesn't apply to Pre-sales).
    • 💸 Purchase a Pro Subscription to get access to active software support and faster ticket response times.

Firefox extension

Status
Not open for further replies.

Rodolfo

⭐ Chevereto Godlike
Chevereto Staff
Administrator
Con esto van a conseguir una extensión funcional en su chevereto, la cual permitirá subir/redimensionar imágenes ya existentes en la web. Afortunadamente no es complicado ya que nos basamos en la antigua extensión existente para godlike.cl

Realizar la extensión es muy simple, solo deben seguir los siguientes pasos:

1. Bajar la extension en la cual nos basaremos

-> http://chevereto.com/DEV_Chevereto_1.0.xpi

1.1 Cambiar la extension de .xpi a .zip y descomprimir

Obtendran dos archivos y una carpeta.

2. Editar los archivos install.js e install.rdf a medida.

No editables en instal.js:

Code:
const APP_JAR_FILE = "godlikea.jar";

const APP_CONTENT_FOLDER = "content/godlikea/";

const APP_LOCALE_FOLDER  = "locale/es-ES/godlikea/";

No editables en instal.rdf:

Code:
    <em:file>

      <Description about="urn:mozilla:extension:file:godlikea.jar">

        <em:package>content/godlikea/</em:package>

        <em:locale>locale/es-ES/godlikea/</em:locale>

      </Description>

    </em:file>

En ambos casos si pueden realmente editar, pero tendrían que cambiar más cosas, que a la larga no es necesario

3. Descomprimir el archivo godlikea.jar que esta en la carpeta 'chrome'

Obtendran 2 carpetas: content y locale.

3.1 Editar en 'chrome/locale/es-ES/godlikea/godlikea.dtd'

En locale/es-ES/godlikea encontraran dos archivos 'contents.rdf' y 'godlikea.dtd'. Deben editar 'godlikea.dtd' a medida. Es el archivo que establecerá el texto en el menu contextual.

3.2 Editar en 'chrome/content/godlikea'

- contents.rdf -> Información de la extensión.

- godlikeaOverlay.js -> En la linea '49' y '65' deben poner la url de su chevereto.

- godlikeicon.png -> Un icono en png de 16x16 (saldrá en el menú contextual)

- godlikeicon32.png -> Un icono en png 32x32 que saldrá cuando instalen, cuando vean el complemento en herramientas, etc.

4. Comprimir las carpetas 'content' + 'locale' en .zip y renombrar a 'godlikea.jar'

Ya pueden eliminar las carpetas 'content' y 'locale'.

5. Comprimir la carpeta raiz todo el contenido ('chrome'+'install.js'+'install.rdf') en un .zip

Posteriormente cambiar el nombre a 'Nombre_extension.xpi'.

*Importante* Estructura de la extensión

- Extension.xpi (que es un .zip) debe contener:

- Capera chrome

- install.rdf

- install.js

- La caperta chrome debe contener

- godlikea.jar (que es un .zip) debe contener:

- content

- locale

Deben respetar esa estructura, si no.. No funciona.
 
Hello;
I followed the tuto.
But I have a problem:
What code should I use for installing the extension?

I tested this code:
Code:
deleted code

But I can't install it;
It give me this error:
Firefox can't install this extension.
reason: invalid Hash on the file (possible download corruption)

gracias
-261
 
This comes translated in the .zip file.. Just open "Docs". And if you want to make a installer, i strong suggest this .htaccess

Code:
AddType application/x-xpinstall .xpi

This also comes in the documentation... Pretty please... READ.
 
I get this error:
Firefox could not install the file at

mydomain;tld/ test /ext.xpi

reason: Package install invalid
-207

thank's
 
English translation

This will get an extension on its functional chevereto, which will upload / resize existing images on the web. Fortunately it's not complicated as we proceed from the old existing extension godlike.cl

Performing the extension is very simple, just need to follow these steps:

1. Download the extension in which we will build

-> Http://chevereto.com/DEV_Chevereto_1.0.xpi

1.1 Changing the extension. Xpi to. Zip and unzip

Get two files and a folder.

2. Install.js and edit the install.rdf file to measure.

Not editable in instal.js:

const APP_JAR_FILE = "godlikea.jar";

const APP_CONTENT_FOLDER = "content / godlikea /";

const APP_LOCALE_FOLDER = "locale / en-US / godlikea /";

Not editable in instal.rdf:

<em:file>

<Description About="urn:mozilla:extension:file:godlikea.jar">

<em:package> content / godlikea / </ em: package>

<em:locale> locale / en-US / godlikea / </ em: locale>

</ Description>

</ em: file>

In both cases if they can actually edit, but would have to change more things, which ultimately is not necessary

3. Godlikea.jar decompress the file in this folder 'chrome'

Get 2 folders: locale and content.

3.1 Edit 'chrome / locale / en-US / godlikea / godlikea.dtd'

In locale / en-US / godlikea find two files' contents.rdf 'and' godlikea.dtd. Must edit 'godlikea.dtd' made to measure. Is the file that will set the text in the contextual menu.

3.2 Edit 'chrome / content / godlikea'

- Contents.rdf -> Information of the extension.

- GodlikeaOverlay.js -> In the line'49 'and'65' should put the url of your chevereto.

- Godlikeicon.png -> One icon of 16x16 png (exit from the context menu)

- Godlikeicon32.png -> One icon in 32x32 png that will come when installed, when you see the add-on tools, etc..

4. Compress the folders' content '+' locale 'in. Zip and rename to' godlikea.jar '

You can now delete the folders' content 'and' local '.

5. Compress the entire contents root folder ( 'chrome' + 'install.js' +' install.rdf ') in one. Zip

Later the name changed to 'Nombre_extension.xpi.

* Important * Structure of the extension

- Extension.xpi (which is a. Zip) must contain:

- Capera chrome

- Install.rdf

- Install.js

- The chrome should caperta

- Godlikea.jar (which is a. Zip) must contain:

- Content

- Locale

Must respect this structure, if not .. It does not work.
 
error :( pls help me

webdav_error_mac.png
 
Hello,

I have tried now for like 9329 times to make this FireFox extension but i can´t get it to work. It installs just fine and gives no errors but i get no new menus when clicking an image?

What is wrong if someone please could take a guess, i have checked the files countless of times but cant find anything that looks weird.

PS. I tried to create a FF extension with out touching the original files and i get the same problem here, no new menus etc.

Regards,
ViPER
 
I will test the xpi and see what is wrong....

And there is the error.. Is not compatible with firefox 3, it needs to be rewrited in order to work.

Sorry.
 
Final thought... Go to firefox extensions and find some extension that works on imageshack or something like that. Then take the code (open source) keep the licenses and here you go.

:)
 
I'm working in the new Firefox extension... It will be available in a few hours.

- Closed
 
Status
Not open for further replies.
Back
Top