BoonKiong.com2025™

人气 48

Discuz! 美化你的电脑小黑屋,像牢房一样的效果

文***已获得官方认证 2025-9-13 23:15

192101ocjy9jcbxc1qyqq9.png
192101whyfhdqfopdueddn.png


1、打开 forum\darkroom.htm模板文件,把全部的代码修改为:

  1. <!--{template common/header}-->
  2. <div class="cl" style="position:relative;">
  3. <div class="comiis_bigad cl"><a href="http://www.yzjhlt.club/gg/" style="margin-top: 10px;margin-left: 0px;margin-right: 0px;"><img src="template/comeing_city_c8/comeing/xhw.png" width="100%" class="vm comiis_noloadimage"></a></div>   
  4. <div class="comiis_svg_box" style="bottom:-6px;padding-bottom: 20px;">
  5. <div class="comiis_svg_a" style="top: 10px;"></div>
  6. <div class="comiis_svg_b" style="top: 15px;"></div>
  7. </div>   
  8. </div>
  9. <div class="mbw cl">
  10.   <div class="lil">
  11.     <ul class="lib cl">
  12.       <div id="list_new">
  13.          
  14.         <!--{if $crimelist}-->
  15.         <!--{eval $i = 0;}-->
  16.         <!--{loop $crimelist $crime}-->
  17.         <!--{eval $i++;}-->
  18.         <li style="border-radius: 5px;">
  19.           <div id="darkroomuid_$crime[uid]" {if $i % 2 == 0} class="alt"{/if}>
  20.             <div class="t">
  21.               <p class="list_cjimg" style="width: 80px;height: 80px;">
  22.                 {avatar($member['uid'], 'middle')}
  23.                 <img src="你的网站图片路径/xiaoheiwu2.png" style="position:absolute;width: 120px;height:120px;background:rgba(0,0,0,0);border:0px;padding:0px;">
  24.               </p>
  25.               <h5><a href="home.php?mod=space&uid=$crime[uid]" target="_blank">$crime[username]</a></h5>
  26.               <h5><span class="price">$crime[action] (截止日期 $crime[groupexpiry])</span></h5>
  27.               <h6><em><i>操作时间:</i><span title="$crime[dateline]">$crime[dateline]</span></em></h6>
  28.             </div>
  29.             <div class="b cl">
  30.               <details>
  31.                 <summary><i>执行法官:</i><font color="#FF0000"></font>
  32.                   <a href="space-uid-1.html" target="_blank"><font color="#D80101"> admin</font></a>
  33.                   <span class="y"><c><i>点击展开详情</i></c></span>
  34.                 </summary>
  35.                 <div class="lijs" id="memo_darkroomuid_$crime[uid]" style="">
  36.                   <span class="bg_e"><em style="border-bottom:1px dashed #000">
  37.                     <font color="red">$crime[username]</font> 您好:<br>&emsp;&emsp;由于您违反社区版规,您的账户已被执行法官:<font color="red">admin</font> 设置为: <font color="#f60">$crime[action]</font> (截止日期: $crime[groupexpiry])。<font color="#8A0202">操作理由:$crime[reason]</font> 如果您对以上操作有任何异议。<br>
  38.                     <a href="你可以自己弄一个申诉网页或者帖子地址" target="_blank"><font class="y" style="border-bottom:1px dashed #000" color="#0180F7">请点击这里进行申诉!</font></a>
  39.                   </em></span>
  40.                 </div>
  41.               </details>
  42.             </div>
  43.           </div>
  44.         </li>
  45.         <!--{/loop}-->
  46.          
  47.         <!--{if $dataexist == 1}-->
  48.         <div class="bm bw0 pgs cl">
  49.           <span class="pgb y">
  50.             <div class="pg">
  51.               <a href="javascript:;" class="nxt" id="darkroommore" cid="$cid">{lang more}</a>
  52.             </div>
  53.           </span>
  54.         </div>
  55.         <!--{/if}-->
  56.         <!--{else}-->
  57.         <li>
  58.           <div class="t" colspan="6" align="center">{lang darkroom_no_users}</div>
  59.         </li>
  60.         <!--{/if}-->
  61.       </div>
  62.     </ul>
  63.   </div>
  64. </div>
  65. <script type="text/javascript">
  66.     (function() {
  67.      if($('darkroommore')) {
  68.         $('darkroommore').onclick = function() {
  69.             var obj = this;
  70.             var cid = parseInt(obj.getAttribute('cid').valueOf());
  71.             var url = 'forum.php?mod=misc&action=showdarkroom&cid=' + cid + '&t=' + parseInt((+new Date()/1000)/(Math.random()*1000));
  72.             var table = $('darkroomtable');
  73.             var tablerows = table.rows.length;
  74.             obj.style.display = 'none';
  75.             var x = new Ajax('JSON');
  76.             x.getJSON(url, function(s) {
  77.                 if(s && s.message) {
  78.                     var smsg = s.message.split('|');
  79.                     if(smsg[0] == 1) {
  80.                         obj.setAttribute('cid', smsg[1]);
  81.                         obj.style.display = 'block';
  82.                     }
  83.                     var list = s.data;
  84.                     for(i in list) {
  85.                         if($('darkroomuid_' + list.uid)) {
  86.                             continue;
  87.                         }
  88.                         var newtr = table.insertRow(tablerows);
  89.                         if(tablerows % 2 == 0) {
  90.                             newtr.className = 'alt';
  91.                         }
  92.                         newtr.insertCell(0).innerHTML = '<a href="home.php?mod=space&uid=' + list.uid + '" target="_blank">' + list.username + '</a>';
  93.                         newtr.insertCell(1).innerHTML = list.action;
  94.                         newtr.insertCell(2).innerHTML = list.groupexpiry;
  95.                         newtr.insertCell(3).innerHTML = list.dateline;
  96.                         newtr.insertCell(4).innerHTML = list.reason;
  97.                         tablerows++;
  98.                     }
  99.                 }
  100.             });
  101.         };
  102.      }
  103.      })();
  104. </script>
  105. <!--{template common/footer}-->
