TagPrefix = 'bbcat'; } function ParseObject($element) { //echo "field: ".$element->attributes["_field"]."
"; if(strtolower($element->name)==$this->TagPrefix) { $field = strtolower($element->attributes["_field"]); switch($field) { case "subcats": $attr = array(); $attr["_catid"] = $this->Get("CategoryId"); $attr["_itemtemplate"] = $element->GetAttributeByName('_subcattemplate'); if( $element->GetAttributeByName('_notable') ) $attr["_notable"]=1; $ret = bbcat_list_cats($attr); break; case 'cat_icon': global $objSession; //$attribs = ExtraAttributes($element->attributes); $post_icon = $element->GetAttributeByName('_posts_icon'); $no_post_icon = $element->GetAttributeByName('_no_post_icon'); $locked_post_icon = $element->GetAttributeByName('_locked_post_icon'); $ado = GetADODBConnection(); $current_cat = $this->UniqueId(); $prefix = GetTablePrefix(); //|| $objSession->HasCatPermission('TOPIC.ADD.PENDING', $current_cat) if( !($objSession->HasCatPermission('TOPIC.ADD', $current_cat) ) ) { $ret = "\"\""; break; } $CatModified = $this->Get('Modified'); if(!$CatModified) $CatModified = $this->Get('CreatedOn'); $Last = $objSession->GetPersistantVariable('LastLogin'); if ($Last < $CatModified) { $ret = "\"\""; } else { $ret = "\"\""; } break; default: //echo "This comes from BBCAT"; $ret = parent::ParseObject($element); //echo "bbcat Return: $ret
"; break; } } return $ret; } } class clsBBCatList extends clsCatList { function clsBBCatList() { parent::clsCatList(); $this->classname = 'clsBBCategory'; } } ?>