I developed a real nice phprunner app using built in security hitting a table of users/groups. Security folks at the company require all app logins to use the Cognos 7 portal which hits Active Directory LDAP.
If I don't enable create login page with phpRunner I don't get the smarty variables that seem to control specific user group functions (add, edit, delete, search) within the same visual editor page. I can't use the phpRunner generated login page do to internal policies about application login and authentication. Does anyone have any ideas??
Thanks
4.2 build 368
I've dealth with this previously, by adding the header.php file, doing my authentication there, and then setting both my own $_SESSION variables as well as doing something like -
global $smarty;
$smarty->assign( "user_userid", $_SESSION['user']['userid'] );
$smarty->assign( "user_name'", $_SESSION['name']['name'] );
$smarty->assign( "user_email", $_SESSION['user']['email'] );
$smarty->assign( "user_role", $_SESSION['user']['role'] );
Then, in the HTML view of the Visual Editor, you can do things like -
{if $user_role == 9}.....{/if}
This works great, but becomes a pain, because with enough of the smarty code added to the template files, the Visual Editor stops being able to update code. This is why I'd like a read-only feature for the WYSIWYG editor. I want it to only display the changes I make, not change my code and reformat (because it almost always screws up or can't). And when there's something that is changed elsewhere in the program that needs to be updated, it should just tell me what it's trying to update, and give me the code it wants to put somewhere, that way I can insert it myself. I've asked about this here -
http://www.asprunner.com/forums/index.php?showtopic=7934
But not received a response.
Hope to have helped....