Support Forum Project Downloads FAQ Documentation About Demo Tutorials Blog
December 04, 2008, 09:05:58 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Developer blog started
We started this blog to put forward our experience, knowledge and views on technology, programming and opensource. This blog will highlight coppermine project, its development and features. But hold on, this blog will not be entirely about coppermine and will have topics including php, other opensource applications, world wide web, anything related to technology and sometimes developers and their life.

[more]
   Home   Help Search Board rules Login Register  
Pages: [1] 2 3 4 5   Go Down
  Send this topic  |  Print  
Author Topic: Flikr style image annotations  (Read 21363 times)
0 Members and 1 Guest are viewing this topic.
Nibbler Topic starter
Dev Team member
Coppermine addict
****
Gender: Male
Posts: 18180



WWW
« 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


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

I want to believe.
Joachim Müller
Administrator
Coppermine addict
*****
Gender: Male
Posts: 40948


aka "GauGau"


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

Wow, fantastic plugin - I really love it.
Logged

Don't contact me over PM or email unless I asked you to. Instead: post on the proper board. All unrequested messages will be ignored!
Like my avatar? Create a free custom avatar just like mine.
Lontano
Translator
Coppermine addict
**
Gender: Male
Posts: 1109


a fronte praecipitium a tergo lupi


WWW
« 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!!!
Logged

Pascal YAP
Dev Team member
Coppermine addict
****
Gender: Male
Posts: 3465


He's me, and my Avatar


WWW
« 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:
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, 04: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, 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
**
Gender: Male
Posts: 169


« 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 regular visitor
**
Posts: 96


« 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 regular visitor
**
Posts: 96


« 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 regular visitor
**
Posts: 96


« 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
*
Posts: 20


« 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
*
Posts: 20


« 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 regular visitor
**
Posts: 96


« 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 newbie

Posts: 18


« Reply #12 on: June 24, 2007, 09:04:48 PM »

Please can any1 share the demo link here,
Logged
bitcloud
Coppermine regular visitor
**
Posts: 96


« 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 Topic starter
Dev Team member
Coppermine addict
****
Gender: Male
Posts: 18180



WWW
« 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

I want to believe.
bitcloud
Coppermine regular visitor
**
Posts: 96


« 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
*
Posts: 40


« 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 Topic starter
Dev Team member
Coppermine addict
****
Gender: Male
Posts: 18180



WWW
« Reply #17 on: July 18, 2007, 04:22:48 PM »

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

I want to believe.
Rallemann
Coppermine novice
*
Posts: 40


« 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
*
Posts: 40


« Reply #19 on: July 28, 2007, 01:26:49 PM »

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

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.117 seconds with 21 queries.