PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 08-22-2004, 05:58 PM   #1
visioneer
Green Mole
 
Join Date: Aug 2004
Posts: 4
How to index only part of page <title>?

How can I only index part of the page titles. I have the same beginning text one all pages. I don't want to index that part of the title. Can I exclude a string from indexing so that it won't index that part of the page titles. Perhaps I should use a meta tag for the page title. Also in connection with this, when I previously tried using the <!-- php Exclude --> tag to exclude the <title> from indexing it resulted in search results with no title text at all. So if I were to exclude the <title> when indexing how to I make the results show a page title?

This is the site I'm working with:
http://www.clba.org
visioneer is offline   Reply With Quote
Old 08-24-2004, 08:03 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Search for $title = trim($regs[1]); in robot_functions.php and then substr or str_replace it.
__________________
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 08-24-2004, 09:43 PM   #3
visioneer
Green Mole
 
Join Date: Aug 2004
Posts: 4
Not Quite It...

Thanks but that only really removed the title text that is stored after a page has been indexed. The full title is already indexed prior to that function.
visioneer is offline   Reply With Quote
Old 08-24-2004, 10:00 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Did you try a reindex? If you don't want to reindex, you'll need to edit the first_words column of the spider table to remove a portion of the title.
__________________
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 08-24-2004, 10:24 PM   #5
visioneer
Green Mole
 
Join Date: Aug 2004
Posts: 4
Yes, that was after the reindex. What seemed to work was placing the following:

Code:
//replace site-wide title text
$text = str_replace("Church of the Lutheran Brethren : ","",$text);
//replace common site-wide text
$text = str_replace("Church of the Lutheran Brethren","",$text);
visioneer 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
<!-- phpdigInclude --> and <!-- phpdigExclude --> doesn`t work Paka76 How-to Forum 0 12-06-2005 05:44 AM
Index HREF in <FORM> ? thenniart Troubleshooting 1 08-15-2005 10:17 AM
Indexing "<word>-<word>"? FaberFedor How-to Forum 23 02-28-2005 03:35 AM
Title of the results - how to change from <phpdig:page_link/> bforsyth How-to Forum 12 07-15-2004 08:53 PM
Instructions for use <!-- phpdigExclude --> and <!-- phpdigInclude --> maquido How-to Forum 1 06-02-2004 03:36 AM


All times are GMT -8. The time now is 07:01 AM.


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