4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: casper01 on July 10, 2008, 11:55:45 PM
-
Hello,
I have two main categories of images (photos and postcards), each holding images with a fixed width & height (eg. category #1 holds 1024x864 images, category and #2 contains 640x480 images.
When visitors upload their images in one of these categories, I'd like to set the max size for each category (from admin panel) #1 to 1024x864, and #2 to 640x480.
I hope you understan what I want to do
-
Давно не заходил в гости, но появилась необходимость в новой галерее.
Так и не нашел ответа на вопрос об отдельных настройках размеров картинок для разных категорий.
Есть в планах релизовать?
-
The most simple solution is "hard code" the new settings in member.php.
Find:
include(ROOT_PATH.'includes/page_header.php');
Insert above:
if (in_array($cat_id, array(1,23,4,5,10)))
{
$config['max_image_width'] = 800; //image width
$config['max_image_height'] = 800; //image height
$config['max_media_size'] = 1000; //max media filesize in kb
$config['max_thumb_width'] = 100; //thumbnail width
$config['max_thumb_height'] = 100; //thumbnail height
$config['max_thumb_size'] = 50; //max thumbnail filesize in kb
}
numbers in first line "1,23,4,5,10" are comma separated category IDs;
-
Спасибо.
Я примерно так и сделал.
Но это не совсем удобно.
Будет ли вынесено в админку в след. версии?