Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] Discuz-x1.5 各种【模板疑难】与【模板优化方案】汇总 由cr180 2011/4/3更新至53条

 关闭 [复制链接]
cr180 发表于 2010-9-19 09:55:11 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X1.5
浏览器: 其他(帖子中请注明浏览器) 
使用模板: 官方模板
BUG地址: http://www.discuzt.com
本帖最后由 cr180 于 2011-10-10 22:31 编辑

新版提示:如果你修改了模板或者css文件,更新缓存请到:后台-界面-风格管理-更新CSS缓存!这里的更新内容只是针对css和模板文件,而工具-更新缓存这里涉及内容太多,更新时间执行很长!!!
AD:discuz资料速查 -- www.discuzt.com






相关链接:
Discuz-x 模板制作相关教程引导贴
DiscuzX DIY技巧及疑难问题集合

Discuz!x 正式版常见问题整理
Discuz7.2模板制作经验及疑难解决方法 集合贴
【Discuz-X】各种协助管理的批量mysql语句!!有木有有木有??





版主提示:以下记录的各种修改方法都是在默认模板上进行的,但大部分第三方模板也可通用此方法,你可以参考以下的资料快速找到问题的解决方法











1、导航菜单右边的“我的中心”背景颜色修改

       模板路径:template/default/common/common.css
       查找:




  1. #qmenu { float: right !important; margin: 3px 10px 0 0; display: inline; padding: 0 0 0 10px !important; width: 85px; height: 26px; background: url({IMGDIR}/qmenu.png) no-repeat 0 0; line-height: 26px; }
复制代码
          提示:红色地方就是背景的css代码,这里获取的是图片,如果你想修改成颜色代码,background:#000000



2、QQ正式开放平台 - 分享代码在模板中的嵌入位置         
         
https://discuz.dismall.com/thread-1893112-1-1.html




3、修改“面包屑”导航条的文字颜色,也就是当前位置的文字颜色
          template\default\common\common.css
          最后增加:

  1. #pt,#pt a{color:#f00;}
复制代码
          文字颜色代码自定!




4、论坛横排状态下,设置版块图标未设置图标宽度,导致图片遮挡版块标题等解决方法
          文件:template\default\common\module.css
          查找:

  1. .fl_icn_g { float: left; width: 31px; }
复制代码
          替换成:
  1. .fl_icn_g { float: left; margin-right:10px; }
复制代码




5、快速发帖或快速回复框里加入【匿名回复】选项的方法!



6、
discuz-x1.5快速发帖/回复框加背景的方法


7、
Discuz-x日志列表页面增加【编辑、删除】链接!不用再去内容页面删除了


8、
【Discuz-x1.5模板修改】 家园模块中“弹出表情框”内增加表情的方法!



9、页面右上角注册按钮如何改成超级连接形式
          打开文件:\template\default\member\login_simple.htm
          查找:reglk   删除它!


10、discuz-x1.5帖子阅读页面去掉勋章之间的空隙!及给出勋章此处代码位置
         
https://discuz.dismall.com/home.php?mod=space&uid=503125&do=blog&id=84728


11、增加首页版块列表之间的间距
          打开:\template\default\common\module.css
          查找:.fl_tb td { padding: 10px 0; }
          替换成:.fl_tb td { padding: 50px 40px; }    注意:这里的值请自己调节合适 50px是上下间距 40px是左右间距



12、discuz-x 网站底部背景颜色的修改方法!
         
https://discuz.dismall.com/home.php?mod=space&uid=503125&do=blog&id=84729


13、X版本中主题列表页翻页或点击主题分类等造成边栏消失的临时解决方法!!
         
https://discuz.dismall.com/thread-1693482-1-1.html



14、【Discuz-x1.5模板优化】门户文章列表页面的几个调整方案



15、去掉板块列表中 新帖图标 的方法!
         
https://discuz.dismall.com/thread-1914718-1-1.html



16、家园模块中,左边栏的模板文件位置:\template\default\common\userabout.htm



17、主题列表页 当浏览者=帖子作者的时候 该帖子的标题粗体显示 For Discuz! X1.5
         
https://discuz.dismall.com/thread-1878510-1-1.html


18、程序基础语言包路径:\source\language


19、右上角快速登录框的位置
          template\default\common\header.htm
          查找:
  1. <!--{template member/login_simple}-->
复制代码



20、 【登录|注册】 链接代码
  1. <a href="member.php?mod={$_G[setting][regname]}" onclick="showWindow('register', this.href)" class="xi2">$_G['setting']['reglinkname']</a> | <a href="member.php?mod=logging&action=login&viewlostpw" onclick="showWindow('login', this.href)" class="xi2">{lang login}</a>
复制代码



21、个人空间的默认1:2:1的布局能不能改成别的?
          \source\function\function_space.php
          查找:'currentlayout' => '1:2:1',



22、版块图标显示在版块名称下面的方法
         
https://discuz.dismall.com/thread-1911484-1-1.html



23、Discuz-x 横排状态下显示版块介绍的方法!
         
https://discuz.dismall.com/thread-1918402-1-1.html



24、版块名称的文字大小修改方法
         
https://discuz.dismall.com/forum.php?mod=redirect&goto=findpost&ptid=1917646&pid=16478216



25、帖子快速回复右边的表情设置方法
           
