No keywords on search.php OR keywordmgr.php No keywords on search.php OR keywordmgr.php
 

News:

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

Main Menu

No keywords on search.php OR keywordmgr.php

Started by macsimoin, July 09, 2006, 08:31:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

macsimoin

CPG documentation states the following in reference to enabling clickable keywords in search:

"When enabled, a list of all keywords entered in the "Edit files" page will appear at the bottom of the search page, with each keyword being a clickable search link."

I have this option enabled in Config, but there are no keywords showing up on the search page. What am I missing here? Or, am I misunderstanding the purpose of this feature?

Stramm

have you added keywords? That's the 'edit files' part you quoted

Below the intermediate view of a pic click 'edit file information' and add some keywords for that image

macsimoin

#2
Stramm,

I have 250 keywords that I've added to the database (in table_dict); I assumed that by enabling this option the keywords would appear on the search page but they do not.

I even tried this mod but still no luck:

http://forum.coppermine-gallery.net/index.php?topic=4768.0

EDIT:

Maybe this has something to do with the problem: I've removed the ability for users to add keywords to album or photo titles and descriptions because there were too many complaints about their photos showing up in more than one album. So, all I did was remove the html and comment out the function where necessary.

However, would my doing all that prevent the keywords in table_dict from showing up on the seach page? Or, is it only keywords entered by users (i.e. keywords that appear in table_pictures) that are supposed to show up on the search page?

Nibbler

It uses the keywords in the pictures table.

macsimoin

So, I guess putting the keywords from table_dict onto the search page isn't an option?

Something like: $result = mysql_query("select keyword from {$CONFIG['TABLE_DICT']} WHERE keyword != 'ORDER BY keyword'"); perhaps?

Nibbler

No, it's just a list of keywords. There is nothing there to connect the word to the picture, that's why they are in the pictures table.

macsimoin

Nibbler,

I don't need the pics just a list of clickable keywords. That's what I was expecting to show up. There are few mods/hacks here for it but I can't get ANY of them to work.

Nibbler

What do you expect to happen when you click on them?

macsimoin

Well, I guess I'm expecting images to show up...but maybe I'm missing the point. All I want to do is have clickable keywords on the search page that call (?) the images via words in the title and description of the photos on the site.

In other words, clickable keywords that are fetched from words in the titles and descriptions written by the users themselves. I guess I need to find a way to match the keywords in table_dict to the words in table_pictures' title and caption. Make sense?

I did find something along these lines but I'm going to have to hack it to death to get it to do what I want:

http://forum.coppermine-gallery.net/index.php?topic=12522.0