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

0 Members and 1 Guest are viewing this topic.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #195 on: December 25, 2010, 10:14:38 PM »
@ khansahib,

My bad...
The first one should read...
Code: [Select]
ALTER TABLE 4images_categories ALTER COLUMN multi_download SET DEFAULT 2
Buddy Duke
www.budduke.com

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #196 on: December 26, 2010, 05:48:53 AM »
well it executed successfully.
"Your SQL query has been executed successfully"

but when i tried to add a new category same "No" was selected by default.


Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #197 on: December 26, 2010, 04:46:12 PM »
well it executed successfully.
"Your SQL query has been executed successfully"

but when i tried to add a new category same "No" was selected by default.



Oh man, my brain is not working to well today... Sorry.

Look for the insert that I had the Mod put into the admin/categories.php file
Code: [Select]
// MOD Multi Download
  $multi_download = (isset($HTTP_POST_VARS['multi_download'])) ? intval($HTTP_POST_VARS['multi_download']) : 0;
// END MOD Multi download

Replace the 0 with a 2 and you should be good.
Remember, you have to do this in two places in that file
Buddy Duke
www.budduke.com

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #198 on: December 26, 2010, 06:02:32 PM »
sorry dude.. it didn't work Same "No" is selected by default and i've changed in both places as u said..

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #199 on: December 26, 2010, 10:36:51 PM »
sorry dude.. it didn't work Same "No" is selected by default and i've changed in both places as u said..

It has been awhile since I have worked on this mod...
I had to open my test site back up on it and now I see what you are talking about...
I did get it to work be re-writing the code that I placed in the admin/categories.php file but I do not feel comfortable giving the directions because people can make mistakes with it pretty easy.
I will include this change in the next release, but for you,
if you can zip your admin/categories.php file and attach it, I will make the modifications to it and maybe others with the same problem can see what I did to fix yours...

sorry for the troubles,
Buddy Duke
www.budduke.com

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #200 on: December 27, 2010, 03:03:16 AM »
Thanks for replying..
i've attached the file u asked for..

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #201 on: December 27, 2010, 03:26:34 PM »
Thanks for replying..
i've attached the file u asked for..

This should solve your problem. Also, if you create a sub-category, it will pull hte settings from the parent category like it should also.
I have set the default value to be what you asked for. Look in the code to see where you can change it is you need to.
Buddy Duke
www.budduke.com

Offline khansahib

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #202 on: December 27, 2010, 04:15:08 PM »
thanks alot bro.. its working welll :)

Offline wianet

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #203 on: February 10, 2011, 11:07:19 PM »
Hello! Sorry, i only speak very little English. I use this excellent MOD on the site, but in one browser (opera.com) there was a problem at photo downloading. The photo is loaded in a format .html. Please, help me.

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #204 on: February 11, 2011, 12:20:26 AM »
Hello! Sorry, i only speak very little English. I use this excellent MOD on the site, but in one browser (opera.com) there was a problem at photo downloading. The photo is loaded in a format .html. Please, help me.

In future, post your question in your native language, I can google translate.
I downloaded the latest opera browser 11 and this is what it looked like when I went to select a size to download.
(see attached image for what my screen looked like)
It sees it as a jpeg and not html. If it opens it in the opera browser it is still a jpeg image when you right click on it and say save image.

I would start by trying a different computer to see if it is a setting on the computer you are using.

Do you have a link where I can see the problem in action?
Buddy Duke
www.budduke.com

Offline wianet

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #205 on: February 11, 2011, 09:42:12 AM »
Forgive, I have found out that a problem not in yours mod. A problem in incorrect definition mime-types. Demo site - ginrus.ru. How to rectify this error of browser opera? :(
« Last Edit: February 11, 2011, 10:52:29 AM by wianet »

Offline budduke

  • Hero Member
  • *****
  • Posts: 506
    • View Profile
    • http://www.budduke.com
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #206 on: February 12, 2011, 01:05:35 AM »
Forgive, I have found out that a problem not in yours mod. A problem in incorrect definition mime-types. Demo site - ginrus.ru. How to rectify this error of browser opera? :(

To change the default actions in Opera...
go to "tools"
"Preferences"
"advanced"
"download"
un-check the box next to "hide file types opened with Opera"
Then look for "jpg" and click on edit...

I think that is what you are asking...
Buddy Duke
www.budduke.com

Offline wianet

  • Pre-Newbie
  • Posts: 4
    • View Profile
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #207 on: February 12, 2011, 10:29:10 AM »
To me has helped here that:
in a file download.php
header("Content-Type: application/octet-stream\n");
replace
header("Content-Type: application/octet-stream/jpeg\n");
Now opera downloads correctly.
Thanks you budduke for the help and good MOD  :)

Offline batu544

  • Sr. Member
  • ****
  • Posts: 336
    • View Profile
    • Free Celebrity wallpapers
Re: [MOD] Multi Size Download of same image [ver 4.3]
« Reply #208 on: February 25, 2011, 07:21:34 AM »
Hi budduke

                           I am back again with one more request with your MOD..  :) 

Here is the question.. Is it possible to add the watermark to all resized images ?

May be you can use the existing annotate.php file so that, the annotation setting can be controlled by the admin panel.


Thank you.
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 #209 on: February 27, 2011, 09:08:20 PM »
Hi budduke

                           I am back again with one more request with your MOD..  :) 

Here is the question.. Is it possible to add the watermark to all resized images ?

May be you can use the existing annotate.php file so that, the annotation setting can be controlled by the admin panel.


Thank you.
batu544

Which watermark mod are you currently using? There may be a way of linking them together...
Buddy Duke
www.budduke.com