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

Duda con extencion de firefox

Status
Not open for further replies.

sasuke

Chevereto Noob
hola amigos de chevereto tengo un problema a la hora de dar subir imagen a mi host me sale la url de mi host + el de la imagen pero no la sube aqui les pongo un ejemplo:

http://hostimage.tk/?url=http://tbn...m/imagenes/chrysler-sebring-200c-cabrio-0.jpg

Aqui les dejo un ejemplo de lo que pongo en la url para subir:

Code:
                  // Subete!
          var strImgURL = img.src;
          myTabRef = getBrowser().addTab();
          getBrowser().selectedTab = myTabRef;
          var tabBr = getBrowser().getBrowserForTab(myTabRef);
          var doc = tabBr.contentDocument;
          doc.location.href = "[url]http://hostimage.tk/?url=[/url]" + strImgURL;
        }
      }
    }

function redimensiona() {
  if(gContextMenu) 
    {
      var img = gContextMenu.target;
      if(img) {
          // Redimensionate!
          var strImgURL = img.src;
          myTabRef = getBrowser().addTab();
          getBrowser().selectedTab = myTabRef;
          var tabBr = getBrowser().getBrowserForTab(myTabRef);
          var doc = tabBr.contentDocument;
          doc.location.href = "[url]http://hostimage.tk/?urlrez=[/url]" + strImgURL;
tengo algun error o que estoy asiendo mal muchas gracias:D

Salu2
 
...Vamos aclarando un par de cosas.

1. La extensión de firefox es para Chevereto, no para otros scripts. Supongo que se puede adaptar y hacer correr pero depende ya de cada script. En la url que proporcionas no tienes montado chevereto, nunca te va a funcionar la extensión tal como viene.

2. No puedes realizar solicitudes GET en un frame, en este caso de .TK debes hacerlo a la url real (al menos para que cuente como GET).

Saludos.
 
Hola amigo sasuke ya se cual es tu problema en la url donde pones tu enlace faltan 3 letras en el codigo que tiene chevereto este es el error :

<url=><--- que deveria de ser ----> <urlrez=>

Codigo viejo:

Code:
unction subir() {
  if(gContextMenu) 
    {
      var img = gContextMenu.target;
      if(img) {
          // Subete!
          var strImgURL = img.src;
          myTabRef = getBrowser().addTab();
          getBrowser().selectedTab = myTabRef;
          var tabBr = getBrowser().getBrowserForTab(myTabRef);
          var doc = tabBr.contentDocument;
          doc.location.href = "http://Tu Dominio.com/?url=" + strImgURL;
        }
      }
    }

function redimensiona() {
  if(gContextMenu) 
    {
      var img = gContextMenu.target;
      if(img) {
          // Redimensionate!
          var strImgURL = img.src;
          myTabRef = getBrowser().addTab();
          getBrowser().selectedTab = myTabRef;
          var tabBr = getBrowser().getBrowserForTab(myTabRef);
          var doc = tabBr.contentDocument;
          doc.location.href = "http://Tu Dominio.com/?urlrez=" + strImgURL;
        }
      }
    }


Nuevo Codigo:

Code:
unction subir() {
  if(gContextMenu) 
    {
      var img = gContextMenu.target;
      if(img) {
          // Subete!
          var strImgURL = img.src;
          myTabRef = getBrowser().addTab();
          getBrowser().selectedTab = myTabRef;
          var tabBr = getBrowser().getBrowserForTab(myTabRef);
          var doc = tabBr.contentDocument;
          doc.location.href = "http://Tu Dominio.com/?urlrez=" + strImgURL;
        }
      }
    }

function redimensiona() {
  if(gContextMenu) 
    {
      var img = gContextMenu.target;
      if(img) {
          // Redimensionate!
          var strImgURL = img.src;
          myTabRef = getBrowser().addTab();
          getBrowser().selectedTab = myTabRef;
          var tabBr = getBrowser().getBrowserForTab(myTabRef);
          var doc = tabBr.contentDocument;
          doc.location.href = "http://Tu Dominio.com/?urlrez=" + strImgURL;
        }
      }
    }
 
Pero entiendan.. La extensión es para chevereto no otros scripts.
 
gracias Slider y rodolfo ya pude mi web es del script de chevereto nadamas que la cambie de lugar a 000webhost y por eso no sirve el viejo link salu2:D:D
 
En los que pusiste no hay nada (webcindario) y en el otro no esas corriendo chevereto.
Sld.
 
Status
Not open for further replies.
Back
Top