"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: [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: [Dave] "Section Editor" list in the "User Accounts" area

By gkornbluth - December 31, 2009

Hi Dave,

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
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 - 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

By gkornbluth - January 4, 2010

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