"Section Editor" list in the "User Accounts" area

7 posts by 2 authors in: Forums > CMS Builder
Last Post: January 4, 2010   (RSS)

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

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

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