keyword issues - Page 2 keyword issues - Page 2
 

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

keyword issues

Started by Jason1975, June 15, 2012, 10:05:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jason1975

Hi Sharpo

Thank you for trying to help me.

I have checked your forum and those are the results I am trying to achieve.

Could you please add 2 more albums with keywords black chimney and one with green chimney.

The way my gallery is working is that if you were to search green engine, the green chimney image will also come up and the same with the black chimney.

Have you edited your include/search.inc.php file or is it the standard file you are using?

Thanks again

sharpo

Have added 2 more albums with key word black chimney for one & green chimney for other. Then added black chimney keywords to one photo & green chimney to another. Each of the 4 albums only has 1 photo in.
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

sharpo

Sorry, forgot to add, just the standard file I am using - not clever enough to make many alterations!

http://www.sharpo.co.uk/cpg15test/index.php

The albums will be seen from the above link
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Jason1975

Sharpo yours is still working perfectly and exactly how I would want it to.

For the final test may I ask you to please add the following key words.

Test black engine - 'green mouth'
Test green engine - 'green inner disc'
Test black chimney - 'green outer disc'
Test green chimney - 'green lash'

Using these words will replicate part of what I am trying to do.

Thank you so much for helping out :)

sharpo

Quote from: Jason1975 on June 24, 2012, 01:53:06 PM
Sharpo yours is still working perfectly and exactly how I would want it to.

For the final test may I ask you to please add the following key words.

Test black engine - 'green mouth'
Test green engine - 'green inner disc'
Test black chimney - 'green outer disc'
Test green chimney - 'green lash'

Using these words will replicate part of what I am trying to do.

Thank you so much for helping out :)

Done as you requested, added the keywords, the photos still only appear in one of those 4 folders,
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Jason1975

Sharpo, yours works absolutely perfectly.

Thanks for adding the keywords so I could test it.

I will investigate if there are any folder structure differences and possibly re install from scratch.

You help has shown me that the search can work like I need it to so many thanks.

sharpo

You're welcome. Glad I could help.
Sharpo (not an expert, just a Coppermine user)
3 live galleries, first started in 2006.
http://www.sharpos-world.co.uk/BB3cpg/ with over 8,000 images.
http://www.sharpos-world.co.uk/cpg/ with over 25,000 images. 1.6.25
http://www.sharpos-world.co.uk/kc/ with over 300 images. 1.6.25

Αndré

Please don't mix up the search feature with the (album) keyword feature.

However, to make the search work as you asked for, open include/search.inc.php, find
$words = explode(' ', $string);
and replace with
$words = array($string);

Jason1975

Hi Andre.

That change seems to have solved the problems. The search is now working perfectly.

Thank you for the help :)

Αndré

Please
Quote from: Joachim Müller on September 28, 2008, 12:46:26 PM
tag your answer as "solved" by clicking on the "Topic Solved" button on the bar at the left hand side at the bottom of your thread.
if you consider the thread as solved.