Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog Plugins
November 21, 2009, 01:27:37 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Maintenance release cpg1.4.25 - upgrade recommended
The Coppermine development team is releasing an update for Coppermine in order to fix an issue with http uploads that could occur in particular versions of PHP.The fix is not security-critical, so if your gallery is running fine with cpg1.4.23 or cpg1.4.24 you don't need to upgrade. If you are running an older version than cpg1.4.23, you must update to this latest version as soon as possible because of the security impact (the past few maintenance releases before cpg1.4.24 all were security-related).
[more]
   Home   Help Search Board rules Login Register  
Pages: [1] 2 3 4 5 ... 7   Go Down
  Send this topic  |  Print  
Author Topic: Flikr style image annotations  (Read 50545 times)
0 Members and 1 Guest are viewing this topic.
Nibbler Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« on: March 01, 2007, 03: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


* Screenshot-Coppermine Photo Gallery - New album - Mozilla Firefox.png (219.54 KB, 488x353 - viewed 3463 times.)
* annotate_1.1.zip (12.65 KB - downloaded 820 times.)
« Last Edit: October 23, 2008, 02:39:12 pm by Nibbler » Logged

I don't care about what they say, I won't live or die that way.
Joachim Müller
Administrator
*****
Gender: Male
Germany Germany

Posts: 45051


aka "GauGau"


WWW
« Reply #1 on: March 01, 2007, 08:09:15 am »

Wow, fantastic plugin - I really love it.
Logged
Davide Renda
Dev Team member
****
Gender: Male
France France

Posts: 1319


aka "Lontano"


WWW
« Reply #2 on: March 01, 2007, 08: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!!!
Logged

Pascal YAP
Dev Team member
****
Gender: Male
Armenia Armenia

Posts: 3791


He's me, and She's Moon


WWW
« Reply #3 on: March 01, 2007, 01:59:27 pm »

In my config, install through CPG PluginsManager do not work,
i need to create SQL table by hand !
like that :
Code:
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:
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, 03:01:14 pm by PYAP » Logged

! Pas de PM please ! No PM s'il vous plait !
skidpics
Coppermine frequent poster
***
Gender: Male
Posts: 223


WWW
« Reply #4 on: March 01, 2007, 02: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
***
Gender: Male
Germany Germany

Posts: 177



« Reply #5 on: March 05, 2007, 11:33:57 pm »

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
***
Posts: 113


« Reply #6 on: April 24, 2007, 07:05:33 pm »

jesus christ... really??

nibbler you're some kind of rainman coder... this is awesome.. poetry infact!
Logged
bitcloud
Coppermine frequent poster
***
Posts: 113


« Reply #7 on: April 24, 2007, 07: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
***
Posts: 113


« Reply #8 on: April 24, 2007, 07: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
*
Posts: 20


« Reply #9 on: June 17, 2007, 05: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
*
Posts: 20


« Reply #10 on: June 21, 2007, 11:31:46 pm »

noone that got an idea how to put the user names on instead of a custom text?
Logged
bitcloud
Coppermine frequent poster
***
Posts: 113


« Reply #11 on: June 23, 2007, 01: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
*
Posts: 27


« Reply #12 on: June 24, 2007, 08:04:48 pm »

Please can any1 share the demo link here,
Logged
bitcloud
Coppermine frequent poster
***
Posts: 113


« Reply #13 on: July 04, 2007, 03: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 Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #14 on: July 04, 2007, 04: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

I don't care about what they say, I won't live or die that way.
bitcloud
Coppermine frequent poster
***
Posts: 113


« Reply #15 on: July 05, 2007, 01: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
*
Posts: 40


« Reply #16 on: July 18, 2007, 03: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 Topic starter
Dev Team member
****
Gender: Male
United Kingdom United Kingdom

Posts: 19445



WWW
« Reply #17 on: July 18, 2007, 03:22:48 pm »

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

I don't care about what they say, I won't live or die that way.
Rallemann
Coppermine novice
*
Posts: 40


« Reply #18 on: July 18, 2007, 03: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, 01:02:11 am by Rallemann » Logged
Rallemann
Coppermine novice
*
Posts: 40


« Reply #19 on: July 28, 2007, 12:26:49 pm »

no idea?
Logged
Pages: [1] 2 3 4 5 ... 7   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC
Page created in 0.046 seconds with 18 queries.