更改了默认域名、删除伪静态、查看了index.php等等,依然未解决。 无意中发现,是后台界面导航没有选默认首页,选上保存,更新缓存,恢复正常。...
每当你在后台分类信息添加了一个字段的时候, 就会把字段的信息添加到$_G[forum_option]数组中! $_G[forum_option]是分类信息调用的主数组(不明白数组直接无视) 使用方法: 添加一个字段 ------------------------ 字段名称:测试字段 字段变量名:test_n...
在开发模板的时候,每次更改都需要到后台更新缓存,这是一件很痛苦的事情,为了方面开发,可以使用下面的方法来设置! 设置以后刷新两次浏览器就可以实现刷新缓存了! 打开文件 网站根目录/config/config_global.php $_config[output][tplrefresh] = 1; 复制...
Discuz 门户文章内容页的相关文章 默认模板路径 template\default\portal\view.htm 调用代码: !--{if $article[related]}-- div id=related_article class=bm div class=bm_h cl h3{lang view_rel......
文件:template/default/forum/viewthread_node_body.htm 内容页的标签调用代码如下: p!--{if empty($_G[disabledwidthauto]) $_G[setting][switchwidthauto]}--/p pa href=javascript:; i......
目录 打开source/language/lane_template.php 找到credits=积分, 把文字换成需要的命名即可。...
/template/default/common公共模板目录全局加载 block_forumtree.htmDIY论坛树形列表模块 block_thread.htmDIY帖子模块调用文件 block_userinfo.htm未找到相应的程序调用 buyinvitecode.htm购买邀请码 common.css全局cs......
代码来源于某个模板,只能调用作者发布在图片列表模式下的主题,而且只有管理员发的帖子才显示。不懂为什么。 代码: !--{eval $theuid = $_G[forum_thread][authorid];}--!--{eval $lzthread = DB::fetch_all(SELECT `tid`,`subje......
设置了宽屏和窄屏可以自由切换的时候,输出宽屏和窄屏的切换按钮。 p!--{if empty($_G[disabledwidthauto]) $_G[setting][switchwidthauto]}--/pp a href=javascript:; id=switchwidth onclick=widthauto(t......
内容页的标签代码所在文件:template/default/forum/viewthread_node_body.htm 代码: !--{if $post[first] ($post[tags] || $relatedkeywords) $_GET[from] != preview}-- div class=ptg m......
效果:竖排列表 元素上下滚动 上一行显示 下一行消失 代码: ul id=tu87_index_comments_tips style=height:305px;overflow: hidden;span class=firstli/span!--列表--lia href=# target=_black title=#......
需要修改文件/source/module/forum/forum_forumdisplay.php 第812行左右找到: $threadids[$threadindex] = $thread[tid]; 复制代码 在其下方增加 //内容摘要 include_once libfile(function/post); in......
今天在改动扩展配色时遇到了一个问题,默认配色变成了扩展配色,导致无法切换回默认配色。 1.更新缓存无效。 2.默认配色的样式在default/common/common.css里,看了下颜色都没错。新风格的css文件中也没有对默认配色重定义。 3.删除扩展配色的style.css,却依...
因为模板改动,将viewthread_node.php的发帖时间复制到了viewthread.php模板中使用,$post[dateline],结果,调用的是最后回帖时间,而不是楼主发帖时间,曾经在调用楼主用户名的时候遇到到过类似问题,解决方法不记得了,也是蒙出来的,后来看别人加了一句什...
打开source/module/forum/forum_attachment.php 找到: $thread $attachexists = TRUE; 复制代码 在后面增加 $attach[filename] = $_G[setting][bbname].-.$attach[filename]; 复制代码 找到: $......