jrmeadows2
Forum Replies Created
-
Forum: Plugins
In reply to: [Cropnote] Plugin loads wrong jqueryThanks for the feedback.
I’ll update to jQuery 1.8.3 later this week.
Forum: Plugins
In reply to: [Cropnote] Photo identifierHi emerlo,
Currently, cropnote does not store the image source in the plugin. It saves a hash of the image src attribute which is used to create the IMG ID that you can see in the Image Notes table. This behavior is inherited from the plugin I used as a basis for Cropnote (Demon Image Annotation). I don’t know what led to that design decision, and I didn’t consider changing it when I wrote Cropnote – I just left it alone because it was working!
I think in order to get the feature you want, you would need to add the image source as a parameter in the AJAX request when saving image notes, and then write the source to the WP DB from within the AJAX handler.
For notes that have already been saved, or if you didn’t want to do that, you could write a php function that iterated through each page/post in the blog and calculated the image id the same way, and compared those ids with the ids in the cropnote database table.
I hope this helps give you an idea on where to start.
Jeff
Forum: Plugins
In reply to: [Cropnote] Subscriber problemI created a subscriber user on my website and everything worked exactly as I’d expect; with the default permissions (subscribers can only read notes), the notes showed up but the add note button was missing.
Did you change the permissions for the subscriber role? If so, what did you change them to? I’ll try to test that out. Do you have other plugins installed? There could be a conflict I haven’t seen before.
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] on activation – fatal errorHi Jockyc,
If you delete the plugin and install the latest version, 1.0.4, do you still see this problem?
Thanks,
JeffForum: Plugins
In reply to: [Cropnote] Cropnote note saving comments, author info or gravatarHi Jockyc,
This behavior is normally seen when the installation of the plugin didn’t work correctly, because then the database isn’t setup right. I noticed you started another thread about a fatal error, and that’s probably what’s causing this problem. I’m going to focus on solving that one first, and then, hopefully, this one will go away.
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpHi Cristophe,
I’ve uploaded version 1.0.4 that fixes the anonymous permissions. Sorry for the wait.
Hi,
You’re correct. The next/previous/gallery overlay are all hidden by a div element with class=”cropnote-background” which is given a z-index of 10001 (large enough to hide the next/previous/gallery overlay elements which have z-index 10000).
I implemented it this way because certain browsers won’t capture the mouseover of the notes unless they’re the highest z-index, so you couldn’t see the annotations with the next/previous overlays.
It should be possible to fiddle with those z-indexes to show the overlays you want. Also, by default the gallery overlay is set to false in the cropnote settings, so if you want that, you’ll have to enable it from the dashboard.
I haven’t had any time to work on cropnote lately, but I’ll hopefully have the chance in the next week or so. If you’re still interested, let me know, and I’ll see if I can figure out how to enable the overlays for you.
Jeff
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpThanks metwo! I’m really glad you like the plugin. I’ve added a donate link on the plugin page =)
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpHi metwo,
My post with those line numbers was based on a previous version. In version 1.0.3, which is the current version, you would change line 371 instead of line 376. The “var opts” line is now on line 66.
Let me know if you have any other questions.
Jeff
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpHi Crishtophe,
I’m glad you got it working on your site. The default permissions for Cropnote don’t allow anonymous users to add notes. You can change that behavior by clicking on the Permissions tab of Cropnote’s settings page. You can allow anonymous users to add notes by checking the box corresponding to Anonymous User and Add Notes. Then the Add Note button should show up for a user that isn’t logged in.
It looks like you found the lightbox customization settings as well. Is that correct?
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpHi Christophe,
Thanks for your patience and for all the feedback.
I finally understand the problem you are having. It looks like my plugin isn’t very compatible with prettyPhoto Media. The reason is that both plugins try to call prettyPhoto on your images; in this case, it appears that the options that my cropnote plugin are using for prettyPhoto are overwritten by the prettyPhoto Media plugin.
I am not 100% sure how to make these plugins more compatible in the general case. I’ll have to think about the correct solution.
In the meantime, if you edit my plugin (cropnote.php) line 376
From: add_action(‘wp_head’, ‘load_image_annotation_js’);
To: add_action(‘wp_footer’, ‘load_image_annotation_js’, 1000);
Then cropnote prettyPhoto options will overwrite prettyPhoto Media’s options and you should be good to go.
Test page: http://jeffandkelly.net/sandbox/
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] on ActivationFixed in 1.0.1. Marking resolved.
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpHi Cristophe,
I’ve uploaded version 1.0.3. Let me know if it works for you!
Cheers,
JeffForum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] no annotations for me… please helpHi christophe,
I’m still new to using SVN (the source control for the wordpress plugins). It looks like my latest version, 1.0.2, didn’t get uploaded correctly. The intention is for you to be able to have control over some settings related to prettyPhoto – so you can direct the plugin to use “prettyPhoto” or “lightbox” or whatever you like.
I will upload version 1.0.3 this evening which will fix the problem. In the meantime, if you change prettyPhoto Selector to lightbox and edit line 64 of cropnote.php as Scripple says, like so:
From this: var opts = { theme: ‘<?php echo $options[‘prettyPhoto’][‘theme’]; ?>’, <?php echo $options[‘prettyPhoto’][‘custom’]; ?> changepicturecallback:
To this: var opts = { theme: ‘<?php echo $options[‘prettyPhoto’][‘theme’]; ?>’, <?php echo $options[‘prettyPhoto’][‘custom’]; ?>, changepicturecallback:
Note there is a comma before the word “changepicturecallback:”
Sorry for the goof! I hope the plugin is useful for you.
Forum: Plugins
In reply to: [Cropnote] [Plugin: Cropnote] on ActivationI think you must be using an earlier version of PHP than version 5.3. I missed a line of code when trying to make it compatible with earlier versions of PHP. I fixed it in version 1.0.1.
Please let me know if it works for you.