This topic is locked

Login Issue

10/19/2010 05:42:14
PHPRunner General questions
T
tsp003 author

Hi and sincere apologies if this has been covered before, I've tried searching for an answer for ages, but have had no luck as yet.
I do not want an initial log on screen, I do not want anyone to have to log on to view the contents of the application, but for example if someone has something they want to add they are required to log in or register when they click edit or add.
Then I want the new addition logged and then would wait to be approved by an admin before being displayed.
I'm at a loss at how to achieve this. I tried setting up the security sessions with the 'add' page selected, but it seems to be setting a global login page.
I am also assuming that i need to create some sort of temporary table that ,when approved, either updates an existing record or creates a new one, but i've no idea how to do it in PHPRunner.
Any help would be greatly appreciated. Thank you <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=15515&image=1&table=forumtopics' class='bbc_emoticon' alt=':D' />

Sergey Kornilov admin 10/19/2010

First part is easy - enable Guest login so users are able to view data. Guests users only have readonly access so if they need to add/edit data they need to register.
You can also use User Group Permissions to enable access to a certain Add page for guests users.
You can also add a Status field to this table which would be empty by default. You can make this table display 'Approved' records only which will make new additions invisible until admin changes status to 'Approved'.
There is no need to create a temporary table. It will work just fine with one table and status field.

K
karmacomposer 10/19/2010



First part is easy - enable Guest login so users are able to view data. Guests users only have readonly access so if they need to add/edit data they need to register.
You can also use User Group Permissions to enable access to a certain Add page for guests users.
You can also add a Status field to this table which would be empty by default. You can make this table display 'Approved' records only which will make new additions invisible until admin changes status to 'Approved'.
There is no need to create a temporary table. It will work just fine with one table and status field.


Very nice. What is the process to enable record approval? I already have a status field in the user validation table.
Mike

Sergey Kornilov admin 10/19/2010

To approve the record admin needs to change status field value to 'Approved'.

T
tsp003 author 10/25/2010



To approve the record admin needs to change status field value to 'Approved'.


Thanks that works brilliantly for approving records. But i'm still stuck on the login screen, what i really want to do is bypass a login screen altogether. In the Cars template users are automatically taken to the list screen without any type of login and there is an option there for accessing the 'admin area' that is exactly what I am trying to create for my application, but i cant seem to work it out at all. thanks again

Sergey Kornilov admin 10/25/2010

Enable guest login on security screen to allow bypass the login page.

T
tsp003 author 10/25/2010



Enable guest login on security screen to allow bypass the login page.


Sorry am being really stupid, but the only thing I can find is in security/advanced and then 'enable login as guest', but that just adds a 'login as guest' link to the logon screen. I can't find any other reference to guest settings in the security settings, so still can't see anyway of bypassing the logon screen. Thanks again for your help.

Sergey Kornilov admin 10/25/2010

Once this option is turned on you can open any page directly bypassing the login page.

T
tsp003 author 10/26/2010



Once this option is turned on you can open any page directly bypassing the login page.


Sorry but i dont know or understand how to open any page directly, how do you go about doing this. Sorry to keep asking, am obviously going through a dumb phase, i know i'm gonna kick myself when i get this sorted <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=53909&image=1&table=forumreplies' class='bbc_emoticon' alt=':blink:' />

Sergey Kornilov admin 10/26/2010

Copy and paste URL to browser's address line i.e. http://www.yourwebsite.com/cars_list.php