PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 05-03-2004, 01:48 AM   #1
stefanw
Green Mole
 
Join Date: May 2004
Posts: 3
Page Title not shown in Result??

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
stefanw is offline   Reply With Quote
Old 05-03-2004, 05:41 PM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
Welcome to the forum, stefanw. Glad you could join us!

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.
vinyl-junkie is offline   Reply With Quote
Old 05-03-2004, 09:56 PM   #3
stefanw
Green Mole
 
Join Date: May 2004
Posts: 3
Hi,

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

Best Regards

Stefan
stefanw is offline   Reply With Quote
Old 05-04-2004, 04:29 AM   #4
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
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.
vinyl-junkie is offline   Reply With Quote
Old 05-04-2004, 05:55 AM   #5
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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:
PHP Code:
//extracts title
if ( eregi("<title *>([^<>]*)</title *>",$text,$regs) ) {
    
$title $regs[1];

__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Old 05-05-2004, 12:31 AM   #6
stefanw
Green Mole
 
Join Date: May 2004
Posts: 3
Hi,

thank you for the hint. Thats it.

Best Regards

Stefan
stefanw is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Manually set title for spidered page bvr How-to Forum 3 11-22-2005 01:45 PM
Display first H2 tag as title instead of page title mdavila How-to Forum 5 02-27-2005 07:48 PM
web page thumbnails in result page JWSmythe How-to Forum 2 05-15-2004 02:11 PM
Can I limit the page title length, that gets saved? Wayne McBryde How-to Forum 1 01-11-2004 02:19 PM
phpdigHighlight on result page 123av Troubleshooting 3 11-16-2003 07:46 PM


All times are GMT -8. The time now is 03:40 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.