Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1] 2 3 4 5 ... 8   Go Down

Author Topic: Flikr style image annotations  (Read 147839 times)

0 Members and 1 Guest are viewing this topic.

Nibbler

  • Guest
Flikr style image annotations
« on: March 01, 2007, 04:11:03 am »

Add text annotations to your images like on Flikr. Pretty cool.

Updated 2008-10-23

Version 1.1:
UTF-8 support
Apostrophe fix
Transparency fix


[Edit GauGau 2010-03-03]
This plugin has been added to the subversion repository: http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.4.x/plugins/annotate

It has been updated as well to reflect the version checking routines in the plugin manager that are meant to make sure that galleries don't break because of plugins installed that aren't meant for that particular version of the gallery.

Download: https://sourceforge.net/projects/coppermine/files/Plugins/1.4.x/cpg1.4.x_plugin_annotate_v1.2.zip/download
[/Edit]
« Last Edit: March 03, 2010, 10:00:09 am by Joachim Müller »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: Flikr style image annotations
« Reply #1 on: March 01, 2007, 09:09:15 am »

Wow, fantastic plugin - I really love it.
Logged

Davide Renda

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1427
  • aka "Lontano"
    • www.daviderenda.eu
Re: Flikr style image annotations
« Reply #2 on: March 01, 2007, 09:19:38 am »

absolutely grand!
Is there a way to give permissions to use annotate feature only to some user group? I have made a few tests on my gallery and noticed every registered user can annotate any pic, but I would rather prefere giving this privilege only to some groups.

PS. ah, forgot to mention: Thanks!!!

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Flikr style image annotations
« Reply #3 on: March 01, 2007, 02:59:27 pm »

In my config, install through CPG PluginsManager do not work,
i need to create SQL table by hand !
like that :
Code: [Select]
CREATE TABLE IF NOT EXISTS `cpg143_notes` (
  `nid` smallint(5) unsigned NOT NULL auto_increment,
  `pid` mediumint(8) unsigned NOT NULL,
  `posx` smallint(5) unsigned NOT NULL,
  `posy` smallint(5) unsigned NOT NULL,
  `width` smallint(5) unsigned NOT NULL,
  `height` smallint(5) unsigned NOT NULL,
  `note` text NOT NULL,
  `user_id` smallint(5) unsigned NOT NULL,
  PRIMARY KEY  (`nid`),
  KEY `pid` (`pid`)
) TYPE=MyISAM ;
Where cpg143_ is my SQL config. Change with your personal SQL setup.

After this mySQL manual install, i need to remove at the end CODEBASE.PHP this function :
Code: [Select]
function annotate_install() {
    global $thisplugin, $CONFIG;

$sql = "DROP TABLE IF EXISTS `{$CONFIG['TABLE_PREFIX']}notes`";
cpg_db_query($sql);

$sql = <<< EOT

CREATE TABLE IF NOT EXISTS `{$CONFIG['TABLE_PREFIX']}notes` (
  `nid` smallint(5) unsigned NOT NULL auto_increment,
  `pid` mediumint(8) unsigned NOT NULL,
  `posx` smallint(5) unsigned NOT NULL,
  `posy` smallint(5) unsigned NOT NULL,
  `width` smallint(5) unsigned NOT NULL,
  `height` smallint(5) unsigned NOT NULL,
  `note` text NOT NULL,
  `user_id` smallint(5) unsigned NOT NULL,
  PRIMARY KEY  (`nid`),
  KEY `pid` (`pid`)
) TYPE=MyISAM ;

EOT;

return cpg_db_query($sql);
 }

Plus some cosmetics adjustments in /lib/Photonotes.css

And this plugin work very well. Very usefull.
PREVIEW in my personnal Gallery)

.. Some issues with accentuated characters("à", "é", "ç" and " ' " ), not an UTF-8 compatible !

PYAP
« Last Edit: March 06, 2007, 04:01:14 pm by PYAP »
Logged

skidpics

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 223
Re: Flikr style image annotations
« Reply #4 on: March 01, 2007, 03:12:17 pm »

By the preview, the plugin is wonderful!  But where are the docs for this plugin?  I installed just fine, and under my intermediate image is an 'annotate' button, but once clicked, it does not but refresh the screen?

-- Skidpics
Logged

Farnsi

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 177
Re: Flikr style image annotations
« Reply #5 on: March 06, 2007, 12:33:57 am »

awesome, thanks!
one question: Is it possible to put the button down to where the others are located (crop and rotate..)?
Logged
Regards,
Farnsi

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Flikr style image annotations
« Reply #6 on: April 24, 2007, 08:05:33 pm »

