PDA

View Full Version : Homepage-title in the results


RedThypon
11-27-2003, 03:15 PM
Hello,

is it possible, to prevent displaying the page-title in the search-results?
I don't mean the headline. I mean the block under it.

That is the last thing, I wish to change.
After that PhpDig is perfect for me :)


Thank you for your help.

yours
RedThypoon

Charter
11-27-2003, 03:24 PM
Hi. I'm not sure what you mean. Can you link me to an example?

RedThypon
11-27-2003, 03:29 PM
yes, sure.

http://redthypoon.de/walrus

if you search for the word adressen, then you can see, that the last 3 marked words in the result, are "Walrus Kultur e. V. +++ Adressen" and this is exactly the title of the "Adressen"-Page.
I would be cool to prevent displying them.

Hope, this was good explained.


thanks

yours
RedThypoon

Charter
11-27-2003, 04:13 PM
Thanks. The chunk of code to modify is the following found in the robot_functions.php file. Comment out whatever you don't want at the end of the text files that are stored in the text_content directory. It's the $add_text variable that adds that text to the end of the files in the text_content directory.

//weight of title and description is there
for ($itl = 0;$itl < TITLE_WEIGHT; $itl++)
{
$text_title .= $doc_title." ".$page_desc['content']." ";
}
$add_text = $text_title;
if (is_array($textalts) && isset($textalts['content'])) {
$add_text .= $textalts['content'];
}
if (is_array($page_keywords) && isset($page_keywords['content'])) {
$add_text .= " ".$page_keywords['content'];
}
array_push($text,$add_text);

RedThypon
11-27-2003, 04:23 PM
Yeah, that's it.
Great work :)

No it's official: I Love PhpDig.

If someone's asking me for a search engine, my answer will be "PHPDIG" :D


Thank you again for everything.


yours
RedThypoon