I have posted a support request on the fotonotes group board. I think I'm having some pathing issues with it.
Geert - Did you have to make any further modifications to what Greg had posted to get your to work, or did it just "work" based on his tutorial? Neither my default theme nor my testing_dev theme seems to want to display the proper image with annotations. Looks like the .js isn't executing at all.
Sorry, been away on vacation for more than a week. But I am back, well rested...
Thinkdreams, No I used the tutorial as you found on the yahoo group. Btw, kiddomono, thats me too , but until now I didn't had the time to test it some more. I think I will do it this week. At first I couldn't get it to work either, my problem was that I didn't set the correct paths to the fotonotes server (the path to fotonotes.php), you have to set it in the fnclient.js file.
Let me know if you find out more.
(When I am finished and satisfied with my theme, I think I will release it, so people can play with it some more... Until now it supports exif, zip archiving, show all thumbs, photo annotations, ...)
What does your path look like for the fotonotes server. I ended up sending my code off to Greg (the fotonotes dev guy) to see if he could get it to work properly. Hmmm.....
Allright. After reviewing everything, here's what I have:
1. I am on Dreamhost 2. I have installed zenphoto under a subdir called /zenphoto. 3. I am using a custom theme that I built called zenmingway. A derivative of the thinkdreams_zen theme. 4. In the image PHP file, I have: <!-- Fotonotes Additions --> <script type="text/javascript" src="<?= $_zp_themeroot ?>/fotonotes/fnclientlib/js/fnclient.js"></script> <link rel="stylesheet" type="text/css" href="<?= $_zp_themeroot ?>/fotonotes/fnclientlib/styles/fnclient.css" /> 5. In the fnclient.js I have: // Address of fotonotes.php on the server (this auto-detect should work): var fnServerPath = "/zenphoto/themes/zenmingway/fotonotes/"; var fnServerFotonotesScript = "fotonotes.php"; 6. In the fotonotes.php file I have (default settings): /* CONFIGURATION --------------------------------------------- */ // Complete URL to this script. Change only if 'autodetect' didn't work! $LOCALPATH = 'autodetect';
// This path is prepended to incoming paths that start with a slash! // Leaving empty will resolve paths starting with / from the server root $LOCALROOT = ''; 7. fotonotes is installed under the zenmingway root as: fotonotes fotonotes/fnclientlib fotonotes/fnclientlib/js fotonotes/fnclientlib/styles
Think you can check that out and see if you concur with my settings Geert, or do you see any glaring issues?
No, I don't see any wrong with these settings. I have them exactly the same. Well, you know, with other dir names of course...
Some other little things I think of...
In fnclient.js, did you change: var imageFileSrc = "id";
And in image.php, did you set a the img tag to something like this: printDefaultSizedImage(getImageTitle(),'fn-image',getFullImageURL()); So the class is set to fn-image and the id is set to the full path of the image?
Yup. I checked all of those. I'm stumped. I moved it to my dev site just to see if it had any effect using the default zenphoto code with minimal theming, and no dice there either.
I'm about to throw in the towel on annotation. I'm waiting to see what Greg has to say.
Comments
It looks simple enough to implement. i'll give this a try sometime over the weekend
http://groups.yahoo.com/group/fotonotes/message/47
Found it from the fotonotes website. I am still having some trouble with it, but I should have it resolved soon I hope.
Geert - Did you have to make any further modifications to what Greg had posted to get your to work, or did it just "work" based on his tutorial? Neither my default theme nor my testing_dev theme seems to want to display the proper image with annotations. Looks like the .js isn't executing at all.
I do have mod_rewrite on.
Thinkdreams,
No I used the tutorial as you found on the yahoo group. Btw, kiddomono, thats me too , but until now I didn't had the time to test it some more. I think I will do it this week.
At first I couldn't get it to work either, my problem was that I didn't set the correct paths to the fotonotes server (the path to fotonotes.php), you have to set it in the fnclient.js file.
Let me know if you find out more.
(When I am finished and satisfied with my theme, I think I will release it, so people can play with it some more... Until now it supports exif, zip archiving, show all thumbs, photo annotations, ...)
(btw, I'm a Dreamhost user too, only changed the WEBPATH in my zenphoto installation, but no problems with fotonotes)
1. I am on Dreamhost
2. I have installed zenphoto under a subdir called /zenphoto.
3. I am using a custom theme that I built called zenmingway. A derivative of the thinkdreams_zen theme.
4. In the image PHP file, I have:
<!-- Fotonotes Additions -->
<script type="text/javascript" src="<?= $_zp_themeroot ?>/fotonotes/fnclientlib/js/fnclient.js"></script>
<link rel="stylesheet" type="text/css" href="<?= $_zp_themeroot ?>/fotonotes/fnclientlib/styles/fnclient.css" />
5. In the fnclient.js I have:
// Address of fotonotes.php on the server (this auto-detect should work):
var fnServerPath = "/zenphoto/themes/zenmingway/fotonotes/";
var fnServerFotonotesScript = "fotonotes.php";
6. In the fotonotes.php file I have (default settings):
/* CONFIGURATION
--------------------------------------------- */
// Complete URL to this script. Change only if 'autodetect' didn't work!
$LOCALPATH = 'autodetect';
// This path is prepended to incoming paths that start with a slash!
// Leaving empty will resolve paths starting with / from the server root
$LOCALROOT = '';
7. fotonotes is installed under the zenmingway root as:
fotonotes
fotonotes/fnclientlib
fotonotes/fnclientlib/js
fotonotes/fnclientlib/styles
Think you can check that out and see if you concur with my settings Geert, or do you see any glaring issues?
Some other little things I think of...
In fnclient.js, did you change:
var imageFileSrc = "id";
And in image.php, did you set a the img tag to something like this:
printDefaultSizedImage(getImageTitle(),'fn-image',getFullImageURL());
So the class is set to fn-image and the id is set to the full path of the image?
I'm about to throw in the towel on annotation. I'm waiting to see what Greg has to say.
Thanks in advance.