Imperial cms 7. 0 invokes the method of the topic to which this information belongs
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.