PDA

View Full Version : Don't index for search the words inside QUOTE


julius
08-02-2003, 03:00 PM
My members use quote everytime and I have not too much space on my site.
To save space in words and searchindex tables, I don't want the quoted words beeng indexed for searching.

Any hack to do this?

Xenon
08-02-2003, 03:18 PM
open admin/functions.php

find: if (!is_array($badwords)) {
if ($incp) {
include("./badwords.php");
} else {
include("./admin/badwords.php");
}
}

$post=$DB_site->query_first("SELECT postid,threadid,title,pagetext FROM post WHERE postid='$postid'");

below add:
$post['pagetext'] = trim(preg_replace("/(\[quote])(.*)(\[\/quote])/siU", "", $post['pagetext']));

julius
08-02-2003, 03:30 PM
Thanks Xenon, I will install it just now. :)

Xenon
08-03-2003, 07:47 PM
:)
np, you're welcome :)