Skip to Content Skip to Menu

listtab w/ cb1.0.2 current status

  • ani7a
  • ani7a
  • OFFLINE
  • Posts: 1
  • Thanks: 0
  • Karma: 1
17 years 4 months ago #41042 by ani7a
Replied by ani7a on topic Re:listtab w/ cb1.0.2 current status
(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 :D

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

Please Log in or Create an account to join the conversation.

  • yoshi
  • yoshi
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
17 years 2 months ago #44854 by yoshi
Replied by yoshi on topic Re:listtab w/ cb1.0.2 current status
ani7a, your a star.

Is there any progress on the delete function not working?

Please Log in or Create an account to join the conversation.

  • mikko
  • mikko
  • OFFLINE
  • Posts: 703
  • Thanks: 0
  • Karma: 115
17 years 2 months ago #44855 by mikko
Replied by mikko on topic Re:listtab w/ cb1.0.2 current status
If you are willing to put some effort into this plugin, please email me (mikko@mikkosoft.fi) so we can coordinate our efforts to get this thing to work.

I have several improvement ideas to the architecture of this plugin so that no more hacks are needed, the content of list tabs could be shown in user lists, list tabs could be used when registering and the fields in list tab could be set to be required.

-Mikko

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum