PDA

View Full Version : Where have all the <titles> gone?


siliconkibou
08-26-2004, 03:40 PM
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 (http://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

vinyl-junkie
08-26-2004, 08:56 PM
http://www.phpdig.net/forum/showpost.php?p=3767&postcount=8 ;)

siliconkibou
08-26-2004, 09:08 PM
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

vinyl-junkie
08-26-2004, 09:26 PM
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 (http://www.phpdig.net/navigation.php?action=doc#toc9). You need to have phpdig:page_link for your results title, instead ofphpdig:complete_path
Hope this helps. :)

siliconkibou
08-27-2004, 06:04 AM
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

vinyl-junkie
08-27-2004, 06:31 AM
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.

siliconkibou
08-27-2004, 06:46 AM
ARRRRGGGH.... :D

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

vinyl-junkie
08-27-2004, 07:06 AM
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.

siliconkibou
08-27-2004, 07:09 AM
Thanks,

Hopefully we can figure something out.

I appreciate your support.

Regards,

-Paul