免费一级码无码婬片AA,多姿,国产成人精品日本亚洲18图 ,亚洲欧美视频一区,久久久久国产精品一区

做網站找實速,專業網站制作設計平臺
首頁 > 課堂 > 網站技術 > 詳情
網站標簽 / Tags

帝國CMS評論列表標簽showplinfo調用會員頭像userpic的方法

2020-02-16 15:53:49   來源:實速網絡|網站建設|網站設計|網站優化|網站仿制|網站SEO|網站推廣|空間域名|主機VPS|服務器|網站源碼|網站模版   瀏覽: 次
帝國CMS評論列表標簽showplinfo調用會員頭像userpic的方法 發布時間:2019-11-06 來源:未知 瀏覽: 關鍵詞:

帝國CMS評論列表標簽showplinfo調用會員頭像userpic的方法

發布時間:2019-11-06 來源:未知 瀏覽: 關鍵詞:

 先看一下效果!

帝國CMS評論列表標簽showplinfo調用會員頭像userpic的方法

改造方法如下:

/e/class/t_functions.php 打開這個文件:

找到:

if(empty($r['username']))

{

$r['username']='匿名';

}

在下面增加:

$addr=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid='$r[userid]' limit 1");

        if(empty($r['userid']))

        {

                $r['userpic']="$addr[userpic]"?$addr['userpic']:$public_r['newsurl'].'e/data/images/nouserpic.gif';

        }

        if($r['userid'])

        {

                $r['userpic']="$addr[userpic]"?$addr['userpic']:$public_r['newsurl'].'e/data/images/nouserpic.gif';

        }

找到:$listtemp=str_replace("[!--fdnum--]",$r['fdnum'],$listtemp);

下面增加:$listtemp=str_replace("[!--userpic--]",$r['userpic'],$listtemp);

好了,評論列表調用的標簽里用戶頭像就用[!--userpic--]調用即可了!

 

責任編輯:實速科技