Discuz!怎样修改模板使侧边栏显示用户所得的勋章?DZ

Discuz!怎样修改模板使侧边栏显示用户所得的勋章?DZ,第1张

后台 界面 界面设置 贴内用户信息 编辑 默认的    

如果还不显示,在这里加入下面代码试试

 {medal}<p class="md_ctrl">{}</p>{/medal}

打开浏览器开发者模式(一般是按F12),然后用鼠标选取这部分的代码(一般都是有个指针工具,点页面元素就在代码页跳转到指定代码),能看见右面的CSS样式表信息,修改commoncss或者是modulecss里面的对应内容来达到修改字体颜色的效果。字体颜色只需要设置color属性就行。黑色是#000。例:这div的id是test 模板文件的common文件夹内新建extend_commoncss,里面添上一句话:test{color:#000;}就可以了。这只是一个示例,具体要你自己去搞,有不懂的地方请追问。并附加问题页面网址。我的站子:http://kssmaeuorg

后台 论坛管理 界面风格 到风格详情中设置

css_commonhtm 文件简要介绍

Common Style

{ word-wrap: break-word; } //IE、Safari下强制换行

body { {BGCODE}; text-align: center; } // {BGCODE}定义了页面的背景

body, td, input, textarea, select, button { color: {TABLETEXT}; font: {FONTSIZE}/16em {FONT}; } //页面字体的大小以及颜色

body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin: 0; padding: 0; } //元素初始化

h1, h2, h3, h4, h5, h6 { font-size: 1em; } //标题字体大小初始化

#menu li, popupmenu_popup li, #announcement li, portalbox li, tabs li, postmessage fieldset li, side li, formbox li, notice li { list-style: none; } //去掉列表项目符号

a { color: {LINK}; text-decoration: none; } //超级链接字体样式

a:hover { text-decoration: underline; } //鼠标经过链接的时候字体样式

a img { border: none; } //链接中的边框设置

em, cite, strong, th { font-style: normal; font-weight: normal; } //一些标签字体样式正常化

table { empty-cells: show; border-collapse: collapse; } //表格边框不重复,当单元格内容为空时显示边框

Layout & Block Style

wrap { width: {MAINTABLEWIDTH}; text-align: left; margin: 0 auto; } //外表格样式设置,{MAINTABLEWIDTH}为后台定义的页面宽度

#header { width: 100%; overflow: hidden; } //头部样式

#header h2 { float: left; padding: 5px 0; } //logo样式

#footer { border-top: 1px solid {BORDERCOLOR}; background: {ALTBG2}; color: {TEXT}; padding: 12px 0; } //底部样式

#footlinks { float: right; margin-top: -3px; text-align: right; } //底部右侧链接样式

#footer img { float: left; margin: 0 10px 0 0; } //底部样式

#copyright, #debuginfo { font: {SMFONTSIZE}/15em {SMFONT}; } //底部左侧版权都信息样式

#menu { height: 31px; border: 1px solid {CATBORDER}; {HEADERMENUBGCODE}; background-repeat: repeat-x; } //顶部菜单栏样式

#foruminfo { width: 100%; overflow: hidden; margin: 10px 0; color: {TEXT}; } //页面导航部位样式

#userinfo, #foruminfo #nav { float: left; padding-left: 5px; } //用户信息和内页菜单导航样式

#forumstats, #headsearch { float: right; text-align: right; padding-right: 5px; } //论坛帖子、会员等信息和搜索框的样式

#foruminfo p { margin: 0; }

#foruminfo a{ color: {HIGHLIGHTLINK}; } //导航内的超链接样式,颜色为后台的高亮链接颜色

#announcement { border-top: 1px dashed {CATBORDER}; line-height: 36px; height: 36px; overflow: hidden; } //公告样式

#hottags a { white-space: nowrap; margin-right: 05em; } //标签样式

#hottags h3 { clear:both; }

headactions { float: right; line-height: 1em; padding: 10px 10px 0 0; } //分类版块右侧样式

pages, threadflow { float: left; border: 1px solid {CATBORDER}; background: {COMMONBOXBG}; height: 24px; line-height: 26px; color: {LIGHTTEXT}; overflow: hidden; } //分页样式

tabs { padding-bottom: 26px; margin-bottom: 15px; background: {ALTBG2}; border-top: 1px solid {TABLEBG}; border-bottom: 1px solid {CATBORDER}; } //切换tab标签样式

smileytabs { height: 28px; background: {ALTBG2}; position: relative; padding-right: 24px; } //表情切换样式

#headfilter { border: solid {BORDERCOLOR}; border-width: 1px 1px 0; } //主题列表页顶部全部、精华等tab切换的样式

