在【嵌入设置】中增加组件,部分参数如下(未提及的参数保持默认): 组件名称(必填):个人空间 个人资料 显示企业名称 组件变量名(必填):space_profile_baseinfo_top_output@yz_getcompany 类型:文字 内容: [yuzhehook:code_getresult_login_after] global $space, $identifier, $_YUZHE; @include DISCUZ_ROOT.'./source/plugin/yuzhe_company/function/content/%23_yuzhe_page.domain.php'; @include_once DISCUZ_ROOT.'./source/plugin/yuzhe_company/function/content/%23_yuzhe_page.function.php'; $company = _getcompany('uid', $space['uid']); $identifier_old = $identifier; $identifier = 'yuzhe_company'; $this->companyshow = ''; if (!empty($company)){ if ($company['status'] == 1){ $this->companyshow = '审核中'; }elseif ($company['status'] == 2){ $this->companyshow = '审核失败'; }elseif ($company['status'] == 3){ $this->companyshow = '<a href="'.geturl('', 0, '', 0, $company).'" style="color:#ff0000;font-size:16px;" target="_blank">'.$company['companyname'].'</a>'; }elseif ($company['status'] == 4){ $this->companyshow = '已禁用'; } }else{ $this->companyshow = '<a href="'.geturl_user('user').'" target="_blank">注册企业</a>'; } $identifier = $identifier_old; [/yuzhehook:code_getresult_login_after] 企业网站:{echo $this->companyshow;} |
插件介绍:雨哲企业建站系统 是基本discuz!系统上的插件功能,完美结合Discuz!功能,给自己的网站增加一个用户自助申请企业网站的功能。
下载地址:http://addon.discuz.com/?@yuzhe_company.plugin
GMT+8, 2024-5-20 19:11 , Processed in 0.063158 second(s), 9 queries , Xcache On.
Powered by Discuz! X3.2
© 2001-2013 Comsenz Inc.