1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Solved Images in the Form doesn't load

Discussion in 'Development' started by KHAV, Jun 3, 2018.

  1. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Why when i add URL image in the button in the form still load and doesn't appear

    like this:
    zg.png
    This is the code:
    PHP:
    $form->addButton("Yes"1"http://oi67.tinypic.com/jsd7vt.jpg");
    -----
    I tried to use path image but the image doesn't work and show me the picture like this:
    ZZZ.png
    This is the code:
    PHP:
    $form->addButton("Yes"0$this->getDataFolder() . "bat.png");
    Note: I use FormAPI plugin.!
     
    Last edited: Jun 3, 2018
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    the link is not found, so that might be a reason
    also mcpe might expect pure image contect without HTML so that might be the cause since your provider is injecting HTML in it
     
  3. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Does your tinypic image require login to view?
     
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    (hint: try click it?)
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
  6. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
  7. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    i changed the link and tried https://image.ibb.co/hGVDdT/parrot.png but the same error.

    I don't think but over 4 months ago it was working but now it doesn't.

    Anyway i think it is a problem from the Form about the URL, Someone told me to try the path instead URL but it doesn't work like what i saw you.
     
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    just reupload onto a NEW host that should do it for now
     
  9. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    This is another host^ and the same problem
     
  10. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Umm it is still not work:p

    Any help?
     
  11. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    Forms do that annoying thing where they take forever to load an image. If you're on Windows, resizing your window and then maximizing your window will load the image instantly. Very weird.

    It only happens with url images, if you try with path images, (try path "textures/items/apple") it loads instantly. I've heard its done to URL images to avoid DDoSing.
     
    artulloss, jasonwynn10 and KHAV like this.
  12. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    "textures/items/apple" works but what if i want to bring my picture not from the texture what i should do?
     
  13. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Ok i fixed it in my way xD
     
  14. SalmonDE

    SalmonDE Zombie Pigman

    Messages:
    739
    GitHub:
    SalmonDE
    Mind to share your fix?
     
  15. KHAV

    KHAV Baby Zombie

    Messages:
    152
    GitHub:
    xkhhv
    Ok, it is so simple i put zip texture pack in resources pack folder and enable force resource pack and in zip texture pack i put my picture and named it to anything else in minecraft like 'pineapple' and in your plugin in the form type this path "textures/items/pineapple" so minecraft will not add this picture to anything because pineapple isn't in minecraft so you can get the path of it and it will work! I hope you understand me!
     
    Invy55 likes this.
  16. Fedex

    Fedex Creeper

    Messages:
    1
    GitHub:
    Lanex6
    Oye ya eh intentado eso podrĂ­as decirme como lo has echo mas a detalle por que hize eso y no me ha funcionando.
     
  17. Dadoue

    Dadoue Spider

    Messages:
    7
    Speak english man
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.