1 頁 (共 1 頁)

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

發表於 : 2011-06-09 18:06
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