Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: 1 [2]   Go Down

Author Topic: keyword issues  (Read 7990 times)

0 Members and 1 Guest are viewing this topic.

Jason1975

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: keyword issues
« Reply #20 on: June 24, 2012, 09:01:22 am »

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
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: keyword issues
« Reply #21 on: June 24, 2012, 10:28:36 am »

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.
Logged
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

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: keyword issues
« Reply #22 on: June 24, 2012, 10:32:06 am »

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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: keyword issues
« Reply #23 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 :)
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: keyword issues
« Reply #24 on: June 24, 2012, 04:26:33 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,
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: keyword issues
« Reply #25 on: June 24, 2012, 08:33:41 pm »

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.
Logged

sharpo

  • Coppermine frequent poster
  • ***
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 332
Re: keyword issues
« Reply #26 on: June 24, 2012, 10:03:26 pm »

You're welcome. Glad I could help.
Logged
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é

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: keyword issues
« Reply #27 on: June 25, 2012, 09:22:25 am »

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
Code: [Select]
$words = explode(' ', $string);and replace with
Code: [Select]
$words = array($string);
Logged

Jason1975

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: keyword issues
« Reply #28 on: June 25, 2012, 11:26:13 am »

Hi Andre.

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

Thank you for the help :)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: keyword issues
« Reply #29 on: June 25, 2012, 11:35:48 am »

Please
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.
Logged
Pages: 1 [2]   Go Up
 

Page created in 0.023 seconds with 20 queries.