想請問各位大大如何將論壇做以下功能:
1.設子版區時若將設為外部連結,如何使其點選後開新視窗? 還是後台可以設定不同的連結開啟的方式嗎?
2.加入群組時是否可改為一次選取多個?? 並於後台指定加入"這些類別"的群組最多的數量??
因為小弟有"幾個版面"用了群組作版面權限流覽的規劃, 但又要限制每人最多選擇其中5個, 所以需要這類的功能
[問題]如何連結開新視窗&加入群組採多個選取
版面規則
請注意!您的提問必須遵守發問格式,違者砍文。
請注意!您的提問必須遵守發問格式,違者砍文。
[問題]如何連結開新視窗&加入群組採多個選取
●架設主機作業系統:遠端主機
●上網方式:Hinet ADSL 2m/256
● phpBB2 版本:phpBB 2.0.21
●上網方式:Hinet ADSL 2m/256
● phpBB2 版本:phpBB 2.0.21
Re: [問題]如何連結開新視窗&加入群組採多個選取
關於1.設子版區時若將設為外部連結,如何使其點選後開新視窗?
小弟於官網討論串找到了解決辦法:
點選連結型子版區開新視窗
by zeroK on Mon Jan 14, 2008 4:10 pm
出處 http://www.phpbb.com/community/viewtopi ... UMS+Window
小弟於官網討論串找到了解決辦法:
點選連結型子版區開新視窗
by zeroK on Mon Jan 14, 2008 4:10 pm
代碼: 選擇全部
#
#-----[ OPEN ]-----
#
includes/functions_display.php
#
#-----[ FIND ]-----
#
else if ($row['forum_type'] != FORUM_CAT)
{
$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
$subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
$forum_rows[$parent_id]['forum_topics'] += $row['forum_topics'];
#
#-----[ REPLACE WITH ]-----
#
else if ($row['forum_type'] != FORUM_CAT)
{
$subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false;
$subforums[$parent_id][$forum_id]['name'] = $row['forum_name'];
$subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time'];
$subforums[$parent_id][$forum_id]['is_link'] = $row['forum_type'] == FORUM_LINK;
$forum_rows[$parent_id]['forum_topics'] += $row['forum_topics'];
#
#-----[ FIND ]-----
#
$subforums_list[] = array(
'link' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
'name' => $subforum_row['name'],
'unread' => $subforum_unread,
);
#
#-----[ REPLACE WITH ]-----
#
$subforums_list[] = array(
'link' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id),
'name' => $subforum_row['name'],
'unread' => $subforum_unread,
'is_link' => $subforum_row['is_link'],
);
#
#-----[ FIND ]-----
#
$s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '">' . $subforum['name'] . '</a>';
#
#-----[ REPLACE WITH ]-----
#
$s_subforums_list[] = '<a ' . ($subforum['is_link'] ? 'onclick="window.open(this.href); return false" ' : '') . 'href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '">' . $subforum['name'] . '</a>';●架設主機作業系統:遠端主機
●上網方式:Hinet ADSL 2m/256
● phpBB2 版本:phpBB 2.0.21
●上網方式:Hinet ADSL 2m/256
● phpBB2 版本:phpBB 2.0.21
Re: [問題]如何連結開新視窗&加入群組採多個選取
這兩個問題毫不相干, 建議分開處理;minotaur 寫:想請問各位大大如何將論壇做以下功能:
1.設子版區時若將設為外部連結,如何使其點選後開新視窗? 還是後台可以設定不同的連結開啟的方式嗎?
2.加入群組時是否可改為一次選取多個?? 並於後台指定加入"這些類別"的群組最多的數量??
因為小弟有"幾個版面"用了群組作版面權限流覽的規劃, 但又要限制每人最多選擇其中5個, 所以需要這類的功能
可以的話, 第 2 個問題請依發問格式, 重新發表主題.
另外, 請更新您的 '簽名' 內容.
Re: [問題]如何連結開新視窗&加入群組採多個選取
我按照這方式做修改 但是好像一樣沒有效果 按連結 一樣是同個視窗連結 而沒有產生新視窗..minotaur 寫:關於1.設子版區時若將設為外部連結,如何使其點選後開新視窗?
小弟於官網討論串找到了解決辦法:
點選連結型子版區開新視窗
by zeroK on Mon Jan 14, 2008 4:10 pm出處 http://www.phpbb.com/community/viewtopi ... UMS+Window代碼: 選擇全部
# #-----[ OPEN ]----- # includes/functions_display.php # #-----[ FIND ]----- # else if ($row['forum_type'] != FORUM_CAT) { $subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false; $subforums[$parent_id][$forum_id]['name'] = $row['forum_name']; $subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time']; $forum_rows[$parent_id]['forum_topics'] += $row['forum_topics']; # #-----[ REPLACE WITH ]----- # else if ($row['forum_type'] != FORUM_CAT) { $subforums[$parent_id][$forum_id]['display'] = ($row['display_on_index']) ? true : false; $subforums[$parent_id][$forum_id]['name'] = $row['forum_name']; $subforums[$parent_id][$forum_id]['orig_forum_last_post_time'] = $row['forum_last_post_time']; $subforums[$parent_id][$forum_id]['is_link'] = $row['forum_type'] == FORUM_LINK; $forum_rows[$parent_id]['forum_topics'] += $row['forum_topics']; # #-----[ FIND ]----- # $subforums_list[] = array( 'link' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id), 'name' => $subforum_row['name'], 'unread' => $subforum_unread, ); # #-----[ REPLACE WITH ]----- # $subforums_list[] = array( 'link' => append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $subforum_id), 'name' => $subforum_row['name'], 'unread' => $subforum_unread, 'is_link' => $subforum_row['is_link'], ); # #-----[ FIND ]----- # $s_subforums_list[] = '<a href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '">' . $subforum['name'] . '</a>'; # #-----[ REPLACE WITH ]----- # $s_subforums_list[] = '<a ' . ($subforum['is_link'] ? 'onclick="window.open(this.href); return false" ' : '') . 'href="' . $subforum['link'] . '" class="subforum ' . (($subforum['unread']) ? 'unread' : 'read') . '">' . $subforum['name'] . '</a>';
該怎麼處理呢!?


