p!--{if !IS_ROBOT}--/ppspan class=Apple-tab-span style=white-space:pre /spandiv class=y/ppspan class=Apple-tab-span style=white-space:pre /spana href=forum.php?......
判断后显示diy按钮: !--{if check_diy_perm($topic)}-- $diynav !--{/if}--...
!--{if $_G[uid] !empty($_G[style][extstyle])}--a id=sslct href=javascript:;{lang changestyle}/a!--{/if}--...
!--{if empty($_G[disabledwidthauto]) $_G[setting][switchwidthauto]}-- a href=javascript:; id=switchwidth onclick=widthauto(this) title={if widthauto()}{lang swi......
discuz! x3.2的tag集合页面默认只显示100个tag标签,当网站帖子多了以后,可能tag标签也越来越多,100个少了点,可以修改下: 打开文件: /source/module/misc/misc_tag.php 找到约第107行: $viewthreadtags = 100; 复制代码 修改为 $viewt......
数据库操作 表:dz_portal_article_title 增加字段:例 `stick` tinyint(1) DEFAULT 0, `words` smallint(6) NOT NULL DEFAULT 0, 复制代码 编辑:/template/default/portal/portalcp_article.h......
要养成原文件备份的好习惯。 1. 修改帖子内tag标签链接,使其伪静态。 打开template/default(模板风格)/forum/viewthread_node_body.htm,查找: a title=$var[1] href=misc.php?mod=tagid=$var[0] target=_blank$v......
在帖子内容页,1楼(主题帖)与回复帖代码: !--{eval $postcount = 0;}-- !--{loop $postlist $post}-- !--{if $rushreply $_GET[checkrush] $post[rewardfloor] != 1}-- !--{eval continue;}-......
目录 网上的方法,在需要顶部固定的页面加一句代码: !--{if empty($_G[setting][disfixednv_forumindex]) }--scriptfixed_top_nv();/script!--{/if}-- 复制代码 亲测此方法成功过,也失败过。 如果不管用,也可以使用下面代码: style......
如果需要实现该呈现方式,我们需要首先了解discuz封面图片存储原理: discuz没有将主题列表封面路径存在数据表中,只是在pre_forum_thread表中存了一个cover标识。然后用getthreadcover 函数调取,diy调用的图片也会产生缩略图,可以设置缩略图的质量。 封面...
前面发了一篇门户首页调用文章列表,这里发下调用帖子列表的代码。 这个代码放到门户首页index.htm模板中 !--{eval require ./source/function/function_post.php;}--!--{eval require ./config/config_global.php;}--!-......
diy代码示例: div class=foucebox style=margin:0 auto !-- 大图 -- div class=bd [loop] div class=showDiva href={url}img src={pic} height=340 width=594/a div class=fouceb......
目录 帖内调用作者所有带封面帖子,可在viewthread.htm中使用。 div class=uc-piclist !--{eval $theuid = $_G[forum_thread][authorid]}-- !--{eval $authorthreads = DB::fetch_all(SELECT * FR......
这是一个可切换tab选项卡的自定义页面,与js/jq切换不同的是,它每个选项卡有独立的url。 之前的帖子里写过自定义可diy页面的方法,这个也是据此而来。 完整的贴一遍 1.新建自定义页面的php文件,命名about.php(因为可以用做关于我们,所以如此命名来演示)...
目录:/source/function/ 文件:function_member.php 修改: 搜索 $return = (!$login || (TIMESTAMP - $login[lastupdate] 900)) ? 5 : max(0, 5 - $login[count]); 900秒=15分钟,修改秒数即可......