雨哲插件

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
热搜: 活动 交友 discuz
雨哲插件 资料库 企业建站测试功能 个人空间个人资料页用户名下增加企业链接
  • 全部资料
  • 查看资料

个人空间个人资料页用户名下增加企业链接

2016-11-6 04:55|分类: 企业建站测试功能 |发布用户: 雨哲

201611/06/045519lowmmw32m07kwkmw.jpg

在【嵌入设置】中增加组件,部分参数如下(未提及的参数保持默认):

组件名称(必填):个人空间 个人资料 显示企业名称

组件变量名(必填):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

分享到: 手机访问 分享给QQ好友 分享到QQ 分享到QQ空间 QQ空间 分享到新浪微博 新浪微博 分享到人人 人人网
企业微信 : 雨哲手机扫描添加到联系人手机扫描直接访问

QQ|关于我们|Archiver|手机版|小黑屋|雨哲插件

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.

返回顶部