Advertisement:

Author Topic: Simple Image Upload  (Read 129818 times)

Offline Dave llewellyn

  • Newbie
  • *
  • Posts: 4
Re: Simple Image Upload
« Reply #200 on: June 03, 2017, 05:16:18 AM »
Thanks You Purson Nice Fix, Keep up the good work.

I did not think to look on the server, tried to change the code from the SMF Theme packs my self and did not work.

Cheers Dave

Offline fanciboy4

  • Semi-Newbie
  • *
  • Posts: 26
  • Gender: Male
    • Free Album Zip Mp3 Music
Re: Simple Image Upload
« Reply #201 on: December 10, 2017, 03:42:08 AM »
I need images to be stored in my server not third party..

Offline ModelBoatMayhem

  • Jr. Member
  • **
  • Posts: 262
    • Model Boat Mayhem
Re: Simple Image Upload
« Reply #202 on: December 10, 2017, 03:47:14 AM »

 I still haven't found a simple, 1-click solution but have a look at Chevereto.

That's my firm opinion.... but what do I know?!

Offline Rock Lee

  • SMF Hero
  • ******
  • Posts: 1,483
  • Gender: Male
  • Digitalizando un nuevo mundo :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: Simple Image Upload
« Reply #203 on: December 10, 2017, 08:16:13 PM »
I need images to be stored in my server not third party..

And attach them does not help? I use an upload of my own, quickly assemble with some php although I had to limit it because many people used it badly ...


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,836
  • Gender: Male
    • Kindred-999 on GitHub
Re: Simple Image Upload
« Reply #204 on: December 13, 2017, 12:38:47 PM »
looking at installing this mod, but I foresee issues.

The biggest issue that I see, right out of the gate (aside form the BR to \n change required and detailed above) is that this mod installs the javascript call into index.template.php...

This means that the javascript is called on EVERY PAGE.
This is improper, IMO... it should only be called on the Post.template and the Display.template pages, because those are the only pages it would be used on...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Jailer

  • Jr. Member
  • **
  • Posts: 117
  • Gender: Male
    • Bored Guy Blog
Re: Simple Image Upload
« Reply #205 on: December 14, 2017, 08:40:06 PM »
Postimage has a mod that supports SMF too and doesn't modify index.template.php.....just sayin.........

Offline fanciboy4

  • Semi-Newbie
  • *
  • Posts: 26
  • Gender: Male
    • Free Album Zip Mp3 Music
Re: Simple Image Upload
« Reply #206 on: December 15, 2017, 05:06:11 PM »
And attach them does not help? I use an upload of my own, quickly assemble with some php although I had to limit it because many people used it badly ...


Regards!

Not bad at all. Its still serves.

Keep your good work going.

Offline Andreso

  • Semi-Newbie
  • *
  • Posts: 10
Re: Simple Image Upload
« Reply #207 on: January 18, 2018, 12:40:14 AM »
I love this mod! but only i have two things that i don't like from this mod:

1: Every time I put an image in the post, this text "<br />" appears on both sides of the image, so i need to delete everytime that i post a image that text.

Example:

2: The images are shortened, and small, so are not showed completely, and the gifs uploadeds are not animated, for watching the entire image and the gifs with movement you need to click the image, and that's for me the worst thing, so if you can, fix this.

Anyway, this is a great mod, and helps very much, so i wish you luck!

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,836
  • Gender: Male
    • Kindred-999 on GitHub
Re: Simple Image Upload
« Reply #208 on: January 22, 2018, 06:03:09 PM »
Well, given that the mod authors never repsonded to my concern, here or on their own site...

the index.template.php code add should be corrected

this is what the code should look like after adjustment...

Code: [Select]
if ($context['current_action'] == 'post') {
  echo '
    <script type="text/javascript" async src="Themes/default/scripts/imgbb.js" charset="utf-8"></script>';
  }
  echo '
</body></html>';

this way, the image javascript is ONLY loaded on the post page - not on every page load.


Incidentally, Andreso -- the <br /> statement added will properly parse as a new line when posted, if you have "allow basic html" in your post settings.
Otherwise, you can open the javascript file imgbb.js in Themes/default/scripts and delete the <br /> (leaving just "". This will stop the insert from adding a newline around each image.
« Last Edit: January 22, 2018, 06:19:12 PM by Kindred »
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Andreso

  • Semi-Newbie
  • *
  • Posts: 10
Re: Simple Image Upload
« Reply #209 on: February 02, 2018, 09:19:32 PM »
Well, given that the mod authors never repsonded to my concern, here or on their own site...

the index.template.php code add should be corrected

this is what the code should look like after adjustment...

Code: [Select]
if ($context['current_action'] == 'post') {
  echo '
    <script type="text/javascript" async src="Themes/default/scripts/imgbb.js" charset="utf-8"></script>';
  }
  echo '
</body></html>';

this way, the image javascript is ONLY loaded on the post page - not on every page load.


Incidentally, Andreso -- the <br /> statement added will properly parse as a new line when posted, if you have "allow basic html" in your post settings.
Otherwise, you can open the javascript file imgbb.js in Themes/default/scripts and delete the <br /> (leaving just "". This will stop the insert from adding a newline around each image.

@Kandred but you don't explained me my second problem, and for me the most annoying, the image cut and gifs without movement, why i need to click the image and open it in a new tab to see it complete? and if is a gif i need to click it and open it in a new tab for see the movement, this addon is great but has that problem that constantly annoys me :-\

Online Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 55,836
  • Gender: Male
    • Kindred-999 on GitHub
Re: Simple Image Upload
« Reply #210 on: February 02, 2018, 09:43:34 PM »
That will always happen with a resized gif...
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline Andreso

  • Semi-Newbie
  • *
  • Posts: 10
Re: Simple Image Upload
« Reply #211 on: February 03, 2018, 10:27:46 AM »
That will always happen with a resized gif...

@Kandred well, someday this addon will be updated and will be possible upload images with his original size? and gifs with movement?

Offline Andreso

  • Semi-Newbie
  • *
  • Posts: 10
Re: Simple Image Upload
« Reply #212 on: February 03, 2018, 03:54:40 PM »
That will always happen with a resized gif...

Or even better, a option for limit the size of the image, so a image of 1024x768 will be resized to 800x600 but without cutting the image, only resize it

Offline airdave

  • Newbie
  • *
  • Posts: 7
Re: Simple Image Upload
« Reply #213 on: Yesterday at 09:08:14 AM »
Was considering dumping the Imagepost mod for this Imgbb mod instead.
Installed Imagepost about a year ago and its worked okay up until now.

I recently experienced the .org to .cc change...which caused a small disruption with my member's posts.
I used the censored words fix to resolve the problem (without having to update every post on my site)
but some members used thumbnail posts and the links to the remote images don't work any more.
There are too many images/posts to fix...so this is frustrating.

And, I have read more than once, that Imagepost is "unreliable" and I am afraid this problem won't be our last.

Do you recommend I dump Imagepost for Imgbb?
Any word on whether the Imgbbmod has been fixed/updated to resolve the issues talked about here??


After reading this thread, I am now concerned about the Imgbb mod...I don't want to deal with having to remove <br code thingies
or modify files on the server, or fix javascript problems or anything like that.
I just want something easy for my members to  post images in their posts without me having to host those images