• [MOD] Multi Size Download of same image [ver 4.7] 5 0 5 1
Currently:  

Author Topic: [MOD] Multi Size Download of same image [ver 4.7]  (Read 431934 times)

0 Members and 1 Guest are viewing this topic.

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] Multi Size Download of same image [ver 4.4]
« Reply #255 on: September 21, 2011, 01:59:23 AM »
the easy fix if to turn off the warning messages in php for now.
Or replace
	
	
	
	
  if ((((
$max_width/$max_height)==($download_multi_sizes[$var][1]/$download_multi_sizes[$var][2]))&&($multi_download_var['ratio']))||(!$multi_download_var['ratio'])){

With this:
	
	
	
	
  if (!
$multi_download_var['ratio'] || (@($max_width/$max_height)==@($download_multi_sizes[$var][1]/$download_multi_sizes[$var][2])&&$multi_download_var['ratio'])){


Note the "@" signs, these will suppress any warnings.

P.S.
you don't have to include everything into parentheses and also when there is an "OR" condition it's better put first the most simple condition, could possible save 0.00001% on performance :D
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 ajaykumar9887

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #256 on: September 21, 2011, 03:34:37 PM »
@pkwebhost,
Did you run the install file that should have placed the multi_download column into your datqabase?
i install that correctly.....can you fix it on my website

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #257 on: September 21, 2011, 11:33:07 PM »
@pkwebhost,
Did you run the install file that should have placed the multi_download column into your datqabase?
i install that correctly.....can you fix it on my website
Not sure what your question is? Is the Mutli_download field in your category database?
Buddy Duke
www.budduke.com

Offline tspitaler

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #258 on: December 23, 2011, 04:51:20 PM »
Hi there,
first of all - a great mod and love how it works.
i installed it on a brandnew 1.7.10 with the documentation that is shown.
Everything works pretty fine - except one thing - i cannot add any more categories in the administration.
renaming and changing from resizable to no resizable works pretty well too.
Someone knows about this problem and can help ?

thanks and have a great xmas
tom

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] Multi Size Download of same image [ver 4.4]
« Reply #259 on: December 23, 2011, 05:09:15 PM »
Welcome to 4images forum.

Do you get any error messages?

Please attach your admin/categories.php
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 tspitaler

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #260 on: December 24, 2011, 01:52:44 PM »
Hi V@no,
and thanks for the fast reply - and have a great xmas.

the only error i got is "Error adding category" after submit the new category. i included the admin/categories.php and the error message (printscreen).
I checked the file categories.php but didnt find an error.

thanks again for your help
tom

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] Multi Size Download of same image [ver 4.4]
« Reply #261 on: December 24, 2011, 05:35:57 PM »
You've missed one line in step 2. (there are two places needed changes) To save you time it's line 515.

P.S.
Kudos to you for finding proper lines even though they are different then per instructions. Good job.
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 tspitaler

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #262 on: December 25, 2011, 01:14:00 AM »
hi v@no - u have one xmas present good ;)
thanks for finding my mistake - im not sure what happened here - got the input on both places on my file local - but not on the file on the server. and i sent u the server file.

thanks again and have gr8 xmas
tom

Offline sathishIPL

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #263 on: December 26, 2011, 06:42:19 AM »
Hi ,

I have a simple clarification here.

The re size of an image will be created on the fly.

Is the re sized image will be remain  in the big folder? and it wont be deleted after the download.

Thank You...!

Br,
satz


Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #264 on: December 26, 2011, 07:15:52 PM »
Hi ,

I have a simple clarification here.

The re size of an image will be created on the fly.

Is the re sized image will be remain  in the big folder? and it wont be deleted after the download.

Thank You...!

Br,
satz



You are correct, After the image is resized, it is stored in the big folder and does NOT delete after the user downloads it so your server will not have to make the image everytime someone requests it. If the mod sees it has already been created once, it just uses that image instead of recreating it.
Buddy Duke
www.budduke.com

Offline survivedavis

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #265 on: February 27, 2012, 02:32:20 AM »
Hello,

I recently added this mod to a fresh install of version 1.7.10 along with the [Mod] Same Image in multiple Categories (http://www.4homepages.de/forum/index.php?topic=27570.0).

Everything for both mods seems to be working correctly, except that the images produced are very blurry, even if I click on "original size." This appears to be the same issue lona_jasty had in page 1 of this thread, however that was several versions ago and I'm having difficulty determining where something may have gone wrong. Any ideas on what I've done wrong? Thanks!

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #266 on: February 27, 2012, 11:59:26 PM »
Hello,

I recently added this mod to a fresh install of version 1.7.10 along with the [Mod] Same Image in multiple Categories (http://www.4homepages.de/forum/index.php?topic=27570.0).

Everything for both mods seems to be working correctly, except that the images produced are very blurry, even if I click on "original size." This appears to be the same issue lona_jasty had in page 1 of this thread, however that was several versions ago and I'm having difficulty determining where something may have gone wrong. Any ideas on what I've done wrong? Thanks!

It usually happens when something is placed in the wrong spot. It sound like it is trying to resize your thumbnail image instead of the actual image.
Can you zip all the changed files and provide me with a link to compair them with my copies?
Buddy Duke
www.budduke.com

Offline survivedavis

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #267 on: February 28, 2012, 04:47:37 AM »
Here are my files. Thank you for taking the time to look over these!

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #268 on: February 29, 2012, 12:14:25 AM »
Here are my files. Thank you for taking the time to look over these!

I think the big problem is in the function file. (fixed one attached)
I think I fixed everything in it to where it should work.
Let me know if you are still having problems, I saw a couple of things in the download file but do not think it should cause this problem.

PS: welcome to the forum! I see you are new...
I installed my first 4images gallery a few years back and have been hooked ever since.
The people and support on the board is the best I have found.
Buddy Duke
www.budduke.com

Offline survivedavis

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.4]
« Reply #269 on: February 29, 2012, 07:57:32 AM »
Thank you! I tried the new functions file and it works perfectly.

I gave a quick test run of 4images, gallery, and coppermine and very quickly fell in love with 4images. And the powerful mods such as yours make it perfect for any application I can currently think of. Thank you so much for the mod and the support!