4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
June 23, 2018, 09:24:29 PM

Login with username, password and session length
Search:     Advanced search
Follow 4images on twitter: Click here to follow!
Togle to toolbar
Translate this page with =>
Translate this page >
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  [1.7.8] Beschreibung nicht in Suche eingeschlossen
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: [1.7.8] Beschreibung nicht in Suche eingeschlossen  (Read 11866 times)
Mr Kennedy
Jr. Member
**
Offline Offline

Posts: 81

Thank You
-Given: 0
-Receive: 0


View Profile
« on: August 18, 2010, 06:47:35 PM »

Hi,

seit ich v. 1.7.8 nutze werden die Beschreibungen nicht mehr in die Suche eingeschlossen. Die alten Bilder werden noch mit der Beschreibung gefunden aber. Aber die, die seit 1.7.8 hinzugefügt wurden werden nur noch per Name oder Keyword gefunden.
Liegt's an mir (ich hab manuell das Update gemacht...) oder an 1.7.8?
Und wichtiger, wie funktioniert's wieder?  Confused
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 899

Vienna


View Profile WWW
« Reply #1 on: August 18, 2010, 07:07:41 PM »

wüßte jetzt nicht wie das bei 1.7.7 gegangen wäre.

 das ist leider ein bug.

ohne beistriche in der beschreibung wird alles als ein zusammenhängendes wort gefunden, und das darf natürlich nicht sein.
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
Mr Kennedy
Jr. Member
**
Offline Offline

Posts: 81

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: August 18, 2010, 08:02:33 PM »

Ah, ja. Hast Recht die Beschreibung zählt doch noch, aber halt nur wenn man sie komplett sucht.
Wenn man das wieder fixxen könnte und jedes einzelne Wort "gelten" lässt, wäre das super Smile
Logged
Rembrandt
Moderator
4images Guru
*****
Offline Offline

Posts: 4187

Thank You
-Given: 116
-Receive: 899

Vienna


View Profile WWW
« Reply #3 on: August 18, 2010, 08:08:35 PM »

ja wurde schon weitergeleitet...
Logged

Meine 4Images Modifikationen  Now over 100 Modification Online!    Meine 4images Demo Seite


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)
denisnovikov
Test group
Full Member
*
Offline Offline

Posts: 125

Thank You
-Given: 3
-Receive: 28


View Profile
« Reply #4 on: August 18, 2010, 08:24:09 PM »

The way to fix it manually:

1. /member.php

find:
1
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);

add following lines after:
1
2
3
if ( $image_column == 'image_description' ) {
  $search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}

Should occur 2 times in this file.

2. /admin/checkimages.php

find:
1
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);

add following lines after:
1
2
3
if ( $image_column == 'image_description' ) {
  $search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}

3. /admin/images.php

find:
1
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);

add following lines after:
1
2
3
if ( $image_column == 'image_description' ) {
  $search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}

find:
1
$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column.'_'.$i]);

add following lines after:
1
2
3
if ( $image_column == 'image_description' ) {
  $search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}

4. /admin/plugins/migrate_keywords.php

find:
1
2
3
4
5
$search_words = array(
  "image_name" => $image_row['image_name'],
  "image_description" => $image_row['image_description'],
  "image_keywords" => $image_keywords,
);

replace with:
1
2
3
4
5
$search_words = array(
  "image_name" => $image_row['image_name'],
  "image_description" => str_replace(' ', ',', $image_row['image_description']),
  "image_keywords" => $image_keywords,
);

6. /admin/validateimages.php

find:
1
$search_words[$image_column] = $image_cache[$key][$image_column];

add following lines after:
1
2
3
if ( $image_column == 'image_description' ) {
  $search_words[$image_column] = str_replace(' ', ',', $search_words[$image_column]);
}


After performing these steps data comes in "image_description" field will be forcedly split by white spaces before submitting keywords to database.

Follow members gave a thank to your post:
Sumale.my

For this post, 1 member gave a thank you!
Logged

check
Sumale.my
Addicted member
******
Offline Offline

Posts: 1771

Thank You
-Given: 168
-Receive: 84

Neverdie


View Profile
« Reply #5 on: August 18, 2010, 08:33:23 PM »

Very nice!!
Thank you!
Logged
Mr Kennedy
Jr. Member
**
Offline Offline

Posts: 81

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #6 on: August 18, 2010, 09:40:01 PM »

Top, das wäre gefixxt.
Ich sehe auch grade, mit dem Bildnamen scheint es das gleiche zu sein. Auch nur der volle Bildname wird gefunden...

Und kann man die, die währenddessen hochgeladen wurden mit der Beschreibung iwie fixxen, so das die auch gefunden werden?
bzw anschließen auch mit den Bildnamen?

Im übrigen ist in der "/admin/checkimages.php " der 1.7.8 "$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column]);" gar nicht zu finden. Lediglich "$search_words[$image_column] = stripslashes($HTTP_POST_VARS[$image_column.'_'.$i]);"
Logged
Mr Kennedy
Jr. Member
**
Offline Offline

Posts: 81

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #7 on: August 20, 2010, 06:22:26 PM »

ich push mal, den ich find das nen recht schlimmen Bug  Neutral
Logged
Mr Kennedy
Jr. Member
**
Offline Offline

Posts: 81

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #8 on: September 18, 2010, 11:59:26 AM »

push... the image name is still just one keyword  Confused
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.05 seconds with 23 queries.