Welcome! Log In Create A New Profile

Advanced

how to remove untilted documents?

Posted by devkbsc 
how to remove untilted documents?
May 03, 2016 11:34AM
Hello,
How to remove an untitled document item form the search result list? is there any modification in the source code?

I am actually searching in search_results.php. But i am not really sure about this file.

is there any idea to make it?
rap
Re: how to remove untilted documents?
May 06, 2016 10:47PM
You are looking in the correct file.

Look for a section of code preceded by "<!-- results listing -->" (or "// results listing", depending on Sphider version).

There will be a line containing "($title?$title:$sph_messages['Untitled'])". This is the code which decides to either print the title if it exists, or prints "Untitled" if the title is empty.

You would want some code which would either display the entry if title is not empty, or skip the entry and move on. Be aware that if you do this, there will be a mismatch in the number or results returned and the number of results actually displayed.
Sorry, only registered users may post in this forum.

Click here to login