https://discuz.dismall.com/forum.php?mod=viewthread&tid=1675257



26、if语句中 关于用户组的判断
          <!--{if $_G[groupid] < 4}-->


27、ICON图标在哪里修改?
          答:程序根目录下favicon.ico


28、未修改模板,论坛版块图标和版块名称空隙变大?
         
https://discuz.dismall.com/forum.php?mod=viewthread&tid=1923123


29、干掉X广场首页的主题、 帖数、最后回帖
https://discuz.dismall.com/forum.php?mod=redirect&goto=findpost&ptid=1918402&pid=16707353


30、Discuz-x模板优化:把右边栏调整到左侧!
https://discuz.dismall.com/thread-1934146-1-1.html



评分

12

查看全部评分

 楼主| cr180 发表于 2010-10-18 20:48:24 | 显示全部楼层
本帖最后由 cr180 于 2011-5-30 09:45 编辑

31、分享一段DZX1.5的帖子"防复制自动加版权,转载请注明出自"代码
           
https://discuz.dismall.com/thread-1924480-1-1.html

32、怎样取消我的中心下拉栏里的“切换到宽版”?
            
https://discuz.dismall.com/thread-1907947-1-1.html

33、精美分类信息美化-详细步骤哦
           
https://discuz.dismall.com/thread-1876135-1-1.html

34、如何删除或修改帖内操作记录
           
https://discuz.dismall.com/thread-1913755-1-1.html


35、 [梦溪工作室]帖子背景 for DX1.5[10.12更新]
               
https://discuz.dismall.com/thread-1926066-1-1.html

36、X1.5默认宽屏的修改方法
              
https://discuz.dismall.com/thread-1933739-1-1.html

37、在搜索页面添加广告位
              
https://discuz.dismall.com/thread-1933379-1-1.html

38、DIY 导入备份后显示全英文字母代码的解决方法,正在收集
         
https://discuz.dismall.com/thread-1940547-1-1.html


39、设为首页和加入收藏的代码

  1. <a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('https://discuz.dismall.com');">设为首页</a> | <a href="#" onClick="javascript:window.external.AddFavorite('https://discuz.dismall.com','Discuz模板区')" >加入收藏</a>
复制代码


40、如何调用在线人数?
         
https://discuz.dismall.com/thread-1972395-1-1.html

41、在论坛分版首页添加可DIY区域
           
https://discuz.dismall.com/thread-1970247-1-1.html


42、去掉首页版块名称旁的今日贴数
         
https://discuz.dismall.com/forum.php?mod=redirect&goto=findpost&ptid=1973486&pid=17143917

43、当开启边栏时论坛切换宽屏可能错位的解决方法
      https://discuz.dismall.com/forum.php?mod=redirect&goto=findpost&ptid=1977108&pid=17242538

44、背景图片不重复、居中、置顶
         
https://discuz.dismall.com/forum.php?mod=redirect&goto=findpost&ptid=1978080&pid=17242646

45、X1.5如何把“链接到外部地址”去掉?
         
https://discuz.dismall.com/thread-1995920-1-1.html

46、x1.5导入模板出现 数据类型错误,请返回
         是否把DIY的数据备份XML文件当成了模板安装文件在后台导入?

47、DX1.5 DIY调用论坛帖子或文章时的幻灯模块代码
         
https://discuz.dismall.com/thread-1995969-1-1.html

48、Discuz-x1.5大分区文字链接颜色的修改方法
         
https://discuz.dismall.com/thread-2020152-1-1.html

49、整体宽度960px如何改大?
       template\default\common\common.css 查找960px 替换!这样改会引起一些其他的问题,比如在有边栏的页面

50、去掉首页子板块之间的【,】号
       文件:source\module\forum\forum_index.php
       查找:

        
  1. (empty($forumlist[$forum['fup']]['subforums']) ? '' : ', ').
复制代码

       替换为:

  1. (empty($forumlist[$forum['fup']]['subforums']) ? '' : ' ').
复制代码

51、分类信息主题展示模板里如何添加该贴链接地址?
      
  1. 答:[url]...[/url] 用url这个内置代码代替<a href="">这个标签即可

复制代码

52、如何判断当前主题列表页和内容页所在频道是否为群组

  1. <!--{if($_G['forum']['status'] == 3)--> 在主题列表页、内容页通用的变量  用这句判断即可
复制代码

53、如何修改[code]里的背景色        https://discuz.dismall.com/thread-2110775-1-1.html


54、如何把“排行榜”左边栏去掉?
       https://discuz.dismall.com/thread-2111878-1-1.html

55、如何彻底删除导航条内【我的中心】
       https://discuz.dismall.com/forum.php?mod=redirect&goto=findpost&ptid=2110388&pid=18880309

56、将门户栏目的列表页和阅读页删除右边栏以全屏形式浏览
        https://discuz.dismall.com/forum.php?mod=viewthread&tid=1987224

57、将论坛首页搜索栏,放到统计区或插件下
https://discuz.dismall.com/thread-2131137-1-1.html

58、门户栏目列表页中子分类框10条数据自定义
        https://discuz.dismall.com/thread-2160532-1-1.html

59、论坛老是出现:&#8226;目录未找到或者无法访问: ./data/template错误!
        https://discuz.dismall.com/thread-2189491-1-1.html

评分

2

查看全部评分

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-20 15:41 , Processed in 0.126861 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表