"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

Here’s one that’s come up a few times in conversations with my client.

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.
The first CMS Builder reference book is now available on-line!







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

Hi gkornbluth,

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!
Dave Edis - Senior Developer
interactivetools.com
Attachments:

usersbysection.php 2K

Re: [Dave] "Section Editor" list in the "User Accounts" area

By gkornbluth - August 12, 2008 - edited: August 12, 2008

Thanks Dave,

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
The first CMS Builder reference book is now available on-line!







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

I replied via PM but for any one else following here's my response:

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!
Dave Edis - Senior Developer
interactivetools.com

Re: [gkornbluth] "Section Editor" list in the "User Accounts" area

By Dave - January 4, 2010

Hi Jerry,

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!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] "Section Editor" list in the "User Accounts" area

Perfect

Thank you

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php