Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Imperial cms 7. 0 invokes the method of the topic to which this information belongs

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the method of calling the topic to which this information belongs in Empire CMS 7.0. Xiaobian thinks it is quite practical, so share it with you for reference. I hope you can gain something after reading this article.

Empire CMS 7.0 How to call this information belongs to the topic, topic belt link?

Empire CMS official forum provided methods, but not applicable in Empire CMS 7.0

==============================

Demo:

Tag download:

http://www.phome.net/ecms47/bq/echoinfozt/echoinfozt.zip

*****************************

Login Background-> Template Management-> Manage Tags-> Import Tags:

Description: label file selection compressed package: "echoinfozt1199799878.bq"

(Remember to copy the contents of the function to the e/class/userfun.php file after importing)

***************************

Add the tag "[echoinfozt]0[/echoinfozt]" to the content template.

The requested URL/class/userfun.php was not found on this server.

The code is as follows:

function user_EchoInfoZtBq($ecms=0){global $class_zr,$navinfor;if(empty($navinfor[ztid])||$navinfor[ztid]=='|'){return '';}$zt='';$r=explode('|',$navinfor[ztid]);$c=count($r); for($i=1;$iquery("SELECT DISTINCT ztid FROM {$dbtbpre}enewsztinfo where id='$navinfor[id]' and classid=$navinfor[classid] ;");while($r=$empire->fetch($sql)){$ztid=$r[ztid];$ztname=$class_zr[$ztid][ztname];if($ztname){$zr[ztid]=$ztid;$ztlink=sys_ReturnBqZtname($zr);//topic concatenation $zt.= "".$ ztname. ",";}}if($zt)$zt= substr($zt,0,strlen($zt)-1);

$zt is the topic information with links, which can be displayed with

About empire cms 7.0 call this information belongs to the topic of the method shared here, I hope the above content can be of some help to everyone, you can learn more knowledge. If you think the article is good, you can share it so that more people can see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report