繁體
|
簡體
Sclub交友聊天~加入聊天室當版主
(檢舉)
分享
新浪微博
QQ空间
人人网
腾讯微博
Facebook
Google+
Plurk
Twitter
Line
註冊
登錄
論壇
搜索
私人消息 (0)
公共消息 (0)
系統消息 (0)
好友消息 (0)
帖子消息 (0)
NewBBs
»
虚拟世界分享圈
» 精仿X系列之版块浏览【图片模式】
返回列表
發帖
發短消息
加為好友
newbbs
當前離線
UID
1
帖子
19
精華
1
積分
113
閱讀權限
200
在線時間
6 小時
註冊時間
2022-8-12
最後登錄
2024-7-26
管理員
。◕‿◕。星级。◕‿◕。
。◕‿◕。信息。◕‿◕。
積分
113
威望
113
金錢
113
。◕‿◕。勋章。◕‿◕。
1
#
跳轉到
»
倒序看帖
打印
字體大小:
t
T
newbbs
發表於 2022-8-25 20:18
|
只看該作者
精仿X系列之版块浏览【图片模式】
1、forumdisplay模版最上边加
{eval $wj_image_mode = $_COOKIE["wj_image_mode"];}
复制代码
2、然后找到
<!--{if $page == 1 && !empty($announcement)}-->
复制代码
在上边加
<!--{if $wj_image_mode != 1}-->
复制代码
接着找
<!--{else}--> <tbody><tr><th colspan="6"><p class="nodata">{lang forum_nothreads}</p></th></tr></tbody> <!--{/if}--></table>
复制代码
修改为
<!--{else}--> <tbody><tr><th colspan="6"><p class="nodata">{lang forum_nothreads}</p></th></tr></tbody> <!--{/if}--> <!--{/if}--> </table>
复制代码
3、然后在
</table>
复制代码
下边加
<!-------------图片查看模式--------------->
<style>
.tl .by {
width: 105px;
line-height: 14px;
}
.chked {
padding-left: 15px;
line-height: 16px;
background: url(https://www.kuchingshare.my/template/style/images/picmode.png) no-repeat 0 3px;
color: #1E547F;
cursor: pointer;
background-position: 0 -37px;
}
.unchk {
padding-left: 15px;
line-height: 16px;
background: url(https://www.kuchingshare.my/template/style/images/picmode.png) no-repeat 0 3px;
color: #1E547F;
cursor: pointer;
}
.waterfall {
position: relative;
margin-top: 25px;
margin-left: 22px;
}
.waterfall li {
float: left;
width: 215px;
overflow: hidden;
margin: 0 10px 10px 0;
padding: 0 0 3px;
text-align: left;
border-width: 1px 0 0;
border-top: 1px solid #EAEAEA;
background: url(https://www.kuchingshare.my/template/style/images/piclong.png) no-repeat 100% 100%;
}
.waterfall .c {
overflow: hidden;
padding-bottom: 0;
max-height: 800px;
}
.waterfall .c, .waterfall h3 {
padding: 10px;
border: solid #EAEAEA;
border-width: 0 1px;
background-color: #F8F8F8;
}
.waterfall .c, .waterfall h3 {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 10px;
border: solid #EAEAEA;
border-width: 0 1px;
background-color: #F8F8F8;
}
.waterfall .auth {
padding: 0 10px 10px;
border-width: 0 1px 1px;
border-style: solid;
border-color: transparent #EAEAEA #B9B9B9;
background: #F8F8F8;
}
</style>
<!--{if $wj_image_mode == 1}-->
<div style="position: relative;">
<form method="post" name="moderate" id="moderate" action="topicadmin.php?action=moderate&fid=$fid&infloat=yes&nopost=yes">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="listextra" value="$extra" />
<ul id="waterfall" class="ml waterfall cl">
<!--{loop $threadlist $key $thread}-->
<li id="$thread[id]">
<div class="c cl">
{eval $q2 = $db->query("SELECT * FROM cdb_attachments WHERE tid='".$thread[tid]."' AND isimage!=0 ORDER BY pid DESC");}
{eval while ($asdfgh=$db->fetch_array($q2)) $thread[imgurl]=$asdfgh[attachment];}
<!--{if $thread[imgurl]}-->
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]" target="_blank"><img src="attachments/$thread[imgurl]" alt="$thread[subject]" title="$thread[subject]" width="100%" height="145" /></a>
<!--{else}-->
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]" target="_blank"><img src="https://www.kuchingshare.my/template/style/images/nophototiny.png" title="$thread[subject]" width="100%" height="145" /></a>
<!--{/if}-->
</div>
<h3 class="xw0">
<!--{if $forum['ismoderator']}-->
<!--{if $thread['fid'] == $fid && $thread['digest'] >= 0}-->
<!--{if $thread['displayorder'] <= 3 || $adminid == 1}-->
<input onclick="tmodclick(this)" class="checkbox" type="checkbox" name="moderate[]" value="$thread[tid]" />
<!--{else}-->
<input class="checkbox" type="checkbox" disabled="disabled" />
<!--{/if}-->
<!--{else}-->
<input class="checkbox" type="checkbox" disabled="disabled" />
<!--{/if}-->
<!--{/if}-->
<a href="viewthread.php?tid=$thread[tid]&extra=$extra"$thread[highlight]" onclick="atarget(this)" title="$thread[subject]">$thread[subject]</a>
</h3>
<div class="auth cl">
<cite class="xg1 y" style="float: right;color:#999;">
喜欢: $thread[views] 回复: <a href="thread-$thread[tid]-1-1.html" title="$thread[replies] 回复">$thread[replies]</a>
</cite>
<!--{if $thread['authorid'] && $thread['author']}-->
<a href="space.php?uid=$thread[authorid]">$thread[author]</a>
<!--{else}-->
<!--{if $forum['ismoderator']}-->
<a href="space.php?uid=$thread[authorid]">匿名</a>
<!--{else}-->
{lang anonymous}
<!--{/if}-->
<!--{/if}-->
</div>
</li>
<!--{/loop}-->
</ul>
</div>
</form>
<!--{/if}-->
<!-------------图片查看模式end--------------->
复制代码
然后再找
<li><a class="order {if $orderby == 'heats' || $orderby == 'recommends'}order_active{/if}" href="forumdisplay.php?fid={$fid}&filter=$filter&orderby={if $filter == 'recommend'}recommends{else}heats{/if}$typeadd$sortadd">{lang order_heats}</a></li>
复制代码
在下边加
<!--{if $wj_image_mode != 1}--><li style="float:right;"><a onclick="setcookie('wj_image_mode', 1, 999999);location.reload();" title="开启图片模式" class="unchk" href="javascript:;">图片模式</a></li><!--{/if}--><!--{if $wj_image_mode == 1}--><li style="float:right;"><a onclick="setcookie('wj_image_mode', 2, 999999);location.reload();" title="关闭图片模式" class="chked" href="javascript:;">图片模式</a></li><!--{/if}-->
複製代碼
收藏
分享
返回列表
虚拟世界分享圈1
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈2
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈3
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈4
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
虚拟世界分享圈
[收藏此主題]
[關注此主題的新回復]
[通過 QQ、MSN 分享給朋友]
每日签到