帝国cms

以下是为您整理出来关于【帝国cms】合集内容,如果觉得还不错,请帮忙转发推荐。

【帝国cms】技术教程文章

帝国cms 列表页list.var调用大全-缩略图-时间-简介-标题【代码】

<article class="post_main post_blog"> <a href="[!--titleurl--]" class="thumbs" data-type="mip" data-title="[!--oldtitle--]" title="[!--oldtitle--]"><mip-img layout="container" src="[!--titlepic--]?[!--titlepic--]:‘/e/data/images/notimg.gif‘" alt="[!--oldtitle--]"></mip-img></a><h2><a href="[!--titleurl--]" data-type="mip" data-title="[!--oldtitle--]" title="[!--oldtitle--]">[!--title--]</a></h2>...

帝国cms刷洗内容页提示.phome_ecms_news_data_' doesn't exist

帝国cms后台刷新提示.phome_ecms_news_data_‘ doesn‘t exist解决方法:刷新所有信息内容页面时提示“Table ‘*.phome_ecms_article_data_‘ doesn‘t exist”答:原因是数据本身有问题,信息索引表phome_ecms_表名_index有不存在ID的记录。解决办法:进数据库删除索引表中不存在的ID记录即可解决。但怎么知道那些是不存在的ID记录呢?例如 phome_ecms_article 表的 phome_ecms_article_index 有多出的id记录,这是刷新所有信息时...

帝国cms相关调用【代码】

Loop用法:[!--temp.header--][e:loop={6,6,0,1}] <!--标题连接/标题--><a href="<?=$bqsr[titleurl]?>" target="_blank"><?=$bqr[title]?></a><br><!--标题图片--><img src="<?=$bqr[‘../titlepic‘]?>" width="50" height="50"/><!--文章时间--><b>时间:<?=date(‘Y-m-d‘,$bqr[newstime])?></b>[/e:loop]<!--调用5级推荐的信息--> [e:loop={‘news‘,10,18,0,‘isgood=5‘}] <a href="<?=$bqsr[titleurl]?>" target="_blank">...

程序站分类目录帝国cms模板源码分享【图】

程序站网址导航基于帝国cms程序搭建,为互联网用户提供音乐、小说、NBA、财经、购物、视频、软件及热门游戏网址大全等,提供了多种搜索引擎入口、实用查询、天气预报、个性定制等各种分类的优秀内容和网站入口,提供简单便捷的上网导航服务。   本模板源码安全可靠,代码简单/开源,无绑定域名等限制。您可以使用本源码轻松建立自己的综合网址导航站点,也可以修改为您所喜爱的相关内容导航站。网站导航页面的系统模板源码,内核绿色...

在php代码中调用帝国cms头部变量temp.header的方法【代码】

在php代码中调用帝国cms头部变量temp.header的方法代码如下: 1 <?php 2require("../e/class/connect.php"); 3if(!defined(‘InEmpireCMS‘)) 4{ 5exit(); 6} 7require("../e/class/db_sql.php"); 8require("../e/class/q_functions.php"); 910$link=db_connect(); 11$empire=new mysqlquery(); 12$headr=$empire->fetch1("select varvalue from {$dbtbpre}enewstempvar where myvar=‘header‘ limit 1"); 13 ?>在调用的地方直...

帝国CMS实现一二级导航及其高亮【代码】

帝国CMS实现一二级导航及其高亮   可以用以下方法实现一二级导航 <li id="<?=$GLOBALS[navclassid]==0?‘nav_select‘:‘‘?>"><a href="/">首页</a></li>[e:loop={‘select classid,classname,classpath from [!db.pre!]enewsclass where bclassid=0 and showclass=0 order by myorder‘,0,24,0}]<li id="<?=(($GLOBALS[navclassid]==$bqr[classid]) || ($class_r[$GLOBALS[navclassid]][bclassid] == $bqr[classid])) ?‘nav_...

帝国cms判断某一字段是否为空【代码】

<?php if(empty($navinfor[buy])) { ?><? } else { ?> <h2 class="buy"><a href="[!--buy--]" target="_blank">立即购买</a></h2> <? } ?> //判断[!--buy--]这一字段是否为空 原文:http://www.cnblogs.com/keleyz/p/4743150.html

帝国CMS伪静态【代码】

nginx伪静态设置rewrite ^([^\.]*)/listinfo-(.+?)-(.+?)\.html$ $1/e/action/ListInfo/index.php?classid=$2&page=$3 last; rewrite ^([^\.]*)/showinfo-(.+?)-(.+?)-(.+?)\.html$ $1/e/action/ShowInfo.php?classid=$2&id=$3&page=$4 last; rewrite ^([^\.]*)/infotype-(.+?)-(.+?)\.html$ $1/e/action/InfoType/index.php?ttid=$2&page=$3 last; rewrite ^([^\.]*)/tags-(.+?)-(.+?)\.html$ $1/e/tags/index.php?tagname=$2&pag...

帝国cms安装在二级目录 构建中英文网站

帝国cms是很好的建站工具,一般都是安装在根目录,但是有时候租一个空间,要搭建两个网站,或者中英文双语的网站,肯定得用到二级目录帝国cms安装二级目录步骤1,讲安装包解压缩到要安装的二级目录下2,通过浏览器访问二级目录+e/install。安装,安装过程不再敖述。3,登陆cms,在系统设置 的网站地址 设置你的虚拟目录, 如  /WWW/附件地址 /WWW/d/files/有了以上设置,基本上栏目生成的文件夹都会在这个二级目录下了。也就和根目...

帝国cms 修改[!--newsnav--]不显示首页

第一步:在e/class/connect.php中搜索 function ReturnClassLink($classid)第二步:将函数里面的 $string="<a href=\"".ReturnSiteIndexUrl()."\">".$fun_r[‘index‘]."</a>"; 注释掉即:// $string="<a href=\"".ReturnSiteIndexUrl()."\">".$fun_r[‘index‘]."</a>";原文:https://www.cnblogs.com/20170804/p/11106123.html