getWeather({"success":"1","result":[{"cityno":"shanghai"}) 爱秀代码 - Powered by Discuz! Board
免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

标题: [教学] 115风格补丁,板块显示今日帖数。 [打印本页]

作者: icode    时间: 2018-11-7 20:44     标题: 115风格补丁,板块显示今日帖数。

QQ截图20181107204030.png

discuz 模板找到
  1. <a href="forumdisplay.php?fid=$forum[fid]" class="name "><span>$forum[name]</span></a>
复制
在下边加
  1. <!--{if $forum[todayposts]}--><em class="newpost">$forum[todayposts]</em><!--{/if}-->
复制
然后在css_append模板加
  1. .newpost {
  2.     background: #F60;
  3.     border: 2px solid #FFF;
  4.     border-radius: 20px;
  5.     color: #FFF;
  6.     font-size: 12px;
  7.     font-weight: normal;
  8.     height: 16px;
  9.     line-height: 16px;
  10.     min-width: 10px;
  11.     text-align: center;
  12.     padding: 0px 3px;
  13.     position: absolute;
  14.     top: 14px;
  15.     left: 58px;
  16. }
复制
完成

图片附件: QQ截图20181107204030.png (2018-11-7 20:45, 14.36 KB) / 下载次数 540
http://icode.258club.com/attachment.php?aid=628&k=b1b0e4cbef2a8954f760a68260658cac&t=1714227971&sid=LPVdpH


作者: 麻城生活网    时间: 2018-11-7 22:39

及时雨啊,感谢无界兄
作者: 麻城生活网    时间: 2018-11-7 22:55

提醒数后面多了一个10
作者: 无界    时间: 2018-11-8 00:50

看帖回帖那是一定要的:精彩至极,文章写的真棒,对我非常有帮助

作者: icode    时间: 2018-11-8 01:14

回复 4# 无界


   
作者: 无界    时间: 2018-11-8 01:16

回复 5# icode
作者: 波斯佳人    时间: 2018-11-8 12:29

看帖回帖那是一定要的:太厉害啦!





欢迎光临 爱秀代码 (http://icode.258club.com/) Powered by Discuz! 7.2