复制代码


2、打开 common/common.css 模板文件,把代码添加到最下边:

  1. .mbw {
  2.   margin-bottom: 20px !important;
  3.   margin-left: 70px;
  4. }
  5. .cl {
  6.   zoom: 1;
  7. }
  8. .lil, .lib, .lib1 {
  9.   width: 100%;
  10. }
  11. .lib {
  12.   position: relative;
  13.   left: -20px;
  14.   width: 960px;
  15. }
  16. .lib li {
  17.   float: left;
  18.   margin: 0 0 10px 24px;
  19.   width: 295.5px;
  20. }
  21. .lib li > div {
  22.   padding: 9px;
  23.   width: 295px;
  24.   border: #fff 1px solid;
  25.   border-radius: 4px;
  26.   background: #fff;
  27. }
  28. .lib li > div {
  29.   padding: 9px;
  30.   border: #ddd 1px solid;
  31.   border-radius: 4px;
  32.   box-shadow: 0 0 5px #ccc;
  33. }
  34. .lib li .t {
  35.   overflow: hidden;
  36. }
  37. .lib li p.list_cjimg {
  38.   float: left;
  39.   display: flex;
  40.   margin-right: 10px;
  41.   width: 80px;
  42.   height: 80px;
  43.   border-radius: 4px;
  44.   background: #f4f4f4;
  45.   line-height: 80px;
  46.   justify-content: center;
  47.   align-items: center;
  48. }
  49. .lib li p.list_cjimg {
  50.   float: left;
  51.   margin-right: 10px;
  52. }
  53. .lib li p.list_cjimg img {
  54.   display: inline-block;
  55.   max-width: 80px;
  56.   max-height: 80px;
  57.   border-radius: 4px;
  58.   vertical-align: middle;
  59. }
  60. .lib li p.list_cjimg img {
  61.   display: inline-block;
  62.   max-width: 80px;
  63.   max-height: 80px;
  64.   border-radius: 7px;
  65.   vertical-align: middle;
  66. }
  67. .lib li .t h5 {
  68.   font-size: 13px;
  69.   line-height: 28px;
  70. }
  71. .lib li .t h5 .price {
  72.   margin-right: 6px;
  73.   color: #f60;
  74.   font-weight: 400;
  75.   font-size: 12px;
  76. }
  77. em, cite, i {
  78.   font-style: normal;
  79. }
  80. .lib li .t h6 em i {
  81.   color: #999;
  82. }
  83. element.style {
  84. }
  85. .lib li .b {
  86.   margin-top: 10px;
  87.   padding-top: 7px;
  88.   border-top: #ddd 1px dashed;
  89.   line-height: 20px;
  90. }
  91. summary {
  92.   user-select: none;
  93.   outline: 0;
  94. }
  95. .lib li .lijs {
  96.   bottom: 0;
  97.   left: -10px;
  98. }
  99. .lijs {
  100.   position: relative;
  101.   padding: 9px 9px 0;
  102.   width: 270px;
  103.   border-top: none;
  104.   border-bottom: none;
  105.   line-height: 20px;
  106. }
  107. .lijs span {
  108.   display: inline-block;
  109.   overflow: hidden;
  110.   padding: 6px 8px;
  111.   width: 256px;
  112.   border-radius: 4px;
  113.   background: #f4f4f4;
  114. }
  115. .lijs span {
  116.   margin-top: 5px;
  117.   display: inline-block;
  118.   overflow: hidden;
  119.   padding: 6px 8px;
  120.   width: 100%px;
  121.   border-radius: 4px;
  122.   background: #999;
  123. }
  124. .bg_e {
  125.   background: #f8f8f8 !important;
  126. }
  127. .cl:after {
  128.   content: ".";
  129.   display: block;
  130.   height: 0;
  131.   clear: both;
  132.   visibility: hidden;
  133. }
复制代码


文章来源:Discuz! 官方交流社区


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

您还未登录

随手拍~~:

热门推荐~~:

论坛表情分享...

1、洋葱头 ...

Discuz! X3.5 解决小图标不显示的方法...

我发现大多数使用Discuz! X3.5 都有小图标不能显示的问题,提问的时候大家给的回答都是说跨域的问题, ...

如何在 discuz 帖子里添加 APlayer 音乐播...

1、首先将下边的 APlayer.css 和 APlayer.js 代码下载然后解压上传到服务器。 2、单曲音乐的代 ...

Discuz! 相关帖子功能修改随机显示不依赖标...

打开 source/module/forum/forum_viewthread.php 文件,查找: 换行添加: 再查找: 换行添 ...

Discuz! X3.5 手机版 logo 的路径...

打开以下的模板文件,搜索 logo_m.svg 1.template/default/touch/portal/index.htm 2.template/def ...

热度会员~~:

文強berrybkboonkiongadmin老谟深虑TaC9528huaekinfei220088ku510teresabitch

免责声明~~:


本站内容来源于合作伙伴及网络搜集,版权归原作者所有。如有侵犯版权,请立刻和本站联系,我们将在三个工作日内予以改正。
Email:hsbk@hotmail.com

服务与条款|隐私政策|免责声明|手机版|网站地图|友链申请| 文强阁

Powered by Discuz! X3.5|© 2001-2025 Discuz! Team. |本站总访问量已经运行: