欢迎来到素材无忧网,按 + 收藏我们
登录 注册 退出 找回密码
  • discuz 网站首页地址重复 显示404页面

    更改了默认域名、删除伪静态、查看了index.php等等,依然未解决。 无意中发现,是后台界面导航没有选默认首页,选上保存,更新缓存,恢复正常。...

    05-24 39 人 discuz教程 62
  • discuz 分类信息字段单独调用$_G['forum_option']

    每当你在后台分类信息添加了一个字段的时候, 就会把字段的信息添加到$_G[forum_option]数组中! $_G[forum_option]是分类信息调用的主数组(不明白数组直接无视) 使用方法: 添加一个字段 ------------------------ 字段名称:测试字段 字段变量名:test_n...

    05-24 53 人 discuz教程 62
  • discuz 模板下载开发开启无缓存代码

    在开发模板的时候,每次更改都需要到后台更新缓存,这是一件很痛苦的事情,为了方面开发,可以使用下面的方法来设置! 设置以后刷新两次浏览器就可以实现刷新缓存了! 打开文件 网站根目录/config/config_global.php $_config[output][tplrefresh] = 1; 复制...

    05-24 36 人 discuz教程 62
  • Discuz 门户文章内容页的相关文章调用代码

    Discuz 门户文章内容页的相关文章 默认模板路径 template\default\portal\view.htm 调用代码: !--{if $article[related]}-- div id=related_article class=bm div class=bm_h cl h3{lang view_rel......

    05-24 105 人 discuz教程 62
  • discuz 内容页TAG代码$post[tags]

    文件:template/default/forum/viewthread_node_body.htm 内容页的标签调用代码如下: p!--{if empty($_G[disabledwidthauto]) $_G[setting][switchwidthauto]}--/p pa href=javascript:; i......

    05-24 39 人 discuz教程 62
  • discuz 修改网站前端页面“积分”名称

    目录 打开source/language/lane_template.php 找到credits=积分, 把文字换成需要的命名即可。...

    05-24 133 人 discuz教程 62
  • discuz! x3.2模板下载common目录文件详细名称说明

    /template/default/common公共模板目录全局加载 block_forumtree.htmDIY论坛树形列表模块 block_thread.htmDIY帖子模块调用文件 block_userinfo.htm未找到相应的程序调用 buyinvitecode.htm购买邀请码 common.css全局cs......

    05-24 55 人 discuz教程 62
  • discuz! x3.2调用作者最新帖子

    代码来源于某个模板,只能调用作者发布在图片列表模式下的主题,而且只有管理员发的帖子才显示。不懂为什么。 代码: !--{eval $theuid = $_G[forum_thread][authorid];}--!--{eval $lzthread = DB::fetch_all(SELECT `tid`,`subje......

    05-24 40 人 discuz教程 62
  • discuz 宽窄屏切换按钮代码

    设置了宽屏和窄屏可以自由切换的时候,输出宽屏和窄屏的切换按钮。 p!--{if empty($_G[disabledwidthauto]) $_G[setting][switchwidthauto]}--/pp a href=javascript:; id=switchwidth onclick=widthauto(t......

    05-24 35 人 discuz教程 62
  • discuz 帖子内容页调用tag标签代码$post[tags]

    内容页的标签代码所在文件:template/default/forum/viewthread_node_body.htm 代码: !--{if $post[first] ($post[tags] || $relatedkeywords) $_GET[from] != preview}-- div class=ptg m......

    05-24 38 人 discuz教程 62
  • discuz 元素上下单行滚动效果

    效果:竖排列表 元素上下滚动 上一行显示 下一行消失 代码: ul id=tu87_index_comments_tips style=height:305px;overflow: hidden;span class=firstli/span!--列表--lia href=# target=_black title=#......

    05-24 39 人 discuz教程 62
  • discuz 帖子列表页调用摘要代码

    需要修改文件/source/module/forum/forum_forumdisplay.php 第812行左右找到: $threadids[$threadindex] = $thread[tid]; 复制代码 在其下方增加 //内容摘要 include_once libfile(function/post); in......

    05-24 34 人 discuz教程 62
  • discuz 关于默认配色出错的问题

    今天在改动扩展配色时遇到了一个问题,默认配色变成了扩展配色,导致无法切换回默认配色。 1.更新缓存无效。 2.默认配色的样式在default/common/common.css里,看了下颜色都没错。新风格的css文件中也没有对默认配色重定义。 3.删除扩展配色的style.css,却依...

    05-24 35 人 discuz教程 62
  • discuz 发帖时间在viewthread.php模板下载中的调用代码

    因为模板改动,将viewthread_node.php的发帖时间复制到了viewthread.php模板中使用,$post[dateline],结果,调用的是最后回帖时间,而不是楼主发帖时间,曾经在调用楼主用户名的时候遇到到过类似问题,解决方法不记得了,也是蒙出来的,后来看别人加了一句什...

    05-24 37 人 discuz教程 62
  • discuz x3.2附件下载名称增加网站名代码

    打开source/module/forum/forum_attachment.php 找到: $thread $attachexists = TRUE; 复制代码 在后面增加 $attach[filename] = $_G[setting][bbname].-.$attach[filename]; 复制代码 找到: $......

    05-24 32 人 discuz教程 62
模板推荐