PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Troubleshooting (http://www.phpdig.net/forum/forumdisplay.php?f=22)
-   -   No summary and cant reindex (http://www.phpdig.net/forum/showthread.php?t=1603)

alan-s 12-10-2004 10:49 AM

No summary and cant reindex
 
I have been testing phpdig 1.8.4 but cant seem to get a sensible result. I get either end of a paragraph as summary or no summary. My config looks like this
Code:

define('SUMMARY_DISPLAY_LENGTH',250);            //Max chars displayed in summary
define('SNIPPET_DISPLAY_LENGTH',250);            //Max chars displayed in each snippet

define('DISPLAY_SNIPPETS',true);                //Display text snippets
define('DISPLAY_SNIPPETS_NUM',4);                //Max snippets to display
define('DISPLAY_SUMMARY',true);                //Display description

I also get cant reindex thru the web admin all the time (grrr).

I was using version 1.6 but have attempted an upgrade as phpinclude exclude seemed a bit intermittent.

Whats thie difference betwwen a summary and a snippet?


Sorry for so many q's....in one post.

Grateful for any pointers

alans

Charter 12-10-2004 01:23 PM

  • The difference between DISPLAY_SUMMARY and DISPLAY_SNIPPETS:
    PHP Code:

    // code in search_function.php
    if (DISPLAY_SUMMARY) {
        
    $table_results[$n]['text'] = phpdigHighlight($reg_strings,ereg_replace('(@@@.*)','',wordwrap($textSUMMARY_DISPLAY_LENGTH'@@@')));
    }
    if (
    DISPLAY_SUMMARY && DISPLAY_SNIPPETS) {
        
    $table_results[$n]['text'] .= "\n<br/><br/>\n";
    }
    if (
    DISPLAY_SNIPPETS) {
        if (
    $extract) {
            
    $table_results[$n]['text'] .= $extract;
        }
        else if (!
    $table_results[$n]['text']){
            
    $table_results[$n]['text'] = phpdigHighlight($reg_strings,ereg_replace('(@@@.*)','',wordwrap($textSUMMARY_DISPLAY_LENGTH'@@@')));
        }


  • How phpdigExclude and phpdigInclude work:

    http://www.phpdig.net/forum/showthread.php?t=1430

  • How to reindex:

    http://www.phpdig.net/forum/showthread.php?t=1579

alan-s 12-11-2004 10:46 AM

Read that , understood - problem still exists
 
Quote:

[*] How phpdigExclude and phpdigInclude work:

http://www.phpdig.net/forum/showthread.php?t=1430

[*] How to reindex:

http://www.phpdig.net/forum/showthread.php?t=1579[/list]
Thanks for the links but after 6 hours setup/config testing i had already read them twice. I still can't get a phpdigExclude to work, its on its own new line. And reindexing via web admin simply refuses every time with 'Document already exists' feedback. I have searched here and read but dont see a potential solution/answer except for cron jobbing. But i can't be bothered to do this (lazy managed hosting takes ages to do my bidding) without some certainty of reward - i got a site to run and need to redevelopment tempates with phpdiginclude and exclude tags....

I think i should probably turn on debugging and test again. Weird thing is some templates work with the phpdigincludes and some do not. Any they are identical!

Any other pointers welcome.

:) alans

alan-s 12-11-2004 11:01 AM

Eureka -phpdigexcludes working now
 
I finally fathomed the problem - it was a small dreamweaver version difference which meant that the html and template files had suddenly got themselves mangled and were not updating properly. As a result some hand editing sorted the problem and reindexing via web admin seemed to work too.

Hoorah!

alans


All times are GMT -8. The time now is 07:52 PM.

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