|
08-26-2004, 04:40 PM | #1 |
Green Mole
Join Date: Dec 2003
Posts: 11
|
Where have all the <titles> gone?
Hi...
I'm having some trouble with PHPDig 1.8.3. All the results come back as files, rather than as titles. I've checked the relevant code after //extracts title and can't really see anything amiss. The pages on the site in question are a combination of standard static <title>Page Title</title> as well as dynamically PHP generated titles. Neither show up in the results. Any ideas? For reference, the site in question is www.housekeepingchannel.com There are two search boxes, one for just HousekeepingChannel.com and another for various cleaning sites across the internet. The HousekeepingChannel.com only box should be used to test. Thanks, -Paul |
08-26-2004, 09:56 PM | #2 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
|
08-26-2004, 10:08 PM | #3 |
Green Mole
Join Date: Dec 2003
Posts: 11
|
Thanks for your reply...
Unfortunately, I can't quite see how your post is relevant to my issue. The problem is in spidering the site, PHPDig doesn't properly pull the Title info out of the <title> tags. Any further help would be appreciated. Thanks, -Paul |
08-26-2004, 10:26 PM | #4 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Sorry, I thought you were having problems with the search form itself. What you need is to modify your phpdig template. Check out the documentation here. You need to have
Code:
phpdig:page_link Code:
phpdig:complete_path |
08-27-2004, 07:04 AM | #5 |
Green Mole
Join Date: Dec 2003
Posts: 11
|
Hi,
Thanks again for your reply. That's a good tip, however, it doesn't address this particular issue. I should have been more specific and mentioned that I have actually checked the database entries themselves to verify the data stored. While spidering, PHPDig is only storing filenames, rather than titles. Again, all the titles are in the classic standard <title>Blah Blah</title> format or dynamically created in that format. Any ideas? Thanks, -Paul |
08-27-2004, 07:31 AM | #6 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
Look at your config.php file and see what you have there for the value of:
DISPLAY_SNIPPETS DISPLAY_SNIPPETS_NUM DISPLAY_SUMMARY APPEND_TITLE_META I'm not sure exactly which value is messing you up (and it could be another variable in config.php, too), but I think you have some setting incorrect there. Note: Just change those values one at a time and then run your search page to test the change. You do not have to respider to test this. Let us know if this helps, and if so, which change fixed the problem. |
08-27-2004, 07:46 AM | #7 |
Green Mole
Join Date: Dec 2003
Posts: 11
|
ARRRRGGGH....
I appreciate your willingness to help, but this is getting frustrating. It has nothing to do with those settings either. Again, it is not a display issue. I have confirmed and reconfirmed this. Irregardless of those settings(set to true, false, etc.) the end result is the same. Looking inside the physical database shows that only filenames are being stored. Where title data would normally be stored, filename data exists. There is no title data being stored that could be displayed by adjusting these settings. So, unless I'm missing some rather obscure mechanics, it begs to reason that there is an issue while spidering and storing title data in the database. It seems that there have been similar encounters with this title issue. See post: http://www.phpdig.net/forum/showthread.php?t=1206 Sadly, my regex understanding is pretty rudimentary, and I can't quite make heads or tails of how PHPDig is filtering <title> tags. Thoughts? -Paul |
08-27-2004, 08:06 AM | #8 |
Purple Mole
Join Date: Jan 2004
Posts: 694
|
I was about to send a reply when you beat me to it. I realized I'm still off base with my previous replies. You said that the titles weren't getting into the database, so changes to config.php will only partially fix the problem, if at all. Duh!
I'll try and take a look at the code later if I get time and see if there's something I could suggest. Or someone else could come along in the meantime with some help. |
08-27-2004, 08:09 AM | #9 |
Green Mole
Join Date: Dec 2003
Posts: 11
|
Thanks,
Hopefully we can figure something out. I appreciate your support. Regards, -Paul |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
<!-- phpdigInclude --> and <!-- phpdigExclude --> doesn`t work | Paka76 | How-to Forum | 0 | 12-06-2005 06:44 AM |
<!-- phpdigExclude --> not always excluding | bhaai | Troubleshooting | 2 | 10-19-2005 10:03 AM |
Indexing "<word>-<word>"? | FaberFedor | How-to Forum | 23 | 02-28-2005 04:35 AM |
Instructions for use <!-- phpdigExclude --> and <!-- phpdigInclude --> | maquido | How-to Forum | 1 | 06-02-2004 04:36 AM |
< phpdigInclude > | oliviert | Troubleshooting | 12 | 05-19-2004 03:13 AM |