久久久久av_欧美日韩一区二区在线_国产精品三区四区_日韩中字在线

返回列表 發(fā)帖
查看: 3860|回復(fù): 0

特定版塊提示自己的主題 (X3.2 ~ X3.4 版本 繁和簡(jiǎn))

69

主題

107

回帖

706

積分

自成一派

貢獻(xiàn)
4 點(diǎn)
金幣
154 個(gè)
樓主
發(fā)表于 2019-8-13 19:05:24 | 只看樓主 |只看大圖 |倒序?yàn)g覽 |閱讀模式





詳細(xì)教程以及代碼.zip (1.39 KB, 下載次數(shù): 137)

大家好
當(dāng)我們進(jìn)入版塊時(shí)
如果主題一多在版塊帖子列表頁(yè)中
要很容易找到自己發(fā)表過(guò)的主題好像沒(méi)那麼容易

當(dāng)然可以在版塊中搜索帖子
但這會(huì)另開(kāi)一個(gè)搜索頁(yè)面
不能在版塊直接查看

也可以在版塊帖子列表頁(yè)中查看作者那個(gè)欄位
然後找到自己發(fā)表過(guò)的主題
但有時(shí)不是那麼明顯好找

今天想和站長(zhǎng)們分享的
就是在帖子列表頁(yè)
主題名稱的後面會(huì)提示自己的帖子
只有自己的主題才有提示
這樣就比較方便查看了

分享給有需要的站長(zhǎng)們
樓主樓層第二頁(yè)提供簡(jiǎn)體版本
方便其他站長(zhǎng)閱讀^^

打開(kāi)

template/default/forum/forumdisplay_list.htm

查找

  1. <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
復(fù)制代碼



替換為

  1. <!--{if in_array($_G[fid], array(2,18))}-->
  2.                                            <!--{if $_G[uid] == $thread[authorid]}-->
  3.                                                 <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a> <img src="http://i.imgur.com/18AEN8L.gif" title="{lang my_posts}" align="absmiddle"><!--{else}--><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
  4.                                            <!--{/if}-->
  5.                                            <!--{else}-->
  6.                                                 <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
  7.                                          <!--{/if}-->
復(fù)制代碼



修改前請(qǐng)先備份
修改後記得更新緩存

代碼說(shuō)明

($_G[fid], array(2,18))

這是特定版塊的 fid
218 改成您的特定版塊 fid 即可

如果您只有一個(gè)特定版塊的話
只填一個(gè) fid 即可



($_G[fid], array(2))

如果不知道版塊的 fid
可以在後臺(tái)查看即可

  

如果想要論壇所有版塊都能提示的話 (全局)
則替換為部分改為

  1. <!--{if $_G[fid]}-->
  2.                                            <!--{if $_G[uid] == $thread[authorid]}-->
  3.                                                 <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a> <img src="http://i.imgur.com/18AEN8L.gif" title="{lang my_posts}" align="absmiddle"><!--{else}--><a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
  4.                                            <!--{/if}-->
  5.                                            <!--{else}-->
  6.                                                 <a href="forum.php?mod=viewthread&tid=$thread[tid]&{if $_GET['archiveid']}archiveid={$_GET['archiveid']}&{/if}extra=$extra"$thread[highlight]{if $thread['isgroup'] == 1 || $thread['forumstick']} target="_blank"{else} onclick="atarget(this)"{/if} class="s xst">$thread[subject]</a>
  7.                                          <!--{/if}-->
復(fù)制代碼

  1. http://i.imgur.com/18AEN8L.gif
復(fù)制代碼



這是提示圖標(biāo)的圖片完整網(wǎng)址
替換成您自己的即可

修改前
主題名稱後面沒(méi)有提示圖標(biāo)





修改後
主題名稱後面有提示圖標(biāo)
滑鼠移到提示圖標(biāo)時(shí)
會(huì)顯示我的帖子提示





其它版本查找的代碼和行數(shù)有點(diǎn)差異
但修改的方法是一樣的
可以參考這個(gè)方法修改即可

圖標(biāo)

  


回復(fù)

使用道具 舉報(bào)

本版積分規(guī)則

  • 關(guān)注公眾號(hào)
  • 有償服務(wù)微信
  • 有償服務(wù)QQ

手機(jī)版|小黑屋|Discuz! 官方交流社區(qū) ( 皖I(lǐng)CP備16010102號(hào) |皖公網(wǎng)安備34010302002376號(hào) )|網(wǎng)站地圖|star

GMT+8, 2025-9-18 13:24 , Processed in 0.062736 second(s), 29 queries .

Powered by Discuz! W1.0 Licensed

Copyright © 2001-2025 Discuz! Team.

關(guān)燈 在本版發(fā)帖
有償服務(wù)QQ
有償服務(wù)微信
返回頂部
快速回復(fù) 返回頂部 返回列表