This topic is locked

Users with passwords and guests without

12/6/2007 5:32:40 PM
PHPRunner General questions
3
3dwizard author

I just purchased a full version of PHPRunner and what I would like to do but having a difficulty is this. I understand how to make users, registration and all that other cool stuff. I want guest users to start searching the database and not go through the login screen. I want them directly to go and look at the database if they are not registered or have any rights. Others who want to edit their data would log on regularly through the login. Maybe or I am hoping there is a simple solution to this? Basically, I need to skip the Login Screen if a user is just guest, Possible?
My other question... When users add or edit their fields is there a way for the data to go through me for approval after they do it? Wheather it is posted or not already during that time does not matter.
Thank you.

Alexey admin 12/7/2007

Hi,
sure, just give your guest users a direct link to some page in your project.

I.e.

http://server.com/folder/table_list.php

instead of

http://server.com/folder/


Or modify generated index.htm file.

Replace login.php with another page name there.
It's easy to make newly added data invisible until admin would approve it.

Just add "approved" field to your table and modify SQL query for the table in PHPRunner this way:

select

...

from ...

WHERE approved=1



Then setup a custom view on the Datasource table tab for this table without WHERE clause.

Use Permissions dialog on the Securoty tab to make it accessible by admin only.

Admin will use this view to mark records as approved.