Help - Search - Members - Calendar
Full Version: define dimensions minis for the photo
CyberiaPC.com Community > Technical Zone > Zenith Picture Gallery > Feature Requests, Add-ons and Mods
CharlyG
Add :

in config.php : line 15

CODE
$config['mini_pic_width'] = "400"; //400 is example
$config['mini_pic_height'] = "400"; //400 is example


in add.php : line 100

CODE
  //004 bis -- width/height mini
  $usize = @getimagesize($is_at); //get dimensions of image
   if($uploaded_pwidth < $config['mini_pic_width'] || $uploaded_pheight < $config['mini_pic_width']) {
 $add_msg .= sprintf("<br>".$lang['add_check4_2'], $config['mini_pic_width'], $config['mini_pic_width']);
 $any_errors = 1;
  }


exclamation.gif Questions exclamation.gif
1. How to add this in admincp.php ?
2. is it normal that same dimension is checked twice?
in 004 : max_pic_width (not max_pic_height)

CODE
 //004 -- width/height check
  $usize = @getimagesize($is_at); //get dimensions of image
  if($uploaded_pwidth > $config['max_pic_width'] || $uploaded_pheight > $config['max_pic_width']) {
 $add_msg .= sprintf("<br>".$lang['add_check4'], $config['max_pic_width'], $config['max_pic_width']);
 $any_errors = 1;
  }


for me, width and height are egal. but if they are different ??
CharlyG
Ali, can you move the message in the category of add-ons and modifications?

thank you wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.