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]   Go Down

Author Topic: Improve tooltip and keyword search  (Read 2544 times)

0 Members and 1 Guest are viewing this topic.

rivimey

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Improve tooltip and keyword search
« on: January 09, 2012, 05:23:57 pm »

Folks,
I've a an album at http://images.ivimey.org using cpg 1.5, and I'm wondering whether anyone has been able to improve two areas:

 - keyword search: it would be nice to be able to see a list of keywords in a margin (maybe even tag cloud) and click on them to select photos displayed in thumbnail view.

 - tooltips: current cpg uses the Title tag IIUC to display filename/filesize/dimensions/date. For my pics, that's not the useful info: I'd like to be able to customise this, and possibly to use a jquery plugin such as qTip (http://craigsworks.com/projects/qtip/) to display tooltips with more panache.

I can see how the current tooltip is created but I can't see any way to change it without changing core cpg files.

Regards,
Ruth
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Improve tooltip and keyword search
« Reply #1 on: January 10, 2012, 04:10:35 pm »

keyword search: it would be nice to be able to see a list of keywords in a margin (maybe even tag cloud) and click on them to select photos displayed in thumbnail view.
The clickable keyword list is a standard feature. There's also a plugin that creates a tag cloud for you.


tooltips: current cpg uses the Title tag IIUC to display filename/filesize/dimensions/date. For my pics, that's not the useful info: I'd like to be able to customise this, and possibly to use a jquery plugin such as qTip (http://craigsworks.com/projects/qtip/) to display tooltips with more panache.

I can see how the current tooltip is created but I can't see any way to change it without changing core cpg files.
Please post the relevant code section(s).
Logged

roaftech

  • Coppermine novice
  • *
  • Country: ro
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • Romanian Aid Foundation
Re: Re: Improve tooltip and keyword search
« Reply #2 on: September 16, 2012, 06:17:16 pm »

The clickable keyword list is a standard feature. There's also a plugin that creates a tag cloud for you.

Where can I find the code for modifying the keyword search routine? Specifically, I would prefer the tag cloud to have a single font size.
Logged
.
Steve Humphreys,
Help, Hope and Co-operation,
Asociatia Neemia, Dorohoi, Romania.
www.roaf.org/gallery

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15415
Re: Improve tooltip and keyword search
« Reply #3 on: September 17, 2012, 11:29:13 am »

Where can I find the code for modifying the keyword search routine?
include/keyword.inc.php


I would prefer the tag cloud to have a single font size.

Find
Code: [Select]
$fontSize = (10 + ($keyword_count[$keywords_array[$i]] - $minQuantity) * $step);and replace with something like
Code: [Select]
$fontSize = '12';
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 22 queries.