Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User-specific gsconfig settings
#4
Version 0.3 available in Extend.

Now you can define specific user values for other gsconfig settings (for backend/administration), not only GSEDITORTOOL, etc.

You must specify those you need to use with the new USERCONFIG constant, between quotes and separated by commas and/or spaces.

For example:
PHP Code:
define('USERCONFIG''GSDEBUG, GSNOHIGHLIGHT, GSSTYLE, GSNOVERCHECK'); 
will allow defining user-specific values for those settings, e.g.:
PHP Code:
//debug mode enabled only for user 'admin2':
define('GSDEBUG_admin2'true);

//Fred doesn't like syntax highlighting in the theme editor:
define('GSNOHIGHLIGHT_fred'true);

//Automatic check for GetSimple updates disabled for all users except 'admin1':
define('GSNOVERCHECK_'true);
define('GSNOVERCHECK_admin1'true); 

USERCONFIG can also be used for other plugins' gsconfig settings (e.g. News Manager's NMIMAGEINPUT, NMIMAGEDIR)

Note that there are several gsconfig settings that should not be used with this plugin, as they are general site (and not user-specific) settings - e.g. GSADMIN
Reply


Messages In This Thread
User-specific gsconfig settings - by Carlos - 2013-05-01, 16:49:55
RE: User-specific gsconfig settings - by Carlos - 2014-08-14, 02:21:39
RE: User-specific gsconfig settings - by Carlos - 2014-08-16, 05:23:07
RE: User-specific gsconfig settings - by Carlos - 2014-08-23, 01:17:29
RE: User-specific gsconfig settings - by shawn_a - 2014-08-23, 08:44:48
RE: User-specific gsconfig settings - by Carlos - 2014-08-23, 17:45:14
RE: User-specific gsconfig settings - by stwneu - 2015-04-28, 22:53:29
RE: User-specific gsconfig settings - by Carlos - 2015-04-29, 06:28:18
RE: User-specific gsconfig settings - by stwneu - 2015-04-29, 23:16:34
RE: User-specific gsconfig settings - by Carlos - 2015-04-30, 00:29:00



Users browsing this thread: 1 Guest(s)