#footfilter { padding: 10px; he\ight: 44px; height: 24px; line-height: 24px; background: {COMMONBOXBG}; border-color: {COMMONBOXBORDER}; font-family: Simsun, "Times New Roman"; } //主题列表页底部排序所在位置的样式

legend { border: 1px solid {BGBORDER}; background: {ALTBG1}; padding: 10px; margin: 10px auto; width: 500px; text-align: center; line-height: 35px; } //页面图标介绍的样式

#forumlinks {} //联盟论坛那样式

#online {} //在线列表样式

#onlinelist { background: url({IMGDIR}/onlinegif) no-repeat 10px 10px; border-top: 1px solid {COMMONBOXBORDER}; } //在线列表处的左侧图标背景

#bdayslist { padding: 10px 0 10px 55px; border-top: 1px solid {COMMONBOXBORDER}; background: url({IMGDIR}/bdays_cakegif) no-repeat 10px 5px; } //生日图标背景样式

userlist { overflow: hidden; padding: 5px 5px 0; } //会员列表样式

#recommendlist { } //主题推荐

Box Style

/Main Box/

mainbox { background: {TABLEBG}; border: {BORDERWIDTH} solid {BORDERCOLOR}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; } //主表格样式

/Tabel Footer: Button Operation/

footoperation { background: {CATCOLOR}; padding: 5px; border-top: 1px solid {CATBORDER}; } //底部操作样式

/Forum & Thread List/

forumlist tbody th, forumlist tbody td, threadlist tbody th, threadlist tbody td { color: {TEXT}; padding: 1px 5px; border-bottom: 1px solid {TABLEBG}; background-color: {ALTBG1}; }

forumlist tbody th { height: 40px; }

forumlist th, threadlist th { text-align: left; }

forumlist th { padding-left: 55px !important; } //首页每个板块前新旧帖图标所占的宽度

forumlist h2 em { color: {HIGHLIGHTLINK}; }

forumlist tbody th { background-image: url({IMGDIR}/forumgif); background-repeat: no-repeat; background-position: 13px 50%; } //首页版块前旧帖图标背景

forumlist tbody thnew { background-image: url({IMGDIR}/forum_newgif); } //首页版块前新帖图标背景

moderators a { color: {HIGHLIGHTLINK}; } //版主链接样式

moderators a strong { font-weight: bold; color: {HIGHLIGHTLINK}; } //继承下级版块版主的版主链接样式

threadlist th input { float: left; margin-right: 5px; } //主题列表前复选框

threadlist th imgicon { float: left; margin-left: -22px; } //主题列表前图标

forumlist tdlastpost { width: 260px; } //版块列表最后回复框的宽度

threadlist tdfolder { text-align: center; width: 30px; } //主题列表最前边图标样式

threadlist tdicon { text-align: center; padding: 3px 0; width: 16px; } //主题列表用户自定义图标样式

threadlist tdauthor { width: 120px; } //主题列表作者所在单元格样式

threadlist tdlastpost { text-align: right; width: 120px; padding-right: 15px; } //主题列表最后回复所在单元格样式

/Common Box/

box { background: {TABLEBG}; border: {BORDERWIDTH} solid {CATBORDER}; padding: {TABLESPACE}; margin-bottom: {BOXSPACE}; } //联盟论坛、在线列表所在表格样式

DropMenu

dropmenu { padding-right: 15px !important; background-image: url({IMGDIR}/arrow_downgif) !important; background-position: 100% 50% !important; background-repeat: no-repeat !important; cursor: pointer; }

popupmenu_popup { text-align: left; line-height: 14em; padding: 10px; overflow: hidden; border: 1px solid {CATBORDER}; {PORTALBOXBGCODE}; background-repeat: repeat-x; background-position: 0 1px; } //下拉菜单样式

Advertisments

#ad_headerbanner { float: right; margin-top: 15px; } //头部logo右方banner

ad_text { border: 1px solid {CATBORDER}; margin-bottom: {BOXSPACE}; padding: 6px; {PORTALBOXBGCODE}; background-repeat: repeat-x; } //页内文字广告

ad_textlink2 { margin: 10px; } //贴内广告

ad_textlink1,ad_textlink2 { padding-left: 25px; background: url({IMGDIR}/ad_icongif) no-repeat 0 50%; } //贴内广告

ad_footerbanner { text-align: center; clear: both; margin: 5px } //页尾广告

Side list

#infoside { float: right; width: 20%; } //主题列表、帖子列表开启分栏的时候右栏样式。

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » Discuz!怎样修改模板使侧边栏显示用户所得的勋章?DZ

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情