"Section Editor" list in the "User Accounts" area
7 posts by 2 authors in: Forums > CMS Builder
Last Post: January 4, 2010 (RSS)
By gkornbluth - August 11, 2008 - edited: December 31, 2009
Is there any way to alternately display a list of existing section editors in the “User Accounts” area instead of the names of users.
My client has close to 50 pages assigned to various authorized users.
That way, when they click on a section editor in the list, they would see a list of the authorized users for that section.
This would make it much easier for them to re-assign section editors and to contact users responsible for a particular page.
Right now they have to keep a separate, manually created list of the section editors and which users are assigned to each section.
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] "Section Editor" list in the "User Accounts" area
By Dave - August 11, 2008
There's no easy way to do that in the program, although it's an interesting idea for future versions.
The simplest way to do it would be to create a viewer. I've attached one that lists tablenames and users who have access to that section. You may be able to work with that, give it a try and hopefully it will help.
If you need something more than that we can always look at doing it as custom programming.
Hope that helps!
interactivetools.com
Re: [Dave] "Section Editor" list in the "User Accounts" area
By gkornbluth - August 12, 2008 - edited: August 12, 2008
WOW!!!
This is perfect. And it makes it soooooo much easier to maintain user records for a site.
A few minor questions...
It seems that if you are already logged on as administrator before you run this viewer, then you are taken directly to the user modification screen for the person that you wanted to edit, which is absolutely awesome.
However, if you are not logged on as administrator before using this viewer, then you are taken to a login screen and then to the main admin page.
Any tweeks that would take you to the user modification screen instead after login?
From a security perspective, it might be good if the user list was not displayed at all before an administrative login was completed.
As always, you're the best.
Jerry
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] "Section Editor" list in the "User Accounts" area
By Dave - August 13, 2008
Try adding this code to require the user to login before they can see the page. If you put the script in the same folder as admin.php all the css and html should display correctly.
Add the code in red:
require_once "lib/viewer_functions.php";
### Require Login
require_once "lib/init.php";
require_once "lib/admin_functions.php";
$CURRENT_USER = getCurrentUserAndLogin();
Hope that helps!
interactivetools.com
Re: [Dave] "Section Editor" list in the "User Accounts" area
I haven't used this script for a while and tried to re-implement it in the only 2 versions I have to test it on: 1.36 and 2.01.
When I try to log ito the page as Admin I keep being brought back to a blank log-in dialog.
When I remove the lines above and log in as Admin separately the same happens.
Thanks for your help,
Jerry
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php
Re: [gkornbluth] "Section Editor" list in the "User Accounts" area
By Dave - January 4, 2010
There's been some changes to the internal code.
Try putting this at the top:
### Require Login
define('START_SESSION', true);
require_once "lib/viewer_functions.php";
require_once "lib/admin_functions.php";
$CURRENT_USER = getCurrentUserAndLogin();
Let me know if that fixes it or if there are still issues.
Thanks!
interactivetools.com
Re: [Dave] "Section Editor" list in the "User Accounts" area
Thank you
Jerry
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php