Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Search Options limited?

Quote Reply
Search Options limited?
So excited witht his Tongue
Need to get so caffeine for the night.

Anyhow have not found it yet, but is there a way to create a users with different levels of details they can see?

ie. registered members (sellers), may only add and modify their own info, and search, but it would show limited results (ie details "button" is inactive)

registered members (Buyers) Level 1 view limited info
registered members (Buyers) Level 2 view details also.


Thx
Quote Reply
Re: [Hank] Search Options limited? In reply to
Hi,

In Reply To:
registered members (sellers), may only add and modify their own info, and search
You can use the "Setup" function in Admin section to setup all properties of a table.

In Reply To:
but it would show limited results
DBMan SQL 2 doesn't support for that. Anyway, you can follow the following steps to change it:

1. Add a field in Users table: level enum['1','0']

2. Modify the search_results.html file, It'll look like:
<%if level%>
<%loop results%>
<%field_1%>.....<%field_n%>
<%endloop%>
<%else%>
<%loop results%>
<%field_1%>
<%field_2%>
<%endloop%>
<%endif%>

Cheers,
TheStone.


B.

Last edited by:

TheStone: Oct 18, 2001, 10:03 AM
Quote Reply
Re: [TheStone] Search Options limited? In reply to
Thx...

Quote Reply
Re: [TheStone] Search Options limited? In reply to
Oh yeah... silly meWink
Need more coffee...
I'll figure it out...

Last edited by:

Hank: Oct 18, 2001, 8:21 PM