46
Mods & Plugins (Releases & Support) / Re: [Mod] Auto image resize on upload. (updated 19/09/04)
« on: May 25, 2008, 11:01:51 PM »Step 2.2V@no, I am having problems with this. It's not the height thing, it's the width. I am using this, to include your other small mod that you posted a bit farther down in the thread. I am also using Chris' "Alternate directory for download files" mod. Everything works great... until a member goes to upload, and the width requirements give them an error. Near as I can tell looking at this mod of yours, the HEIGHT wouldn't be a problem, but the WIDTH is.
Find:Code: [Select]if ($this->image_size[1] > $this->max_height[$this->image_type]) {
$ok = 0;
$this->set_error($this->lang['invalid_image_height']);
}
Insert below:Code: [Select]if ($this->auto_image[$this->image_type]) {
$ok = 1;
}