Not signed in (Sign In)

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

Please sign in or apply for membership to remove the ads
    • CommentAuthorthebluebus
    • CommentTimeMar 22nd 2008
     
    i want the search to only go by the image desciption or caption, and not the filename. What files would i need to mess around with to achieve this?

    cheers
    •  
      CommentAuthormike
    • CommentTimeMar 23rd 2008
     
    There is a function called plogger_init_search in plogger-functions.php. Check out the MySQL Query...

    $query .= "`path` LIKE '%".mysql_escape_string($term)."%' OR
    `description` LIKE '%".mysql_escape_string($term)."%' OR
    `comment` LIKE '%".mysql_escape_string($term)."%' OR
    `caption` LIKE '%".mysql_escape_string($term)."%' OR ";

    That searches on file path (and filename), description, comment, and caption. You can remove the first line with the path to get rid of that functionality. So...

    $query .= "`description` LIKE '%".mysql_escape_string($term)."%' OR
    `comment` LIKE '%".mysql_escape_string($term)."%' OR
    `caption` LIKE '%".mysql_escape_string($term)."%' OR ";
    • CommentAuthorthebluebus
    • CommentTimeMar 24th 2008
     
    thanks a lot mike, appreciated