PhpDig.net

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

Reply
 
Thread Tools
Old 12-08-2004, 11:30 AM   #1
monkeyone
Green Mole
 
Join Date: Nov 2004
Posts: 7
Need meta description in results, getting much more...

All I want is for the meta description to show in the results... nothing else! I am getting the meta description, then the title, then page text... config.php settings:

define('SUMMARY_DISPLAY_LENGTH',300);
define('SNIPPET_DISPLAY_LENGTH',0);
define('DISPLAY_SNIPPETS',false);
define('DISPLAY_SNIPPETS_NUM',0);
define('DISPLAY_SUMMARY',true);
define('APPEND_TITLE_META',true);
define('TITLE_WEIGHT',3);
define('SUMMARY_LENGTH',300);

phpDig ver1.8.3
Site: http://www.mediavue.net/
Search for: marketing
Example: 1st result

Also, for which (if any) of the above configuration settings do I need to re-spider the site in order for changes to take effect?
monkeyone is offline   Reply With Quote
Old 12-08-2004, 12:43 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
PhpDig does not have an option combo to just return the META description, but if you leave your options as posted, you can try the following untested code edit.

In robot_function.php find:
PHP Code:
$first_words $titre_resume."\n".$page_desc['content'].$db_some_text
and replace with:
PHP Code:
$first_words $titre_resume."\n".$page_desc['content']; 
or replace with:
PHP Code:
$first_words $page_desc['content']."\n"
__________________
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 12-08-2004, 03:16 PM   #3
monkeyone
Green Mole
 
Join Date: Nov 2004
Posts: 7
Nope, still didn't work... Do I need to re-index the site? I am generally confused about when you need to re-index the site - do you need to after changing any of the settings I listed above? Thanks for your help, too BTW...
monkeyone is offline   Reply With Quote
Old 12-08-2004, 03:59 PM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Yes, you need to reindex after making the code change. A good rule of thumb to use when changing the config file is, after you make a config file change, do some searches, and if you don't see anything different, a reindex is likely needed.
__________________
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 12-20-2004, 10:38 AM   #5
monkeyone
Green Mole
 
Join Date: Nov 2004
Posts: 7
OK - after some tweaking, I think that worked... I am having a problem now though where blank results keep coming up... like this:

Results 1-25, 52 total, on "demo"

CRM - Customer Relations Management Software (42.64%)
CRM software solution, CRM - Customer Relations Management with Web-based content management.
http://www.mediavue.net/programming/..._software.html 26.6 k

>>(42.64%)
>>
>>0.0 k


Any ideas?
monkeyone 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
Description meta tag field in results flyingtwig How-to Forum 3 08-09-2004 07:58 AM
Displaying Meta Description skatters How-to Forum 7 07-28-2004 04:16 PM
Meta-Tags: Description and Keywords herberth How-to Forum 1 06-13-2004 01:45 AM
Can phpDig use only the Meta Description Tag JuarezTourGuide How-to Forum 2 05-10-2004 03:54 PM
Error Displaying Results By Meta Description vinyl-junkie Bug Tracker 0 05-10-2004 03:01 PM


All times are GMT -8. The time now is 09:22 AM.


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