Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lukazs

Pages: [1] 2 3 4
1
Mods & Plugins (Requests & Discussions) / Re: watermark when showing pic
« on: December 25, 2006, 11:39:11 AM »
Hi,

Is it possible to use only one of this script ability to not show full patch to image? I'm talking about watermark.php?image_id=xxx, this works great for images but how to set it to show other files? It's no needed to add watermark, just image_id=xx instead of data/media/489/game_shooting.swf in the end of site url.

Thanks.  :wink: :oops: 8O

2
Mods & Plugins (Requests & Discussions) / $cat_name
« on: November 04, 2006, 01:53:19 PM »
Hello again, I need your help again  :) I have one question what do I have to do to use the $cat_name in sessions.php?

Lucas

3
I got no error, but my additional download buttons is blured (like i would not have permissions to download image, but i am sure that download option in CP is set to "ALL" and normal download button is working fine.) What could be that? maybe my 4images version is bad? My version 1.7.3.

Thank you for help and your time.

4
Hi, I am working with wallpapers website and I would like to have two diffrinet download buttons. What I want to do is that I want to upload one image with diffirent sizes. (Ex. 800x600 and 1024x768) So website visitors could download image with liked size. Can you help me do that? Is there any other ways to do that? (ex. that script would resize the image when downloading image to selected size.)

Thank you.

Lukas

5
Discussion & Troubleshooting / Re: upload error
« on: September 08, 2006, 01:08:16 PM »
yeah, it was everything just like u said. Everything perfectly in its places. But it now fixed by its self. It is working now.

Thank you for help!
Lucas

6
Discussion & Troubleshooting / Re: upload error
« on: September 07, 2006, 02:50:29 PM »
yes 100% sure

7
Discussion & Troubleshooting / upload error
« on: September 04, 2006, 08:46:50 PM »
Hi, i have added my new file extensions in the settings Valid file extensions txt and in includes/upload_definitions.php $mime_type_match['txt'] = array("text/plain", "text/richtext", "text/rtf", "text/html");


but i still got this error:

Error uploading image file: ab.txt
ab.txt: Invalid file type (txt, text/plain)

No database entry!


Thank you for your help!
Lucas

8
Discussion & Troubleshooting / Re: image_id 0
« on: August 28, 2006, 12:24:00 PM »
How did you transfer the DB?

On the new server there was old DB, i just changed all old files to new ones

9
Discussion & Troubleshooting / image_id 0
« on: August 27, 2006, 11:36:41 PM »
Hi, i have just trasnffered  my website to other server and when i am uploading new files, the uploader adds to the database the new record and image_id number is 0, but i have about 1K images and it should be image_id 1132. But thats not the worst. When i'm uploading another file it gives me and DB error: Duplicate entry '0' for key 1.

Sorry but what i did wrong?

Thank you for help

 Lukazs

10
Mods & Plugins (Requests & Discussions) / CAPTCHA system for downloads
« on: August 27, 2006, 03:39:09 PM »
I think that CAPTCHA system for downloads would be very usefull thing to save our websites from spaming and hacks  :D

Do somebofy know how to do that? I search this forum for about few hours, but what i did found is the systems to stop hotlinking.

Thanks for your help

Lukazs

11
Discussion & Troubleshooting / No image
« on: August 01, 2006, 02:22:40 PM »
Hi, when i'm uploading new images, sometimes it shows that i haven't Browsed and did not cheked the files what I want to upload. It writes me: Please recheck the marked fields. (and in red: Image * ). But this repeats only for few images. I do not know what it is. Maybe its the size? but it is only 2.9MB and server has no limits.

Thank you for help

Lukazs

12
Discussion & Troubleshooting / Random image error
« on: June 29, 2006, 11:26:38 AM »
Random image is not showing image from all categories. Just from some. I was editing somethig and lost in code :) Pleae help me to make random image as it was in default script. But I have a lot of mods installed so I can't overwrite the files.

Thank you

13
I'm trying to re-install the scripts on 1.7.2. But I got a minor problem.
Under category edit in the admin panel, it keeps saing Disable even when it's not. (look at screenshot)

I don't think I missed any parts of the how to. But I hope V@no or someone else has the answer

-  lars

Same problem for me. Some one help?

14
Mods & Plugins (Requests & Discussions) / Re: {image_id}
« on: June 16, 2006, 01:42:53 PM »
Hi, How to make this script show all images like (swf, avi, flv etc.). I would like that all images would be shown like this http://www.zaisk.com/watermark.php?image_id=XXX

There is the script, it works only with jpg,gf and png images. I need to delete the watermark and leave only "watermark.php?image_id=XXX".

Sorry for my bad english, i tryed my best.
Thank you for help.
Lukazs
Code: [Select]
<?php
$nozip 
1;
define('ROOT_PATH''./');
define('GET_CACHES'1);
include(
ROOT_PATH.'global.php');
require(
ROOT_PATH.'includes/sessions.php');
$user_access get_permission();

$watermark "water.png";

if (!
$image_id)
{
  die(
"Security violation");
}

$sql "SELECT cat_id, image_media_file, image_thumb_file
        FROM "
.IMAGES_TABLE."
        WHERE image_id = 
$image_id";
$image_row $site_db->query_firstrow($sql);
$cat_id = (isset($image_row['cat_id'])) ? $image_row['cat_id'] : 0;

if (!
check_permission("auth_viewcat"$cat_id) || !check_permission("auth_viewimage"$cat_id) || !$image_row)
{
  die(
"No permission");
}

$im imagecreatefrompng($watermark);

$image MEDIA_PATH."/".$cat_id."/".$image_row['image_media_file'];
$types = array(=> "gif"=> "jpeg"=> "png");
if (
$image_info = @getimagesize($image))
{
  
$image_create_handle "imagecreatefrom".$types[$image_info[2]];
  if (!
$im2 = @$image_create_handle($image))
  {
    die(
"Error opening $image!");
  }

  
imagecopy($im2$im, (imagesx($im2)/100)-(imagesx($im)/100), (imagesy($im2)/100)-(imagesy($im)/100), 00imagesx($im), imagesy($im));
  
  if(
$_GET[repeat])
  {
    
$waterless imagesx($im2) - imagesx($im);
    
$rest ceil($waterless/imagesx($im)/1);
    
    for(
$n=1$n<=$rest$n++)
    {
      
imagecopy($im2$im, ((imagesx($im2)/100)-(imagesx($im)/100))-(imagesx($im)*$n), (imagesy($im2)/100)-(imagesy($im)/100), 00imagesx($im), imagesy($im));
      
imagecopy($im2$im, ((imagesx($im2)/100)-(imagesx($im)/100))+(imagesx($im)*$n), (imagesy($im2)/100)-(imagesy($im)/100), 00imagesx($im), imagesy($im));
    }
  }
  
  
header("Content-Type: image/jpeg");
  
imagejpeg($im2);
  
imagedestroy($im);
  
imagedestroy($im2);
}
else
{
  die(
"Error opening $image!");
}  
?>

15
probably upload limit is too low in php.ini (look in phpinfo())

I'm sure that there is no upload limit.

Pages: [1] 2 3 4