Watermark problem

FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Fri, 2004-11-26 16:32

Hello everyone,

I've made a watermark, saved it, put it in a special folder (watermark) and then uploaded in the gallery folder.

When I try to upload a pic I receive this error

Warning: opendir(http://www.militaryaircraftcollection.info/Top10/gallery/watermark/untitled-2.gif): failed to open dir: not implemented in /home/military/public_html/Top10/gallery/layout/watermarkform.inc on line 58
Could not open directory http://www.militaryaircraftcollection.info/Top10/gallery/watermark/untitled-2.gifError: 106 

When I remove the folder watermark and put the gif file directly in the gallery folder I receive Error 96

Am I doing something wrong????

Thanks for the help

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2004-11-27 04:36

Your problem is that you have entered a URL when gallery expects a filesystem path. If you look in your config.php, a path looks more like "/var/www/domain.com/" and a URL looks more like "http://domain.com/some/path". Fix this and I suspect all will work. You will need to figure out your path, but it should be something like ""/some/stuff/i/dont/know/Top10/gallery/watermark/"

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2004-11-27 08:25

Hi fryfrog,

Thx for the answer, but still not working

Now I receive all the same but the error number change

I think this is what you ment by path

/home/military/public_html/Top10/gallery/watermark

I tried also with the extension /watermark.gif, but still the same problem.

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2004-11-27 09:17

I think it should be a directory, try "/home/military/public_html/Top10/gallery/watermark/" instead. You might also try visiting the dir and make sure its there. If that isn't right, you will have to wait for someone who uses or has used watermarking :)

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2004-11-27 09:38

Hi fryfrog,

Still not working, tried some paths out, but still the same problme but each with a different error number.

This is the url were you can find my watermark
http://www.militaryaircraftcollection.info/Top10/gallery/watermark/watermark.gif

And here you have the path on my FTP program
/public_html/Top10/gallery/watermark/watermark.gif

But 1 questions, that watermark, must that be transparent???
Is that maybe the problem I have???

 
fryfrog

Joined: 2002-10-30
Posts: 3236
Posted: Sat, 2004-11-27 09:43

So you obviously have the "/Top10/gallery/watermark/" part right, are you 100% sure the "/home/military/public_html" is correct also? You should be able to copy the beginning part of the path to your albums.

I was under the impression that it used transparent gifs, but seeing as I've never used it... me being wrong is a valid option also :)

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2004-11-27 10:02
fryfrog wrote:
So you obviously have the "/Top10/gallery/watermark/" part right, are you 100% sure the "/home/military/public_html" is correct also? You should be able to copy the beginning part of the path to your albums.

/home/military/public_html/ is what I use for my other paths also, like for the thumbimages, temp dir, album dir and those are wroking,
So still having troubles to use the watermark.

Whatever I try I just keep receiving the same warning, but with another error number

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sat, 2004-11-27 10:07

This is by the way Line 58 which is mentioned in the warning

if ($wmDir = opendir($gallery->app->watermarkDir)) {

Can I put the path directly in it without receiving any problems????

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25945
Posted: Sat, 2004-11-27 16:56

Use the results of FAQ Gallery:c.32 to give you the path to the image.

An alternative is to put the watermark image in the images directory of gallery and give it that path. You will need to get the path to the images directory from config.php

The watermark image does not have to be transparent. It will look much better if it is. For best results use a .png image with alpha transparency.

Dave

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Sun, 2004-12-12 14:31

Still not working

this is my path to my watermark

/public_html/Dbase/gallery/watermark/watermark.png

and this is the URL to that watermark

http://www.militaryaircraftcollection.info/Dbase/gallery/watermark/watermark.png

But still that error on Line 58 on watermarkform.php

 
FlyFort

Joined: 2004-11-07
Posts: 145
Posted: Fri, 2004-12-17 21:06

Still no solution????? :cry:

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25945
Posted: Fri, 2004-12-17 23:27

FlyFort,
Try posting in the troubleshooting forum.

Dave