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 |
|

Posts: 3236
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/"
Posts: 145
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/watermarkI tried also with the extension /watermark.gif, but still the same problem.
Posts: 3236
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
Posts: 145
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.gifBut 1 questions, that watermark, must that be transparent???
Is that maybe the problem I have???
Posts: 3236
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
Posts: 145
/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
Posts: 145
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????
Posts: 25945
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
Posts: 145
Still not working
this is my path to my watermark
/public_html/Dbase/gallery/watermark/watermark.pngand 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
Posts: 145
Still no solution????? :cry:
Posts: 25945
FlyFort,
Try posting in the troubleshooting forum.
Dave