- 2026年07月08日
- 星期三
织梦DedeCMS调用单个图集中图片数量的方法 修改方法: 打开 /include/common.func.php 文件 增加如下函数: function Getimgnum($aid){global $dsql;$imgurls = ;$row =$dsql-getone( Select imgurls From `dede_addonimages` where aid=$aid );$imgur
在用dedecms制作网站的时候有不少站点需要用到下拉式友情链接,这样能够节省的空间。但很多朋友又不知道怎样修改才能实现这个功能; 修改方法: 编辑打开includetaglibflink.lib.php 查找 else if($type==image) 在其上面加入 else if($type==option)
打开member/index_do.php找到 ShowMsg(成功登录,5秒钟后转向系统主页…,index.php,0,2000); 替换为: ShowMsg(登录成功,index.php?uid={$userid});
织梦DedeCMS允许不同会员发布相同文章,不允许同一会员发布重复文章的方法: 打开 /member/inc/archives_check.php 文件 找到 //检测文档是否重复if($cfg_mb_cktitle==Y){$row = $dsql-GetOne(SELECT * FROM `dsfw_archives` WHERE title LIKE $title
DEDECMS 指定多栏目下的文章搜索 修改include/arc.searchview.class.php文件 //统计列表里的记录$cquery = Select * From `dsfw_archives` arc where arc.typeid not in (1,2,3…) and {$this-AddSql};//搜索$query = Select arc.*,act.typedir,act.type
分页条添加省略号效果 添加教程 打开includearc.listview.class.php找到 $total_list = $list_len * 2 + 1; 这里有2处,都需要在它的下面加入 //省略号if ($totalpage $total_list) { $half = floor(($total_list – 4) / 2); $half_start = $this-PageNo –
