Please Log in to join the conversation.
Please Log in to join the conversation.
Yes, with [code:1]if( ($my->gid!=31) || ($user->gid!=31) ) {
$temp=" AND t.title<>'Catalog' ";
}[/code:1] you're saying, that tab Catalog will display for gid=31. What do you want to make?
Please Log in to join the conversation.
Please Log in to join the conversation.
Users belonging to gid=41 still cannot see the tab with the title Catalog.function _loadTabsList($user, $position=null) {
global $database;
if($my->gid!=31) {
$temp=" AND t.title<>'Catalog' ";
}
if ($this->tabsToDisplay === null) {
$qry .="SELECT * FROM #__comprofiler_tabs t WHERE t.enabled=1 ".($position==null ? "" : "\n AND t.position='".$position);
$qry .= $temp;
$qry .= " ORDER BY t.position, t.ordering";
$database->setQuery($qry);
$this->tabsToDisplay = $database->loadObjectList();
}
}
Please Log in to join the conversation.
Please Log in to join the conversation.