關於 RSS Feed 2.0 v1.2.1 (RSS 消息來源) "跳過權限"

phpBB 3 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群譯文組

版面規則
請注意!您的提問必須遵守發問格式,違者砍文。
主題已鎖定
頭像
rex
版面管理員
版面管理員
文章: 501
註冊時間: 2001-11-01 15:28
來自: 竹貓星球
聯繫:

關於 RSS Feed 2.0 v1.2.1 (RSS 消息來源) "跳過權限"

文章 rex »

●主機作業系統:Linux
●安裝的外掛程式:RSS Feed 2.0 v1.2.1
●phpBB 版本:phpBB 3.0.8
●phpBB 連結網址: http://phpbb-tw.net/phpbb/

安裝此外掛後發現點選啟用 "跳過權限"(Skip permissions) 功能後,此功能似乎並未啟動。
尋找相關資料後取得解決方式如下:

代碼: 選擇全部

#
#---- [OPEN] ----
#
root/rss.php
#
#---- [FIND] ----
#
         // If the forum is locked, skip it...
         if ( $forum_rows['forum_status'] == ITEM_LOCKED || $forum_rows['forum_id'] == $row['forum_id'] || !$auth->acl_get('f_list', $forum_rows['forum_id']))
         {
            continue;
         }
#
#---- [REPLACE WITH] ----
#
         // If the forum is locked, skip it...
         if ( $forum_rows['forum_status'] == ITEM_LOCKED || $forum_rows['forum_id'] == $row['forum_id'] )
         {
            continue;
         }

         // Getting authentication
         if ( !$config['rss_permissions'] && (!$auth->acl_get('f_read', $forum_rows['forum_id']) || !$auth->acl_get('f_list', $forum_rows['forum_id'])) )
         {
            continue;
         }
#
#---- [FIND] ----
#
         // Exclude forums the user is not able to read
         if ( !$auth->acl_get('f_list', $forum_data['forum_id']) )
         {
            $this->excluded_forums_ary[] = (int) $forum_data['forum_id'];
            continue;
         }
#
#---- [REPLACE WITH] ----
#
         // Getting authentication
         if ( !$config['rss_permissions'] && (!$auth->acl_get('f_read', $forum_data['forum_id']) || !$auth->acl_get('f_list', $forum_data['forum_id'])) )
         {
            $this->excluded_forums_ary[] = (int) $forum_data['forum_id'];
            continue;
         }
原文出處請見:
http://www.phpbb.com/customise/db/mod/r ... um-t_88993
全面支援 phpBB3.3.x 版本虛擬空間

台灣[不限流量]虛擬主機
*可自由調整php 版本。
*免費 SSL 簽章。
https://kukan.tw/
主題已鎖定

回到「[3.0.x] 外掛問題討論」