Author Topic: Problem with search and keywords  (Read 10359 times)

0 Members and 1 Guest are viewing this topic.

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Problem with search and keywords
« on: September 16, 2009, 04:03:39 PM »
I choose photo and add keyword WillemAlexanderPavillion12 . When i look to photo in datails page i see this keyworld, but if i click on this keyword i see "Your search resulted in no matching records".
In the table wordlist i didn't see this keyword. Why i see this keyword in the detail page?
How fix this problem(i want add this word for search)?

If i add keyword WillemAlexanderPavillion1  - then all working.
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with search and keywords
« Reply #1 on: September 16, 2009, 04:06:38 PM »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Problem with search and keywords
« Reply #2 on: September 16, 2009, 04:24:01 PM »
I try. Problem still exist
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with search and keywords
« Reply #3 on: September 17, 2009, 02:54:55 AM »
And can you see this keyword anywhere when you edit that image in ACP?
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Problem with search and keywords
« Reply #4 on: September 17, 2009, 11:26:55 AM »
Yes, i see it (when edit picture in Control panel).
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Problem with search and keywords
« Reply #5 on: September 28, 2009, 06:27:53 PM »
V@no, have yoг any ideas about this situatiuon?

And one more question about keywords: when i add new photo then the name photo are add into keywords, but when i see details.html i didn't see this keyword in the list of keywords for search. How to show it with other keywords?
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with search and keywords
« Reply #6 on: September 29, 2009, 09:18:54 AM »
I'm out of clues about your original issue...sorry.

The simplest way is add in details.html template something like this:
Code: (PHP code for template) [Select]
<?php
global $site_sess;
echo 
'<a href="'.$site_sess->url(ROOT_PATH."search.php?search_keywords=".urlencode(un_htmlspecialchars("{image_name}")))."\">{image_name}</a>";
?>

{if image_keywords}, {endif image_keywords}
{image_keywords}
« Last Edit: September 29, 2009, 09:39:00 AM by V@no »
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Sun

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: Problem with search and keywords
« Reply #7 on: September 29, 2009, 10:13:12 AM »
Thank you, but it's work with some errors and i mean another way how to do this.
In the table gl_wordmatch we have all words which added to image. In details.html in keywords i see all words which have gl_wordmatch.keys_match=1, but more i want to see words with gl_wordmatch.name_match=1. I think it's must be very easy to change, but i don't know where to change it.
Tatyana.
I use 4images v.1.7.6
You can answer me in English and Russian languages.
Sorry, my English is not very good.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Problem with search and keywords
« Reply #8 on: February 22, 2010, 08:10:11 AM »
Even though the topic is half a year old, I just found out why WillemAlexanderPavillion12 doesn't work...it's because word WillemAlexanderPavillion12 is 26 letters long, but by default 4images accepts no more then 25 letters per keyword.
This can be changed in includes/constants.php:
define('MAX_SEARCH_KEYWORD_LENGTH'25);
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline kai

  • Administrator
  • Addicted member
  • *****
  • Posts: 1.423
    • View Profile
    • 4images - Image Gallery Management System
Re: Problem with search and keywords
« Reply #9 on: February 22, 2010, 08:59:27 AM »
Sometimes it's can be so easy. ;)
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search