Hi Stephen, I made a new thread to avoid going OT in the other thread ("db update function").
I turned my idea into a plugin to upload anonymously images in an album. In 1.4.2 it worked perfectly, in 1.4.3 and latest trunk it gives issues in including functions files (require_once). The error is:
`
Page not found
The Zenphoto object you are requesting cannot be found.
Album: plugins/gigiuploader/zp-core
Image: setup
`
This is the plugin, it is very simple and only an alpha, the options are to be implemented yet and you must create an album in the folder `albums/fan`, but it should work at least.
http://www.mediafire.com/?e5g2kaxxddae0hrI use it in search.php, calling the function `printgigiuploader($searchwords);` in order to take the right image tag to assign (I actually use search functions only for tags in my project).
Can you help me understand what's wrong?
Thank you!
Comments
Add a 'define('OFFSET_PATH', 3);` as the first line of code
This basically declares the code to reside in a sub-folder of the plugins folder.
change `$path = WEBPATH . '/albums/fan/';` to `$path = SERVERPATH. '/albums/fan/';` (of course eventually to whatever album is in the options.) `move_uploaded_file()` and `chmod()` operate on filesystem paths, not web paths.
Did work for me when I tested with those two changes.
[edit] note that the original post had an error on the second line replacement.
Now I will work on it to make it generally usable and I'll give it to you to publish if you think it will be useful for other people.
http://www.zenphoto.org/news/general-contributor-guidelines#themes-and-plugins
You will understand that we cannot take over maintaining everything (even if we did help a bit in this case). Unless sbillard wants to do that naturally which I don't know right now.