PhpDig.net

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

Reply
 
Thread Tools
Old 02-24-2005, 12:15 AM   #1
syrix
Green Mole
 
Join Date: Jan 2005
Posts: 5
Filename as searchtext

Hey,

i want to search for filenames. the results have to be linked on this filenames. is this possible?
syrix is offline   Reply With Quote
Old 02-26-2005, 07:59 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
At the start of the phpdigIndexFile function in robot_functions.php add:
Code:
if (!isset($nbre_mots[$file])) {
    $nbre_mots[$file] = 1;
}
That should add the filename part of the indexed pages to the PhpDig engine.

Note that you may want to add some code inside the if statement to format the filename part to your preference.
__________________
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
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


All times are GMT -8. The time now is 10:46 AM.


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