Skip to Content Skip to Menu

portrait crop plugin

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
14 years 9 months ago #123145 by kmchen
portrait crop plugin was created by kmchen
Hi
I'd like to create a crop plugin that would let users crop their portraits. That plugin would trigger after portrait updates and open a new page with the uploaded portrait and some javascript functions that let the user define a new area within their portrait that will be used to crop it when they validate.

But it seems that onAfterUserAvatarUpdate() plugin method doesn't allow to open such a "interactive cropping page" and I don't want to open a new plugin tab. I'd like users crop their portrait through the already available "update your avatar" menu.

How could I do ?

Thanks for your advices

Post edited by: kmchen, at: 2010/01/29 16:52

Please Log in or Create an account to join the conversation.

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
14 years 8 months ago #125802 by kmchen
Replied by kmchen on topic Re:portrait crop plugin
Any body there ?

Please Log in or Create an account to join the conversation.

  • jakobe75
  • jakobe75
  • OFFLINE
  • Posts: 104
  • Thanks: 3
  • Karma: 3
14 years 8 months ago #125829 by jakobe75
Replied by jakobe75 on topic Re:portrait crop plugin
yeah this would be a good idea
the CB avatars are a little wonky especially when being ported to other modules.

having a nice square size would be perfect!

SimGallery has image cropping capabilities in their new 3.0 version.

although I have not fully messed around with it, I do not know if it applies to avatars.

but I know it does allow for front end avatar upload.
but SimGallery is expensive

Please Log in or Create an account to join the conversation.

  • kmchen
  • kmchen
  • OFFLINE
  • Posts: 17
  • Thanks: 0
  • Karma: 1
14 years 8 months ago #125947 by kmchen
Is there a way to alter normal execution flow in CB ?
I'd like to avoid avatar update function for example after my own function triggered by onBeforeUserAvatarUpdate.
Thanks for your helps

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum