(Note: i'm currently testing it, will see how it ends :blush: )
Finally i get rid of the extra fields. I have made these changes in listtab.php:
[code:1]//Prevent CB from drawing fields
//$tab->fields=array();
$tab->fields=null;[/code:1]
But one more was needed, in administrator/components/com_comprofiler/comprofiler.class.php
I've changed the function _callTabPlugin so the variable $tab could be changed in listtab.php
[code:1]function _callTabPlugin($tab, &$user, $pluginclass, $method, $pluginid=null, $postdata=null) {
global $_PLUGINS;
$results=null;
if ( $pluginid ) {
if($_PLUGINS->loadPluginGroup('user',array($pluginid))) {
$args=array($tab , &$user, $this->ui);
if ($postdata !== null) $args[]=$postdata;
$results=$_PLUGINS->call($pluginid,$method,$pluginclass, $args, $tab->params);
}
}
return $results;
}[/code:1]
TO
[code:1]function _callTabPlugin(&$tab, &$user, $pluginclass, $method, $pluginid=null, $postdata=null) {
global $_PLUGINS;
$results=null;
if ( $pluginid ) {
if($_PLUGINS->loadPluginGroup('user',array($pluginid))) {
$args=array(&$tab , &$user, $this->ui);
if ($postdata !== null) $args[]=$postdata;
$results=$_PLUGINS->call($pluginid,$method,$pluginclass, $args, $tab->params);
}
}
return $results;
}[/code:1]
An then, the extra final fields were gone
PS: i don't know if this was the modification mentioned in readme.txt, but the link in there was broken.
Post edited by: ani7a, at: 2007/07/16 16:48
Post edited by: ani7a, at: 2007/07/16 17:00