PDA

View Full Version : Page Title not shown in Result??


stefanw
05-03-2004, 12:48 AM
Hi,

i've spidered a Site and if i make a search the Page Titles are not right displayed or the result displays untitled - this is wrong because the pages have correct Title Tags

This is my template:

<phpdig:form_head/>
<phpdig:form_field/>
<phpdig:form_button/>
<phpdig:form_foot/>
<br />
<font size="2">
<b><phpdig:result_message/></b>
<br /><i><phpdig:ignore_message/></i>
<br /><i><phpdig:ignore_commess/></i>
</font>

<phpdig:results>
<p>
<phpdig:page_link/><br />
<font size='2'>
<phpdig:text/>
</font>
<br />
<font size='2' color='green'><phpdig:complete_path/></font>
</p>
</phpdig:results>

What can i do to display the right title? phpdig version is 1.80

Regards

Stefan

vinyl-junkie
05-03-2004, 04:41 PM
Welcome to the forum, stefanw. Glad you could join us! :D

Your template looks correct. I have no idea why the titles wouldn't appear correctly. Could you post a specific example where the title isn't displaying correctly and what the HTML source looks like for the page? Perhaps that might give us a clue as to how we can help.

stefanw
05-03-2004, 08:56 PM
Hi,

you can see it here http://www.bandpro.de

Best Regards

Stefan

vinyl-junkie
05-04-2004, 03:29 AM
Thanks for posting the website link. Do you have a specific item in your search results where the title didn't display correctly? I searched on the term "band" and looked through about the first 5 or 6 search results. Everything looked correct to me.

Charter
05-04-2004, 04:55 AM
Hi. The titles are getting displayed as numbers or untitled because there is a > symbol within the title tags. To change this behaviour, go to the robot_functions.php file, and modify the following code prior to index:

//extracts title
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
$title = $regs[1];
}

stefanw
05-04-2004, 11:31 PM
Hi,

thank you for the hint. Thats it.

Best Regards

Stefan