jesus christ... really??

nibbler you're some kind of rainman coder... this is awesome.. poetry infact!
Logged

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Flikr style image annotations
« Reply #7 on: April 24, 2007, 08:07:13 pm »

yeah i'd like to see what farnsi suggested too... it's a bit out of the way where it is (it'd be good if you could maybe point us in the direction to customise it's location)
Logged

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Flikr style image annotations
« Reply #8 on: April 24, 2007, 08:15:36 pm »

sorry for the triple posting.. i was just excited.. i've been looking for a way to do this for a while and all i could find was a crummy open source flash implementation...

The single and double quote bug is pretty significant. Both " and ' display as URL encoded codes... they're both pretty commonly used so it's a pretty big speedbump... other punctuation seems to be fine (given limited testing) is there any workaround you can think of for the single and double quotes?

also, the fontsizes seem to be different in firefox and in internet explorer... This is a bigger issue than it might seem at first because the width of the orange overlay bar looks to be determined based on the fontsize, not based on the text itself... (i.e the text runs off the edge of the orange bar in firefox because the font is too large to fit on the orange bar) can you possibly point me in the right direction to resolve that?

cheers
Lachlan

Logged

n0fear2

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Flikr style image annotations
« Reply #9 on: June 17, 2007, 06:34:02 pm »

Add text annotations to your images like on Flikr. Pretty cool.

Mhhhh i am pretty bad in php but have 2 things i would love to get working. 1) instead of text users can put a sign on a area showing the user who sigend that. So registered users can mark themself on the pictures. Any idea? 2) i would like to have a show/hide butto for that, so people can look the pictures without those user-marks
Logged

n0fear2

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 20
Re: Flikr style image annotations
« Reply #10 on: June 22, 2007, 12:31:46 am »

noone that got an idea how to put the user names on instead of a custom text?
Logged

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Flikr style image annotations
« Reply #11 on: June 23, 2007, 02:41:47 am »

I've had no luck resolving the text display issues... i'm sure these are simple to resolve, but they're out of my league i'm afraid...

any clues?
Logged

risinghh

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: Flikr style image annotations
« Reply #12 on: June 24, 2007, 09:04:48 pm »

Please can any1 share the demo link here,
Logged

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Flikr style image annotations
« Reply #13 on: July 04, 2007, 04:58:30 pm »

not sure what's happened to this thread... it seems that nibbler has died somewhere...

Anyway, the problem I was experiencing was "resolved" by removing the "max-width: 200px;" from the .fn-note entry in the css...
It seems that this, along with the moz-border-radius for the two entries below it aren't supported in ie. consequently long entrys were working "fine" in ie but wrong in firefox... I expect that it should go to a new line when it exceeds 200px, but for some reason it wasn't... that *sortof* fixed it...

there's still a pretty major problem in the way it handles characters like " or '

if anyone could point me in the right direction on this it would be great..
cheers
Logged

Nibbler

  • Guest
Re: Flikr style image annotations
« Reply #14 on: July 04, 2007, 05:39:05 pm »

I'm not interested in supporting this mod; I made it for my own interest and I don't use it myself.
Logged

bitcloud

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 117
Re: Flikr style image annotations
« Reply #15 on: July 05, 2007, 02:12:16 pm »

too easy... i'll take a look at it and post what i can figure out...

you should be pretty chuffed with this mod btw nibbler.. its a definite winner...
Logged

Rallemann

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Flikr style image annotations
« Reply #16 on: July 18, 2007, 04:16:51 pm »

It's a very useful addition.
Is it possible to add an selection where you can choose
registered user to mark them on the photos? Just like the feature on the facebook?
It would be a little sensation and I think a lot of people would prefer like it.
Logged

Nibbler

  • Guest
Re: Flikr style image annotations
« Reply #17 on: July 18, 2007, 04:22:48 pm »

I have that, but it's too involved to post as a mod.
Logged

Rallemann

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Flikr style image annotations
« Reply #18 on: July 18, 2007, 04:30:12 pm »

What a pitty.
But possibly you can add something to involve the notations in the search engine.
So it would be an alternative to my request...?

You wrote that it is to complex for an mod...do you mean plugin or mod?
Perhaps you can write a description how to modificate?

Thank you for this excellent support.
« Last Edit: July 19, 2007, 02:02:11 am by Rallemann »
Logged

Rallemann

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 40
Re: Flikr style image annotations
« Reply #19 on: July 28, 2007, 01:26:49 pm »

no idea?
Logged
Pages: [1] 2 3 4 5 ... 8   Go Up
 

Page created in 0.023 seconds with 21 queries.