Discuz!X2主题列表页帖子默认打开新窗口的解决方法
discuz!2.0帖子列表页默认是在本窗口打开,修改为默认新窗口打开帖子需要修改模板代码:
\template\default\forum\forumdisplay_list.htm 第38行
1 |
<span id="atarget" {if !empty($_G['cookie']['atarget'])}onclick="setatarget(0)" class="y atarget_1"{else}onclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span> |
修改为:
1 |
<span id="atarget" {if !empty($_G['cookie']['atarget'])}onclick="setatarget(0)" class="y atarget_1"{else}onclick="setatarget(1)" class="y"{/if} title="{lang new_window_thread}">{lang new_window}</span><SCRIPT LANGUAGE="JavaScript">setatarget(1);</SCRIPT> |