• [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 431933 times)

0 Members and 1 Guest are viewing this topic.

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #210 on: February 28, 2011, 04:58:03 AM »
Hi
    I am using the watermark MOD which is done by V@no.. ==>   http://www.4homepages.de/forum/index.php?topic=13719.0




Thanks
batu544

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #211 on: March 03, 2011, 09:24:14 PM »

    I am using the watermark MOD which is done by V@no.. ==>   http://www.4homepages.de/forum/index.php?topic=13719.0
:?: :?: :?:
I have not installed that mod yet but looking through the code and inserts in it,
It looks to me like it creates the watermark as the original file is being uploaded to the server, either by admin or end users, and is applied to the original file.
At that point my mod would just resize that original image with the watermark already there...
Or am I misreading the mod?

I may have time this weekend to play with it more...
Buddy Duke
www.budduke.com

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #212 on: March 04, 2011, 11:59:13 AM »
Hi,
     Yes, you are correct. This mod applies the water mark to the original image.   

Now the question is..   without applying the watermarks to the original image.. is it possible to apply the watermark to the resized images ? 

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #213 on: March 06, 2011, 09:57:35 PM »
Hi,
     Yes, you are correct. This mod applies the water mark to the original image.   

Now the question is..   without applying the watermarks to the original image.. is it possible to apply the watermark to the resized images ? 

I noticed that the watermark mod does not modify the file in the big folder...
So my smaller display image in the normal folder has the watermark on it but the original bigger file does not...

in your download.php file...
Look for my code insert in this file that looks like this...
Code: [Select]
$file['file_path'] = $multi_new_image;


insert After
Code: [Select]
//-------------------------------------------------------------------------------------------
// --- Annotate Resized Images ----------------------------------------------------------------------
//-------------------------------------------------------------------------------------------
if ($config['annotation_use'] && strtolower($file_extension == jpg)) {
require(ROOT_PATH.'includes/annotate.php');
$ann_user_name = ($user_info['user_name']);
annotate_image($file['file_path']);
}
//-------------------------------------------------------------------------------------------

The only thing that I saw that may be a problem is that the watermark shows very small on the large images
And also, once it creates the re-sized image with the watermark, it will always be there for that re-sized image unless you delete them
Buddy Duke
www.budduke.com

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #214 on: March 07, 2011, 07:29:19 AM »
Thanks budduke... I will test this code within 2-3 days and let you know the result..



Thank you
batu544

Offline aliosa

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #215 on: March 21, 2011, 08:54:49 PM »
Hi

I just installed your mod on 1.7.9 , and i get the following error when i upload an image


Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /home/zoomphon/public_html/member.php on line 507

Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /home/zoomphon/public_html/includes/search_utils.php on line 98

Could you please help me out..

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #216 on: March 22, 2011, 12:14:48 AM »
Hi

I just installed your mod on 1.7.9 , and i get the following error when i upload an image


Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /home/zoomphon/public_html/member.php on line 507

Warning: array_walk() [function.array-walk]: Unable to call trim_value() - function does not exist in /home/zoomphon/public_html/includes/search_utils.php on line 98

Could you please help me out..

Are you sure you posted in the correct mod? This mod does nothing with uploading an image. It only modifies a file when you are downloading it from the site and not uploading...
Buddy Duke
www.budduke.com

Offline aliosa

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #217 on: March 22, 2011, 06:42:17 AM »
Hi

Thanks for the reply, i checked every file again, the problem was with functions.php.  Now i get no errors but still no multi download appears on the image page.
I'm clueless ..

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #218 on: March 22, 2011, 11:19:19 AM »
Hi

Thanks for the reply, i checked every file again, the problem was with functions.php.  Now i get no errors but still no multi download appears on the image page.
I'm clueless ..

Can you zip all the files you changed and attach them so I can take a look at them?
« Last Edit: March 22, 2011, 02:53:15 PM by budduke »
Buddy Duke
www.budduke.com

Offline aliosa

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #219 on: March 22, 2011, 12:01:44 PM »
Thank you so much, if you manage to solve this you get a premium link on my brand new website. :D

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #220 on: March 23, 2011, 12:04:50 AM »
Now i get no errors but still no multi download appears on the image page.

Your files look the same as mine...

I should have looked at your post a little closer,
In the admin control panel,
Under the category you want to use for the multi-download, choose edit.
Is the multi-download option turned on?
 :wink:
Buddy Duke
www.budduke.com

Offline aliosa

  • Pre-Newbie
  • Posts: 5
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #221 on: March 23, 2011, 05:54:32 AM »
 8O AAAAAA NO!!

That was it, thanks a lot. So do you want a link on my website ? if so please pm me your details.
Could i change the script in order to resize the images by their height rather than their width?


btw: the website is zoomphones.net
« Last Edit: March 23, 2011, 06:06:56 AM by aliosa »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #222 on: March 23, 2011, 07:19:40 PM »
If you only adjusted the height without resizing the width, it would squash the image...
look at the variables in the global.php file...
The crop may do what you want, after it resizes the image it then cuts some of it off to get it to that actual size you want but you will loose some of the image. I think this is better then squishing the image.
Buddy Duke
www.budduke.com

Offline wallpapers

  • Full Member
  • ***
  • Posts: 107
    • View Profile
    • Tuned-Cars.Net
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #223 on: April 11, 2011, 09:33:08 PM »
Hello everybody.
I have installed and it's working good. (Yes except for one tiny thing)  :oops:

I have wallpapers on my page and the smallest is about 1680x1050.
But as you can see in the picture below these are the only options i have to choose from.


I know the script is looking for the image showed in the detail.php page and i'm using the "big mod".
So i think the script is looking in the wrong map, He is not looking in the "/big" map.
I tryd many things to solve it but no luck. I hope someone have a solution.

I hope i explain myself good.
« Last Edit: April 11, 2011, 09:43:46 PM by wallpapers »



Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #224 on: April 12, 2011, 12:19:36 AM »
@wallpapers,
This mod does work with the bog mod

I have found the easiest thing is for me to check your files that you inserted the code into.
If you can zip all the changed files and I can compare them with mine to see where something is inserted incorrectly.

If you have a link where I can see what is happening, that usually can lead me down the right road also...
Buddy Duke
www.budduke.com