Hi
I needed a way to make all fields available when creating a new list, wether or not those fields were hidden for profile.
I finally decided to hack the code so that all fields would always appear in the list management. Lists have access level settings, which is what I need to make those special fields only available to certain groups.
The hack is in
administrator\components\com_comprofiler\admin.comprofiler.html.php
// 22-11-2005 : Fabian : removed f.profile = "1" so we always have all fields when creating new lists
/*
$database->setQuery( "SELECT f.fieldid, f.title, f.name"
. "\nFROM #__comprofiler_fields f"
. "\nWHERE f.published = 1 AND f.profile = 1"
. $sqlWhere
);
*/
$database->setQuery( "SELECT f.fieldid, f.title, f.name"
. "\nFROM #__comprofiler_fields f"
. "\nWHERE f.published = 1"
. $sqlWhere
);
That's working fine for me.
J.
Post edited by: JohnQM, at: 2005/11/29 16:09