Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User-specific gsconfig settings
#1
After reading this thread I thought it would be useful to have a very simple, small plugin that lets you define user-specific gsconfig settings (for the editor).

Download (Extend)

You can set user-specific or default settings for GSEDITORTOOL, GSEDITORHEIGHT, GSEDITORLANG and GSEDITOROPTIONS in gsconfig.php.
These settings work the same way as GS default ones but:
- for user-specific settings, append an underscore plus the user name (e.g. GSEDITORTOOL_name)
- (optional) to define default values for all users, append an underscore to the setting (e.g. GSEDITORTOOL_ instead of GSEDITORTOOL)

Note: normal default gsconfig settings for those values must be disabled (removed or commented out, with a # at the beginning of the line) for this to work. If not, they will override the specific ones.

Examples:

Advanced editor for user name1:
Code:
define('GSEDITORTOOL_name1', 'advanced');

Advanced editor for all users, except name1 and name2, that will have the basic one:
Code:
define('GSEDITORTOOL_', 'advanced');
define('GSEDITORTOOL_name1', 'basic');
define('GSEDITORTOOL_name2', 'basic');

UPDATE
Since version 0.3 you can use other gsconfig settings: more info
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)