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

 找回密码
 立即注册
搜索

[已解决] X1.5怎样实现DVBBS界面今日发帖数

[复制链接]
少杰1314 发表于 2010-10-20 12:30:15 | 显示全部楼层 |阅读模式
RT如图:
QQ截图未命名.jpg

回复

使用道具 举报

青年大哥 发表于 2010-10-20 12:42:46 | 显示全部楼层
本帖最后由 青年大哥 于 2010-10-20 12:44 编辑

将图片文件上传到./static/image/common目录下


打开./template/(当前风格目录)/forum/discuz.htm,查找:
  1. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  2. <!--{if $forum[icon]}-->
  3. $forum[icon]
  4. <!--{else}-->
  5. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  6. <!--{/if}-->
  7. </td>
复制代码


修改为:
  1. <td class="fl_icn" style="width:42px;">
  2. <!--{if $forum[todayposts] && !$forum['redirect']}--><div class="today">$forum[todayposts]<br /><span style="color:#000;">今日</span></div><!--{else}--><div class="today">N/A<br /><span style="color:#000;">今日</span></div><!--{/if}-->
  3. </td>
复制代码



再查找:
  1. <div class="fl_icn_g"{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  2. <!--{if $forum[icon]}-->
  3. $forum[icon]
  4. <!--{else}-->
  5. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  6. <!--{/if}-->
  7. </div>
复制代码


修改为:
  1. <div class="fl_icn_g" style="width:58px;">
  2. <!--{if $forum[todayposts] && !$forum['redirect']}--><div class="today">$forum[todayposts]<br /><span style="color:#000;">今日</span></div><!--{else}--><div class="today">N/A<br /><span style="color:#000;">今日</span></div><!--{/if}-->
  3. </div>
复制代码



打开./template/(当前风格目录)/forum/forumdisplay_subforum.htm,查找:
  1. <div class="fl_icn_g"{if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="width: {$sub[extra][iconwidth]}px;"{/if}>
  2. <!--{if $sub[icon]}-->
  3. $sub[icon]
  4. <!--{else}-->
  5. <a href="$forumurl"{if $sub[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $sub[folder]}_new{/if}.gif" alt="$sub[name]" /></a>
  6. <!--{/if}-->
  7. </div>
复制代码

修改为:
  1. <div class="fl_icn_g" style="width:58px;">
  2. <!--{if $sub[todayposts] && !$sub['redirect']}--><div class="today">$sub[todayposts]<br /><span style="color:#000;">今日</span></div><!--{else}--><div class="today">N/A<br /><span style="color:#000;">今日</span></div><!--{/if}-->
  3. </div>
复制代码
再查找:
  1. <td class="fl_icn" {if !empty($sub[extra][iconwidth]) && !empty($sub[icon])} style="width: {$sub[extra][iconwidth]}px;"{/if}>
  2. <!--{if $sub[icon]}-->
  3. $sub[icon]
  4. <!--{else}-->
  5. <a href="$forumurl"{if $sub[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $sub[folder]}_new{/if}.gif" alt="$sub[name]" /></a>
  6. <!--{/if}-->
  7. </td>
复制代码

修改为:
  1. <td class="fl_icn" style="width:58px;">
  2. <!--{if $sub[todayposts] && !$sub['redirect']}--><div class="today">$sub[todayposts]<br /><span style="color:#000;">今日</span></div><!--{else}--><div class="today">N/A<br /><span style="color:#000;">今日</span></div><!--{/if}-->
  3. </td>
复制代码
打开./template/default/common/common.css,在文件最末尾加:
  1. /*Add By Marco129@DSU - Today Post*/
  2. .today { width:42px; height:44px; float:left; background:url({IMGDIR}/today.jpg) no-repeat center top; margin:5px; text-align:center; color:#FF6600; font-size:12px; line-height:23px; font-family: Microsoft Yahei,Lucida Grande,Calibri,Trebuchet MS,Helvetica,Arial,Hiragino Sans GB,STHeiti,Microsoft Jhenghei,sans-serif; }
复制代码
登陆管理中心 -> 界面 -> 风格管理 -> 更新CSS缓存 !






评分

1

查看全部评分

回复

使用道具 举报

广告 发表于 2010-10-20 12:50:17 | 显示全部楼层
支持了啊  不错 。
回复

使用道具 举报

xgr2004 发表于 2010-10-20 12:51:06 | 显示全部楼层
支持!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
回复

使用道具 举报

冯役 发表于 2010-10-20 13:25:20 | 显示全部楼层

韩国进口 覆盆子汉方保健饮品

专利技术,提取天然药用植物精华成分,依古汉方精心调配而成
取得韩国临床抗癌专利认证
具有防癌抗癌,提高人体免疫力,保肝护肝,提高性功能等神奇功效


本系列产品共有覆盆子、蓝莓、树莓、超级莓及汉方符合型五种口味供您选择


详情请联系:0411-83897462
QQ:993429118




本品在韩国最大超级市场——乐天市场内专门店内热卖场景

回复

使用道具 举报

chenbingwen 发表于 2010-10-20 15:06:19 | 显示全部楼层
回复

使用道具 举报

jackdai 发表于 2010-10-20 15:35:43 | 显示全部楼层
回复

使用道具 举报

勿忘我科技 发表于 2010-10-20 15:54:33 | 显示全部楼层
学习了
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-6 04:23 , Processed in 0.145023 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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