Announcement

#1 2010-07-06 09:12:51

Nakre
Translation Team
2010-05-05
156

user upload style

well i think user upload that accepts one pic once a bit pain also maybe we can have option in admin panel to change these options
    *  the picture filesize must not exceed :200 KB
    * the width of the picture must not exceed :800 px
    * the picture height must not exceed :800 px
    * the picture fileformat must be jpg, gif or png

as well an option to how much pic can be upload at once ?
just an idea..

Offline

 

#2 2010-07-06 09:18:08

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7201

Re: user upload style

with [extension by Piwigo Team] LocalFiles Editor

tab 1

adds the line you want to change

// +-----------------------------------------------------------------------+
// |                                upload                                 |
// +-----------------------------------------------------------------------+

// upload_maxfilesize: maximum filesize for the uploaded pictures. In
// kilobytes.
$conf['upload_maxfilesize'] = 200;

// upload_maxheight: maximum height authorized for the uploaded images. In
// pixels.
$conf['upload_maxheight'] = 800;

// upload_maxwidth: maximum width authorized for the uploaded images. In
// pixels.
$conf['upload_maxwidth'] = 800;

// upload_maxheight_thumbnail: maximum height authorized for the uploaded
// thumbnails
$conf['upload_maxheight_thumbnail'] = 128;

// upload_maxwidth_thumbnail: maximum width authorized for the uploaded
// thumbnails
$conf['upload_maxwidth_thumbnail'] = 128;

and update values

The amendment will be preserved during update


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2010-07-06 09:41:10

Nakre
Translation Team
2010-05-05
156

Re: user upload style

that works for the sizes fine thanks..
as well an option to how much pic can be upload at once ? my point could be something like admin upload anyway:) where tag/description/author for each upload pic maybe..

Offline

 

#4 2010-07-07 04:12:53

angeles
Guest

Re: user upload style

Thanks for sharing~~~~!

 

#5 2010-07-11 23:21:42

Nakre
Translation Team
2010-05-05
156

Re: user upload style

how to add some text on the upload page maybe under these..
# the picture height must not exceed :1000 px
# the picture fileformat must be jpg, gif or png
# Here some msg <<

Last edited by Nakre (2010-07-13 10:48:03)

Offline

 

#6 2010-07-13 10:47:33

Nakre
Translation Team
2010-05-05
156

Re: user upload style

any idea ? :)

Offline

 

#7 2010-07-13 11:56:47

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7201

Re: user upload style

in your theme

Folder \template

add (with one shaped like the default theme) or edit (if it is already present) upload.tpl


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#8 2010-07-13 12:19:18

Nakre
Translation Team
2010-05-05
156

Re: user upload style

i have the upload.tpl file here themes\default\template
tho i cant see any of the lines im about to put another under..

Last edited by Nakre (2010-07-13 12:30:46)

Offline

 

#9 2010-07-13 12:22:29

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7201

Re: user upload style

Nakre wrote:

i have the upload.tpl file here themes\default\template

If you change this one, your changes will be lost at the next update

It is better for you to create your theme to not lose your customizations


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#10 2010-07-13 12:30:20

Nakre
Translation Team
2010-05-05
156

Re: user upload style

got it so not to play with default lol
how about  add upload.php file ?
i see these lines there  tho
$advise_title = l10n('Choose an image');
$content = l10n('the height of the picture must not exceed :');
$template->append('advises', l10n('the picture must be to the fileformat jpg, gif or png'));

Last edited by Nakre (2010-07-13 12:30:58)

Offline

 

#11 2010-09-05 09:54:27

Sugar888
Translation Team
Zurich
2009-11-29
54

Re: user upload style

ddtddt wrote:

with [extension by Piwigo Team] LocalFiles Editor

tab 1

adds the line you want to change

// +-----------------------------------------------------------------------+
// |                                upload                                 |
// +-----------------------------------------------------------------------+

// upload_maxfilesize: maximum filesize for the uploaded pictures. In
// kilobytes.
$conf['upload_maxfilesize'] = 200;

// upload_maxheight: maximum height authorized for the uploaded images. In
// pixels.
$conf['upload_maxheight'] = 800;

// upload_maxwidth: maximum width authorized for the uploaded images. In
// pixels.
$conf['upload_maxwidth'] = 800;

// upload_maxheight_thumbnail: maximum height authorized for the uploaded
// thumbnails
$conf['upload_maxheight_thumbnail'] = 128;

// upload_maxwidth_thumbnail: maximum width authorized for the uploaded
// thumbnails
$conf['upload_maxwidth_thumbnail'] = 128;

and update values

The amendment will be preserved during update

Hi guys

I had a similar question in the Italian Forum and for these values it works fine. Now I wanted to ask, if a person wants to add a file extention like 'psd' for the user upload, what code could he use?

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact