In: , ,
On: 2004 / 12 / 10 Viewed: 39766 times

I have written a small hack to play more with a nice feature of Coppermine, the gallery script I am using here : the keywords you give to each picture.

The script adds, to the search page for example, a list of all keywords used, and the number of pictures for each (see my search page). I thought it made keywords very similar to the "tag" feature you have in Gmail or del.icio.us, if that makes sense to you.

The script

Get the hack here :

Right click the .txt, Save as "keywords.php", then drop it in your Coppermine directory, or copy paste the colorized version into a blank file (do not wget the .php, it's colorized html !)

Use it

I suggest you add the keywords list it to your search page. To do so, edit search.php with a raw text editor and add the following somewhere near the end, just before the line pagefooter(); for example :

PHP:
  1. include('keywords.php');

And now ?

And now, tag'em all !

Related posts

Metastuff

This entry "Hacking with Coppermine Keywords" was posted on 10/12/2004 at 12:32 am and is tagged with , ,
Watch this discussion : Comments RSS 2.0. You can trackback this post from your own site

4 Blablas

  1. 1
    Coco Dominican Republic »
    said, on 11/Jan/05 at 6:05 pm # :

    Verry cool Thanks a lot

  2. 2
    Jonathan J. United States »
    thought, on 20/Mar/05 at 11:20 am # :

    Thank you very much! I've implemented it and it's great! Thanks for sharing and for your adding to Coppermine.

    Jonathan

  3. 3
    adbug China »
    thought, on 29/Mar/05 at 9:45 am # :

    非常感谢!!
    THX

  4. 4
    Kal Mexico »
    wrote, on 05/Oct/08 at 8:00 pm # :

    great i love this feature
    any way to add it to the template.html page?

Leave a Reply

Comment Guidelines or Die

  • HTML: You can use these tags: <a href=""> <em> <i> <b> <strong> <blockquote>
  • Posting code: Post raw code (no <> &lt; etc) within appropriate tags : [php][/php], [css][/css], [html][/html], [js][/js], [sql][/sql], [xml][/xml], or generic [code][code]
  • Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar.
  • Spam: Various spam plugins on patrol. I'll put pins in a Voodoo doll if you spam me.
  • I will mark as Spam test comments, all comments with SEO names (ie "My Cool Online Shop" instead of "Joe") or containing forum-like signatures.

Read more ?

Close
E-mail It