User profile search (perl)

by Chris Vedis <csv(at)csvdesign.com>

 Date:  Mon, 12 Jun 2000 14:25:07 -0700
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
Need help if possible! Anyone know where I can get a script to do the 
following.

I have a directory containing a separate text file for every user. 
This text file contains the users profile in the following form.. 
(very simplified),

name of txt file="john.pro"

EMail::john@doe
Firstname::John
Lastname::Doe
Nextfield::
Nextfield::


I need a script that can search all profile text files within that 
directory based on the search query. Then post all matches for that 
query and include the matches name and a few other snippets of info 
as a standard.

Example, if a user is looking for someone in Arizona and does a 
search for Arizona, it would display all profile matches for Arizona 
in the following format...

User1 name................(standard)
User1 email...............(standard)
User1 State...............(queried item, changes on query)
Full Profile Link1........(standard)

User2 name................(standard)
User2 email...............(standard)
User2 State...............(queried item, changes on query)
Full Profile Link2........(standard)

and so on,

It would also be nice if it had the option to display all users just 
by selecting "view all users", at least until the site gets big 
enough to eliminate that function. That function would display 
exactly as the example above, for space reasons obviously. ie: Name, 
email and state with profile link only.
If possible I'd like the ability to customize what fields would be 
returned above, just for flexibility, but that would do if not.

The full profile link would be a link to the persons entire profile, 
the info that they have entered anyway. This would also need to be 
generated by the script.

It needs to be very flexible, I still need to add many fields to the 
profile, so it needs to be able to search regardless of the field 
name or type, and return that value as well as format the FULL 
PROFILE by pulling the values from the profile displayed as text not 
a form. The first name, last name and email fields will always remain 
the same.

Wow, after seeing all this, it seems like quite a bit! Well, let me 
know if anyone has anything remotely close to this, or where I can 
find it. I am not that great at perl so I would create it if I could, 
but I can't. I can get around a script pretty good but not create it 
myself.


Thanks
Chris vedis


.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA