[ic] Listing user database

Hans-Joachim Leidinger hans-joachim.leidinger@home.gelsen-net.de
Mon, 20 Nov 2000 20:46:10 +0100

Chris Wenham wrote:
>  A client wants their site to have a membership directory page that
>  can be used to list and search for other members of the site. I
>  thought that the most obvious way to implement this would be to
>  search the userdb that Interchange comes with (with a flag for
>  privacy, of course).
>  Unfortunately I can't list anything from userdb.txt, using either
>  loop or search-region. After removing qualifiers designed to protect
>  privacy, I found that not even the most simple search parameters I
>  knew of would list anything at all. EG:
>   [loop search="
>   fi=userdb.txt
>   st=db
>   ra=yes"]
>   <p>[loop-code]
>   [/loop]
>  Lists nothing. Removing mv_searchtype (st=db) causes it to list the
>  contents of the product table instead.
>  Is userdb a special case that cannot be searched normally and is
>  there a way to work around it without compromising privacy?
> Regards,
> Chris Wenham
> NetMonger Communications

It sounds like the userdb is protected per default.
Add a lines like

        $Config->{NoSearch} = '';

at the top of your page.


-------------Hans-Joachim Leidinger---------------------