Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthornhoncoop
    • CommentTimeDec 10th 2007
     
    It looks like that my search fucntion only search in the caption and album name, is it possible to search in the description?
    • CommentAuthornhoncoop
    • CommentTimeDec 10th 2007
     
    I found finally the solution to do this:

    add the next line in plog-fucntions.php

    `description` LIKE '%".mysql_escape_string($term)."%' OR

    Between the next lines like this:
    if ((count($terms) != 1) || ($terms[0] != '')){
    $query .= " WHERE ( ";
    foreach ($terms as $term) {
    $query .= "
    `path` LIKE '%".mysql_escape_string($term)."%' OR
    `comment` LIKE '%".mysql_escape_string($term)."%' OR
    `description` LIKE '%".mysql_escape_string($term)."%' OR
    `caption` LIKE '%".mysql_escape_string($term)."%' OR ";
    }
  1.  
    I am trying to implement this code into my plog-functions.php, but I am really not seeing where I should be putting it. Could you include where it is (line) or after what line (copy paste the line here) so that I can better implement this code.

    thanks
  2.  
    Bump

    Anyone know where to insert his above mod?
    •  
      CommentAuthorkimparsell
    • CommentTimeDec 19th 2007
     
    It's already in plog-functions.php in Beta3. Open the file, and look around line 1473 - you should find the code already there.
  3.  
    THank you, looks like I will be DLing the Beta3 then = P