Recent Topics

1 Mar 23, 2008 10:36    

Is it possible to show the dropdown menu with available user groups in plugin settings?
The same as we see on user edit page.

2 Mar 23, 2008 11:01

Yes,

But I 'm still setting up my dev tools, so I can 't be any help now.

Good luck

3 Mar 23, 2008 17:07

inc/plugins/_plugin.class.php approx 433 ;)

input types wrote:

* </li><li>
* 'select_group': a drop down field, providing all existing groups (Group ID is the value or "" if "allow_none" is true)
* </li><li>
* 'select_user': a drop down field, providing all existing groups (User ID is the value or "" if "allow_none" is true)
* (WARNING: does not scale - not recommended)

¥

6 Apr 03, 2008 09:23

How do I add a multiple="multiple" to this menu if I want to select multiple groups.

7 Apr 03, 2008 09:28

MAYBE with

'multiple' => true,

8 Apr 03, 2008 09:34

I forgot to tell that I need it in 1.xx. This option is available in 2.x only.
Let me copy it from 2.4.1 and see if it works...

9 Apr 03, 2008 09:43

Ok, I add this code in /inc/_misc/plugins.funcs.php and it works. :)

if( ! empty($set_meta['multiple']) )
	{ // "multiple" attribute for "select" inputs:
		$params['multiple'] = 'multiple';
	}

Thanks a lot.


Form is loading...