If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Messages posted by: lasclavellinas
Forum Index » Profile for lasclavellinas » Messages posted by lasclavellinas
Author Message
How can we stop people voting more than one time? I was testing it and I can vote as many as want to. How can we fix this, anyone? please
Carbonize wrote:I'll answer this in the other thread. As to the emails I am asking if you received my email with the files in it.


Yes, I received the file, it's working good.

Thanks,
Do anyone knows what the difference between Advanced Guestbook.0 v2.4.1 and and v2.4.2-5130fix, I'm getting emails to upgrade, but I don't want to.
lasclavellinas wrote:
Carbonize wrote:Still not received my emails?


I got it.

Thanks,


Do I have to reply you back with the email you send me? sorry , don't get it. At same time I have a question for you: Do you what the difference between Advanced Guestbook.0 v2.4.1 and and v2.4.2-5130fix, I'm getting emails to upgrade, but I don't want to.
Carbonize wrote:Still not received my emails?


I got it.

Thanks,
Carbonize wrote:And I have replied twice. You not get them?


Hey - Thanks man, you're man. It's ok.
Carbonize wrote:And I have replied twice. You not get them?


it says I don't have any messages.
Carbonize wrote:Sorry got sidetracked by work. Email me to remind me.


I had sent you an email, let me know
lasclavellinas wrote:
Carbonize wrote:What I am saying is you can have PHP physically resize the picture when it is uploaded or you can just have the persons web browser resize it by putting the desired size into the img tag. I just need to know which so I can write the mod although the HTML method is probably the easiest.

I did write a mod for Lazarus that used Lytebox ( http://dolem.com ) to display the images. As this will resize images that are to large it may suit your needs.


What make your life easier would be fine with me.
I'll appreciated it.

Thanks


So, by when you will have it? let me know, thanks
Carbonize wrote:What I am saying is you can have PHP physically resize the picture when it is uploaded or you can just have the persons web browser resize it by putting the desired size into the img tag. I just need to know which so I can write the mod although the HTML method is probably the easiest.

I did write a mod for Lazarus that used Lytebox ( http://dolem.com ) to display the images. As this will resize images that are to large it may suit your needs.


What make your life easier would be fine with me.
I'll appreciated it.

Thanks
lasclavellinas wrote:
Carbonize wrote:Question is would you want the image resized
1 - Physically when the image is uploaded
2 - By HTML when the image is viewed


I guess:
By HTML when the image is viewed

It should be the same by
Physically when the image is uploaded

when the image is viewed, yeap.


I think this file need to be modified user_pic.php

<a href="javascript:gb_picture('$row[p_filename]',$row[width],$row[height])"><img src="$GB_PG[base_url]/$GB_UPLOAD/$row[p_filename]" align="left" border="0" $new_img_size[2]></a>

where: $row[p_filename]',$row[width],$row[height] are the size of the original file.

May be some condition will take care it?
Carbonize wrote:Question is would you want the image resized
1 - Physically when the image is uploaded
2 - By HTML when the image is viewed


I guess:
By HTML when the image is viewed

It should be the same by
Physically when the image is uploaded

when the image is viewed, yeap.
lasclavellinas wrote:
Carbonize wrote:Just right click on it in the pop up window and select properties.


Yea, but there is nothing that I can do because that function is calling the original image with the original size, and that what I want, I want resize the original. Any Idea?


This is the function that need to be changed but I don;t where: from file image.class.php

function create_thumbnail($source,$destination='') {
$img_filesize = (file_exists("$source")) ? filesize("$source") : false;
$destination = trim($destination);
if (strstr($destination, "/") || strstr($destination, "\\")) {
$new_file = $destination;
} elseif ($destination=='') {
$new_file = $this->destdir."/".$this->prefix.basename($source);
} else {
$new_file = $this->destdir."/".$this->prefix.$destination;
}
if (!$img_filesize || $img_filesize <= $this->min_filesize) {
return false;
}
$size = GetImageSize("$source");
$new_size = $this->get_img_size_format($size[0],$size[1]);
if ($this->is_imagick()) {
if (is_array($size) && count($size)>0) {
exec($this->imagick." -quality 90 -antialias -scale $new_size[0]x$new_size[1] $source $new_file");
}
} else {
$type = "$size[2]";
if (isset($this->supported_types["$type"])) {
switch ($type) {
case "1" :
$im = ImageCreateFromGIF("$source");
if (function_exists("imagecreatetruecolor")) {
$new_im = imagecreatetruecolor($new_size[0],$new_size[1]);
imagecopyresampled($new_im,$im,0,0,0,0,$new_size[0],$new_size[1],$size[0],$size[1]);
} else {
$new_im = ImageCreate($new_size[0],$new_size[1]);
ImageCopyResized($new_im,$im,0,0,0,0,$new_size[0],$new_size[1],$size[0],$size[1]);
}
ImageGIF($new_im,$new_file);
break;
case "2" :
$im = ImageCreateFromJPEG("$source");
if (function_exists("imagecreatetruecolor")) {
$new_im = imagecreatetruecolor($new_size[0],$new_size[1]);
imagecopyresampled($new_im,$im,0,0,0,0,$new_size[0],$new_size[1],$size[0],$size[1]);
} else {
$new_im = ImageCreate($new_size[0],$new_size[1]);
ImageCopyResized($new_im,$im,0,0,0,0,$new_size[0],$new_size[1],$size[0],$size[1]);
}
ImageJPEG($new_im,$new_file,90);
break;
case "3" :
$im = ImageCreateFromPNG("$source");
if (function_exists("imagecreatetruecolor")) {
$new_im = imagecreatetruecolor($new_size[0],$new_size[1]);
imagecopyresampled($new_im,$im,0,0,0,0,$new_size[0],$new_size[1],$size[0],$size[1]);
} else {
$new_im = ImageCreate($new_size[0],$new_size[1]);
ImageCopyResized($new_im,$im,0,0,0,0,$new_size[0],$new_size[1],$size[0],$size[1]);
}
ImagePNG($new_im,$new_file);
break;
}
}
}
return (file_exists("$new_file")) ? true : false;
}
Carbonize wrote:Just right click on it in the pop up window and select properties.


Yea, but there is nothing that I can do because that function is calling the original image with the original size, and that what I want, I want resize the original. Any Idea?
Carbonize wrote:Yo have two options. Physically resize the image on upload if it's to big or use HTML to resize the image in the browser.

There is a third option and I may take a look at writing that mod for AG.



That's what I want to do, I want to resize it manually, but I don't know what file is the pop up, so I can make the change. Do you know the file?

I found the file, it a js function, I played around with and i realized that the original pic need to resized, the same way they rename it, and get a small vesion of the original. I keep looking.
 
Forum Index » Profile for lasclavellinas » Messages posted by lasclavellinas
Go to:   
Based on the open source JForum