WordPress.org

Ready to get started?Download WordPress

Forums

Cropnote
[resolved] no annotations for me... please help (23 posts)

  1. christophe913
    Member
    Posted 1 year ago #

    Hello jrmeadows,

    If I see the screenshots, Cropnote is exactly what I need, but I can't get it work. Frustrating!

    1. I have prettyPhoto installed and I use this plugin to generate lightboxgalleries

    2. Then I have installed Cropnote but I cannot select or add notes to an image. There is no "Add Note" button on the right top of the image, like the images on the site http://www.superwhite.cc

    This is my testpage:
    http://www.mindthedrawing.com/testpagina/#pp_ful_resgallery-154/

    What am I doing wrong????

    I would appreciate any help!
    Thanks!

    http://wordpress.org/extend/plugins/cropnote/

  2. scripple
    Member
    Posted 1 year ago #

    I'm at the same stage. I can get pretty photo to work if I provide a rel="prettyPhoto" on the link surrounding the image.

    My understanding was to replace rel="prettyPhoto" with rel="lightbox" but that just turns off prettyPhoto. Also, I just updated to 1.0.2 but I don't see any new options involving how it works with prettyPhoto.

    I can't point you to an example as it's just on a non-public facing local host while I start to play with WP.

    Appreciate your work on this plugin, looking forward to getting it working.

  3. scripple
    Member
    Posted 1 year ago #

    Ok, I found out what's going on in terms of lightbox not working. In 1.0.2 there is a comma missing on line 64 before "changepicturecallback". When I add the comma replacing "prettyPhoto" with "lightbox" brings up prettyPhoto with the add note option.

  4. christophe913
    Member
    Posted 1 year ago #

    Hi scripple,

    Thanks for the research. I'm very new to this.

    Could you please send me the code-snippet?

    - What do I have to fill in in the field "jQuery Selector" (in the Cropnote-module on the dashboard)? Do I have to leave it empty?
    - And what do I have to fill in in the field "prettyPhoto Selector" (in the PrettyPhoto-module on the dashboard)?

    Still not working for me...

    Thanks in advance!
    Christophe

  5. christophe913
    Member
    Posted 1 year ago #

    Anyone?

    My testpage is: http://www.mindthedrawing.com/fotos-2/

  6. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

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

  7. christophe913
    Member
    Posted 1 year ago #

    Thanks!
    I'm looking forward to it!

    Fingers crossed!

    Christophe

  8. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Cristophe,

    I've uploaded version 1.0.3. Let me know if it works for you!

    Cheers,
    Jeff

  9. christophe913
    Member
    Posted 1 year ago #

    Hello Jeff!

    Thanks for your efforts, but the new version of cropnote is not working for me. I've tried really everything!

    So, I have 2 plugins:
    - PrettyPhoto Media
    - Cropnote

    1. Actual settings of PrettyPhoto Media
    - load stylesheet: enabled
    - Script location: footer
    - prettyPhoto selector: prettyPhoto (I changed it also in lightbox, but nothing happened)
    - prettyPhoto hook: rel
    - WP galleries: enabled (utilise prettyPhoto to display WordPress image galleries by default)
    - Show Twitter: disabled
    - Show Facebook: disabled
    - Theme: default theme

    2. Actual settings of Cropnote
    - Cropnote Status: enabled
    - jQuery Selector: #pp_full_res (I tried also to leave it empty)
    - Generate image ID automatically: enabled
    - Unique notes per post: enabled
    - Show note author info: enabled
    - Show note author gravatar: enabled
    - Use clicks instead of hover: 'only for mobile devices'
    - Action message: 'only for mobile devices'
    - prettyPhoto selector: lightbox (I tried also prettyPhoto, without result)
    - prettyPhoto theme: prettyPhoto default
    - prettyPhoto custom options: (I didn't change anything here)

    ...
    but no 'Add Note'-button for me...

    Jeff, I also noticed that in your new uploaded code (1.0.3.), the comma before 'changepicturecallback' is still missing. Is that normal?
    I changed it, but no result.

    I tried almost everything I guess, I created also new pages, with new galleries or individual pictures but nothing changed.

    This is my link:
    http://www.mindthedrawing.com/fotos-2/

    Maybe you have a solution... I hope.

    Thanks in advance for all your efforts,
    Christophe

  10. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

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

  11. christophe913
    Member
    Posted 1 year ago #

    Hi Jeff,

    Thanks for your support! It works!

    So eventually, these are my settings for the 2 plugins (+ change line 376 in cropnote.php)

    1. Actual settings of PrettyPhoto Media
    - load stylesheet: enabled
    - Script location: footer
    - prettyPhoto selector: prettyPhoto
    - prettyPhoto hook: rel
    - WP galleries: enabled (utilise prettyPhoto to display WordPress image galleries by default)
    - Show Twitter: disabled
    - Show Facebook: disabled
    - Theme: default theme

    2. Actual settings of Cropnote
    - Cropnote Status: enabled
    - jQuery Selector: #pp_full_res
    - Generate image ID automatically: enabled
    - Unique notes per post: enabled
    - Show note author info: enabled
    - Show note author gravatar: enabled
    - Use clicks instead of hover: 'only for mobile devices'
    - Action message: 'only for mobile devices'
    - prettyPhoto selector: prettyPhoto
    - prettyPhoto theme: prettyPhoto default
    - prettyPhoto custom options: (I didn't change anything here)

    So the lightbox appears with the "Add note" button. Great!

    Another question Jeff: do you know how to customize the lightbox. I'm asking you this because the "next"-arrow and "previous"-arrow disappeared.

    Thanks in advance for all your help,

    Christophe.

  12. christophe913
    Member
    Posted 1 year ago #

    Hi Jeff,

    I've just noticed another problem.
    It seems that the "add note"-button only appears when I'm logged in on my account.

    If someone else visits my site http://www.mindthedrawing.com/fotos-2/#prettyPhoto the "add note"-button is gone.
    I noticed the same problem at your website: http://jeffandkelly.net/sandbox/

    Wrong settings?

    Thanks!

  13. christophe913
    Member
    Posted 1 year ago #

    mmmmm... it seems to be that the "add note" button disappeared still

  14. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

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

  15. metwo
    Member
    Posted 1 year ago #

    Hi guys, I'm not sure what I'm doing wrong here, I was looking for the code you mentioned above, but on line 376 in cropnote.php I get:
    "register_uninstall_hook( __FILE__, 'cropnote_uninstall');"
    instead of:
    "add_action('wp_head', 'load_image_annotation_js');"

    and on line 64 I get a blank line Instead of:
    "var opts = { theme: '<?php echo $options['prettyPhoto']['theme']; ?>', <?php echo $options['prettyPhoto']['custom']; ?> changepicturecallback:"

    am I looking at the right script here? I opened cropnote.php from within my plugins folder.

    Anyway, I'm getting really excited about this, as I wanted to have this feature on my site for ages and no other plugin seemed to get so close to working as yours does :)

  16. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

    Hi 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

  17. metwo
    Member
    Posted 1 year ago #

    Hi Jeff,

    FINALLY! this is the greatest thing evvver :D no really, thank you so much for helping me out.

    I finally got the add button :)

    I don't really have a lot but I feel like giving you something, are there any possibilities to donate you something!?

  18. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks metwo! I'm really glad you like the plugin. I've added a donate link on the plugin page =)

  19. metwo
    Member
    Posted 1 year ago #

    Donated something ;)

    it's not much but its what I can give at the moment... again thanks for helping!

    I'll show you my finished project, if it ever gets to the point where I think its good enough to go online :-P

    Cheers
    Eugene

  20. christophe913
    Member
    Posted 1 year ago #

    Hello Jeff,

    Thanks for all your help.
    Something very strange on the Permissions-tab:
    When I want to change the settings on "Anonymous user" it seems that the settings are not saved. For example: I enable the check "Add notes", and then I confirm with the button "Update permissions" .... but then the "Add notes"-check is disabled again. So it seems to be that my settings are not saved.

    So, the "add note"-button still don't appear when an anonymous user visit my site.

    How comes?

    ... Maybe : code cropnote.php: ... //setup roles. everyone can read, contributors+ can add coments, authors+ can do so without approval, editors+ can edit/delete, admin+ can add html comments...
    it seems to be that a few codelines below the "setup roles"-section are missing? correct?

    thanks!

  21. christophe913
    Member
    Posted 1 year ago #

    Hello Jeff,

    do you know an answer/solution for the above mentioned post?

    thanks in advance!

    Christophe.

  22. jrmeadows2
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Cristophe,

    I've uploaded version 1.0.4 that fixes the anonymous permissions. Sorry for the wait.

  23. christophe913
    Member
    Posted 1 year ago #

    Thank you very much!
    Christophe

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic