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
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
Offline
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
Thanks for sharing~~~~!
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
in your theme
Folder \template
add (with one shaped like the default theme) or edit (if it is already present) upload.tpl
Offline
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
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
Offline
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
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