這種改法不行耶,同樣的主題名稱會顯示二個
如圖(黑色字的部份)

謝謝
版主: 版主管理群
代碼: 選擇全部
#
#-----[ Open ]-----
#
templates/YOUR_THEME/index_body.tpl
#
#-----[ Find-> Delete ]-----
#
<a href="{catrow.forumrow.U_LAST_TOPIC}">{catrow.forumrow.LAST_TOPIC}</a><br />
代碼: 選擇全部
#
#-----[ Open ]-----
#
index.php
#
#-----[ Find ]-----
#
$last_post .= $forum_main[$forum_id]['topic_title'] .'<br />';
#
#-----[ Replace With ]-----
#
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_main[$forum_id]['forum_last_post_id']) . '#' . $forum_main[$forum_id]['forum_last_post_id'] . '"> '.$forum_main[$forum_id]['topic_title'].' </a>'.'<br />';
基本上, 時間的位置在最上面, 或者是最下面, 或者是其他, 端賴您自己的喜好, 去調整而已, 並無關於對或錯.
代碼: 選擇全部
#
#-----[ Find ]-----
#
$last_post = $last_post_time . '<br />';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_main[$forum_id]['forum_last_post_id']) . '#' . $forum_main[$forum_id]['forum_last_post_id'] . '"> '.$forum_main[$forum_id]['topic_title'].' </a>'.'<br />';
#
#-----[ Replace With ]-----
#
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_main[$forum_id]['forum_last_post_id']) . '#' . $forum_main[$forum_id]['forum_last_post_id'] . '"> '.$forum_main[$forum_id]['topic_title'].' </a>'.'<br />';
$last_post .= $last_post_time . '<br />';
代碼: 選擇全部
Fatal error: Call to undefined function: smilies_pass() in /home/fountain/public_html/phpbb/index.php on line 500呵! 呵! 套用自己的程式碼, 忘記移除" smilies_pass() ".bc010843 寫:改index.php對吧?
出現錯誤耶\r代碼: 選擇全部
Fatal error: Call to undefined function: smilies_pass() in /home/fountain/public_html/phpbb/index.php on line 500
抱歉!, 昨天好像在帶您" 兜圈子"!bc010843 寫:感謝心靈捕手~~~~~![]()
![]()
![]()
代碼: 選擇全部
'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_read'] ? (strlen($forum_data[$j]['topic_title']) > $board_config['topic_title_index_size']) ? substr($forum_data[$j]['topic_title'], 0, ($board_config['topic_title_index_size'] - 2)) . "..." : $forum_data[$j]['topic_title'] : "",
'U_LAST_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $forum_data[$j]['topic_id']), 不對!bc010843 寫:啊~~~![]()
不過我看不太懂耶,只要加入這一段碼就好了嗎?如果是那是要加在哪?謝謝代碼: 選擇全部
'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_read'] ? (strlen($forum_data[$j]['topic_title']) > $board_config['topic_title_index_size']) ? substr($forum_data[$j]['topic_title'], 0, ($board_config['topic_title_index_size'] - 2)) . "..." : $forum_data[$j]['topic_title'] : "", 'U_LAST_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_TOPIC_URL . "=" . $forum_data[$j]['topic_id']),
代碼: 選擇全部
'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] ? (strlen($forum_main[$forum_id]['topic_title']) > $board_config['topic_title_index_size']) ? substr($forum_main[$forum_id]['topic_title'], 0, ($board_config['topic_title_index_size'] - 2)) . "..." : $forum_main[$forum_id]['topic_title'] : "",// ?#93;應簡易子版面-> 成功一半( 權限失敗)
'U_LAST_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_main[$forum_id]['forum_last_post_id']),// ?#93;應簡易子版面-> 算是成功( 文章取代主題)
代碼: 選擇全部
'LAST_TOPIC' => $is_auth_ary[$forum_data[$j]['forum_id']]['auth_view'] ? (strlen($forum_main[$forum_id]['topic_title']) > $board_config['topic_title_index_size']) ? substr($forum_main[$forum_id]['topic_title'], 0, ($board_config['topic_title_index_size'] - 2)) . "..." : $forum_main[$forum_id]['topic_title'] : "",// ?#93;應簡易子版面-> 成功一半( 權限失敗)
'U_LAST_TOPIC' => append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_main[$forum_id]['forum_last_post_id']),// ?#93;應簡易子版面-> 算是成功( 文章取代主題) 代碼: 選擇全部
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_main[$forum_id]['forum_last_post_id']) . '#' . $forum_main[$forum_id]['forum_last_post_id'] . '"> '.$forum_main[$forum_id]['topic_title'].' </a>'.'<br />';
$last_post .= $last_post_time . '<br />';