polom
I was looking for the name of the feature that self-displays the username list matching the characters you typed in the "switch user" form of the login box module
any clue anyone?
I'd like to see how difficult it can be to make it obey the pref to show RealName instead of username... (in cases of LDAP setups with numeric ID's for usernames it's kind of needed for the admin to be able to switch to some user's account to check that settings and perms are as expected for that usergroup, etc.)
I presume it can be the same feature to self-display pagenames matching your typed chars in the search box for wiki pages, etc.
aha, I might have found something (at least for wiki pages in the search module)... "assign_params[use_autocomplete]"
I'll keep digging through "use_autocomplete"...
mmmm... this line seems to control it at the login box module template:
{autocomplete element="#login-switchuser_"|cat:$module_logo_instance type="username"}
aha! it might be easier than I thought.... nice doc inside the function.autocomplete.php smarty_tiki file... :-)
any smarty & jquery geek around? luciash or Jyhem | Jyhem_laptop_ around, for instance?
I managed to make the userrealname display in the dropdown box. Bit I need that userrealname as label, while keeping the username as option to be used internally (otherwise the switch user does not work, as far as I could see)
I tried with this, but it didn't work:
{autocomplete element="#login-switchuser_"|cat:$module_logo_instance type="userrealname" options="label:userrealname,value:username"}
since that is what I understood from here: http://api.jqueryui.com/autocomplete/#option-source
joined #tikiwiki
I tried modifying function.autocomplete.php and the mod-login_box.tpl to end up producing this syntax, but it didnt' work either:
$("#login-switchuser_2").tiki("autocomplete", "userrealname", { source:[ label:"userrealname",value:"username"] });
Applied one profile, and the only issue is a css issue when attempting to click a the button to install profile (white over white)
thanks jonnyb nd Jyhem | Jyhem_laptop for your release work
cheers