• [Mod] Auto image resize on upload v2.0.1 (2010-12-18) 4 0 5 1
Currently:  

Author Topic: [Mod] Auto image resize on upload v2.0.1 (2010-12-18)  (Read 592853 times)

0 Members and 3 Guests are viewing this topic.

Offline troopers

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • weltimperator.de
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #135 on: November 12, 2005, 10:34:52 PM »
Hi,

mein problem momentan ist, das das ganze nicht wirklich so läuft wie es gern sollte :) finde irgendwie das problem von dem ding nicht wirklich, ok - hab auch lang nimmer was in php gemacht, aber meine experimentierfreude ist da -g-

hatte irgendwo gelesen, das das gleiche bei einem ist, mitm phpbb mod, das das nicht läuft... und bei mir das gleiche. die thumbnails sind die downloadbilder und umgekehrt. bilder werden nicht automatisch rezied und und und.... :)))

noaja, schaun ma mal :D ansonsten
 sind eure sachen super ...

gruß aus berlin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
weltimperator.de

Offline Acidgod

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #136 on: November 13, 2005, 11:08:53 AM »
läuft den der Auto-Thumbnailer?

Oder bekommste grundsätzlich keine Thumbnails erstellt?

Offline chill

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #137 on: November 27, 2005, 06:03:33 PM »
I'm having the same problem as some, I can set it to auto resize the image in my acp, and hit save but it doesn't save the setting.

I've d/led the install_autoimage.php, and installed it in the correct folder, but it still won't save the setting.

I saw someone stated that he forgot to run "install_autoimage.php"...stupid question, how do I run it if I have a remote server hosting my site?

I thought all I had to do was upload the modded phps and this new one via my ftp.

thanks

Offline chill

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #138 on: December 07, 2005, 03:58:16 PM »
I know that to you guys, this is stupid, but can someone please answer my question about what I need to do besides just uploading the new php file to my site via FTP?

Cause I've also had this problem of not saving settings when I tried to do the user template select mod.  And unless someone can answer this I guess that I'm not going to be able to do any mods where I need to add a new php file.

Thanks,
Bill

Offline mawenzi

  • Moderator
  • 4images Guru
  • *****
  • Posts: 4.500
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #139 on: December 07, 2005, 06:18:14 PM »
I saw someone stated that he forgot to run "install_autoimage.php"...stupid question, how do I run it if I have a remote server hosting my site?

... mmm ...  :roll: ...

... Installations instructions Step 5 ...
Unzip it and upload to your 4images ROOT directory ... (http://yoursiteaddress/4images/).
Start it http://yoursiteaddress/4images/install_autoimage.php
... that means ... type in this (of course your personal) address in your browser-adress-field -> than ENTER !
... now the installation is running ...

I hope this is answer is not too stupid ...  :wink:
Your first three "must do" before you ask a question ! ( © by V@no )
- please read the Forum Rules ...
- please study the FAQ ...
- please try to Search for your answer ...

You are on search for top 4images MOD's ?
- then please search here ... Mawenzi's Top 100+ MOD List (unsorted sorted) ...

Offline chill

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #140 on: December 09, 2005, 08:46:41 PM »
thanks...now i can do some more mods :) :)

I knew it was something simple...but didn't think it would be that easy

thanks again

Offline Maniac

  • Newbie
  • *
  • Posts: 45
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #141 on: December 31, 2005, 04:50:13 PM »
Perfect - exactly what I needed :)

Thanks!

Offline lemccoy

  • Jr. Member
  • **
  • Posts: 90
    • View Profile
    • DrunkIsland
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #142 on: February 16, 2006, 03:23:11 PM »
Would there be anyway for a user to select which size to create the files as?

Such as a drop down list:

Small - 640x480
Medium - 800x600
Large - 1024x768 (default)

sorry if this has been brought up I scanned through the pages but didn't see anything.


Offline artistichideaway

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #143 on: March 07, 2006, 10:56:59 AM »
Works perfect. Thank you.  :D

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #144 on: March 07, 2006, 09:51:49 PM »
Läuft super. Bei mir auch mit Mysql 5 :D

Danke

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #145 on: March 10, 2006, 02:44:25 PM »
Habe festgestellt das auch bei mir nur der Admin den Mod nutzen kann. User bekommen weiterhin die Meldung Bild zu groß/breit/hoch.

Woran kann das liegen bzw. wie sähe der richtige code aus?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #146 on: March 10, 2006, 02:47:50 PM »
Step 2.2 ?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #147 on: March 10, 2006, 02:57:16 PM »
Step 2.2 ?

Seems to be correct. / Scheint richtig zu sein

    if ($this->image_size[1] > $this->max_height[$this->image_type]) {
      $ok = 0;
      $this->set_error($this->lang['invalid_image_height']);
    }
    if ($this->auto_image[$this->image_type]) {
      $ok = 1;
    }
    return $ok;
  }


Habe den Threat hier auch schon durchgelesen, andere Änderungen hatten auch keinen Erfolg. Version ist 1.7.2 falls sich in dem Bezug auf 1.7.1 etwas geändert hat.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #148 on: March 10, 2006, 03:26:11 PM »
Ok, replace
Code: [Select]
if ($this->image_size[1] > $this->max_height[$this->image_type]) {with:
Code: [Select]
if (!$this->auto_image[$this->image_type] && $this->image_size[1] > $this->max_height[$this->image_type]) {(and remove the changes from Step 2.2)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline |Rene|

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Bauwagencrew
Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« Reply #149 on: March 10, 2006, 03:29:58 PM »
Sorry but its the same. This is my function now:

Code: [Select]
  function check_image_size() {
    $this->image_size = @getimagesize($this->upload_file);
    $ok = 1;
    if ($this->image_size[0] > $this->max_width[$this->image_type]) {
      $ok = 0;
      $this->set_error($this->lang['invalid_image_width']);
    }
    if (!$this->auto_image[$this->image_type] && $this->image_size[1] > $this->max_height[$this->image_type]) {
      $ok = 0;
      $this->set_error($this->lang['invalid_image_height']);
    }
    return $ok;
  }


Is the function only called when normal users are logged in? Because there's nothing about users in the function.