This topic is locked

login form

4/21/2012 08:43:21
Suggestions
M
Max author

I have a suggestion for ASPRunner Professional 7.1. I believe an option to exclude the login page would be great. This way, it would be possible to place the login form in a page list that is not protected in view mode.
Regards,

Massimo Benelli

C
CodeDog 4/26/2012



I have a suggestion for ASPRunner Professional 7.1. I believe an option to exclude the login page would be great. This way, it would be possible to place the login form in a page list that is not protected in view mode.
Regards,

Massimo Benelli


I agree. On a lot of my sites I want the ability to have admins/editors log in, but also want guests to be able to just view the data page directly without having to first see the login page. That's the single biggest reason I can't use PHPRunner in some instances (without doing a lot of extra coding). The ability to have a login option on screen, rather than starting with a login page, would be a huge benefit for my use...

Sergey Kornilov admin 7/10/2012

Just enable Guest login and provide Guest user access to certain pages via 'User Group Permissions'. Then guest users can access any of allowed pages directly bypassing the login page.

C
CodeDog 7/16/2012

Thanks, Sergey. I understand Guests can be enabled and they can click login as Guest to see the applicable screens, but aren't they still presented with the login screen initially? I haven't found a way around that.
Some examples of things I do are:
An embedded calendar (using iFrame usually) on a website where the end user wants visitors to be able to see events on the calendar as soon as the page displays, without a login screen interrupting the flow, but still have an 'Admin/Editor' login option on screen to log in and enter events. To do this now (without a lot of hand coding), I have to use a 3rd party PHP calendar script rather than the PHPRunner calendar template.
Similarly, a database screen of items (such as downloads) you want displayed immediately but an Admin login option available, and so on.
I know that you can link directly to a Guest screen, but then you have to have a different link available somewhere for the Admin or Editor to get to the login screen.
Being able to specify that Guests will go directly to the first applicable display screen (or table) as long as they have permission, yet have a login option on the display screen menu, would be a great option. Most website owners that have database content available for visitors want that information instantly available on screen, but also want to be able to log in to administer the database. Like when you go to someone's WordPress site, you immediately see blog content, but also have the option to login if you have an account.
When casual visitors to a site are confronted with the login screen, they're as likely to just leave as they are to click 'Log in as guest'. Businesses want to make the user experience as easy and seamless as possible to keep guests on the site and looking at content...

steelalive 6/7/2014



I have a suggestion for ASPRunner Professional 7.1. I believe an option to exclude the login page would be great. This way, it would be possible to place the login form in a page list that is not protected in view mode.
Regards,

Massimo Benelli


I desperately need this option too! I mean I have even tried to delete manually the login code on every page I need to be "publicly" available on certain custom views! Here is the code, it nmay work for you, but there is an extra bug...ALL IMAGES DISAPPEAR FROM THE PAGE. Put the code back and they appear again. NEARLY THERE....
Here the code to delete:

RunnerPage::reloginAndLogoutProcess('S');
if(!isLogged() && !$lookupInRegisterPage)

{

redirectToLogin();

}
// check user permissions

$permissionGranted = false;

if($lookupInRegisterPage)

{

$permissionGranted = true;

}

if(!$permissionGranted)

{

$permissionGranted = CheckTablePermissions($strTableName, "S");

}

if(!$permissionGranted && $lookupInPage)

{

$mainTable = $lookupMainSettings->getTableName();

$permissionGranted = CheckTablePermissions($mainTable, "S") || CheckTablePermissions($mainTable, "E") || CheckTablePermissions($mainTable, "A");

}
if(!$permissionGranted)

{

if(IsAdmin())

{

echo "<p>"."You don't have permissions to access this table"."
<a href=\"".GetTableLink("admin_rights", "list")."\">"."Proceed to Admin Area"."</a> "."to set up user permissions"."</p>";

}

else

HeaderRedirect("menu");

exit();

}
PROBLEM, all images disappear, and that is a HUGE PROBLEM!
Cheers!

steelalive 6/7/2014



I agree. On a lot of my sites I want the ability to have admins/editors log in, but also want guests to be able to just view the data page directly without having to first see the login page. That's the single biggest reason I can't use PHPRunner in some instances (without doing a lot of extra coding). The ability to have a login option on screen, rather than starting with a login page, would be a huge benefit for my use...


I desperately need this option too! I mean I have even tried to delete manually the login code on every page I need to be "publicly" available on certain custom views! Here is the code, it nmay work for you, but there is an extra bug...ALL IMAGES DISAPPEAR FROM THE PAGE. Put the code back and they appear again. NEARLY THERE....
Here the code to delete:

RunnerPage::reloginAndLogoutProcess('S');
if(!isLogged() && !$lookupInRegisterPage)

{

redirectToLogin();

}
// check user permissions

$permissionGranted = false;

if($lookupInRegisterPage)

{

$permissionGranted = true;

}

if(!$permissionGranted)

{

$permissionGranted = CheckTablePermissions($strTableName, "S");

}

if(!$permissionGranted && $lookupInPage)

{

$mainTable = $lookupMainSettings->getTableName();

$permissionGranted = CheckTablePermissions($mainTable, "S") || CheckTablePermissions($mainTable, "E") || CheckTablePermissions($mainTable, "A");

}
if(!$permissionGranted)

{

if(IsAdmin())

{

echo "<p>"."You don't have permissions to access this table"."
<a href=\"".GetTableLink("admin_rights", "list")."\">"."Proceed to Admin Area"."</a> "."to set up user permissions"."</p>";

}

else

HeaderRedirect("menu");

exit();

}
PROBLEM, all images disappear, and that is a HUGE PROBLEM!
Cheers!

steelalive 6/7/2014



Just enable Guest login and provide Guest user access to certain pages via 'User Group Permissions'. Then guest users can access any of allowed pages directly bypassing the login page.


I desperately need this option too! I mean I have even tried to delete manually the login code on every page I need to be "publicly" available on certain custom views! Here is the code, it may work for you, but there is an extra bug...ALL IMAGES DISAPPEAR FROM THE PAGE. Put the code back and they appear again. NEARLY THERE....
Here the code to delete:

RunnerPage::reloginAndLogoutProcess('S');
if(!isLogged() && !$lookupInRegisterPage)

{

redirectToLogin();

}
// check user permissions

$permissionGranted = false;

if($lookupInRegisterPage)

{

$permissionGranted = true;

}

if(!$permissionGranted)

{

$permissionGranted = CheckTablePermissions($strTableName, "S");

}

if(!$permissionGranted && $lookupInPage)

{

$mainTable = $lookupMainSettings->getTableName();

$permissionGranted = CheckTablePermissions($mainTable, "S") || CheckTablePermissions($mainTable, "E") || CheckTablePermissions($mainTable, "A");

}
if(!$permissionGranted)

{

if(IsAdmin())

{

echo "<p>"."You don't have permissions to access this table"."
<a href=\"".GetTableLink("admin_rights", "list")."\">"."Proceed to Admin Area"."</a> "."to set up user permissions"."</p>";

}

else

HeaderRedirect("menu");

exit();

}
PROBLEM, all images disappear, and that is a HUGE PROBLEM!
Cheers!