##############################################################
## MOD Title: RSS Feed Page Add-On for RSS Feed 2.x
## MOD Author: chyduskam < chuduskam@debilarius.ru > (Egor Naklonyaeff) N/A
## MOD Description: View who read RSS feed online.
## MOD Version: 1.0.2
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 5
## includes/constants.php
## language/lang_english/lang_main.php
## language/lang_russian/lang_main.php
## viewonline.php
## admin/index.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
################################################################
## Author Notes: You must install RSS Feed MOD before use this MOD
################################################################
## MOD History:
##
## 2005-03-25 - Version 1.0.2
## - remove Russian part of code from MOD
## 2005-03-10 - Version 1.0.1
## - change PAGE_RSS code to new value given to phpbbguru.net
## 2005-01-10 - Version 1.0.0
## - initial release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]-------------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]----------------------------------------
#
define('PAGE_TOPIC_OFFSET', 5000);
#
#-----[ AFTER, ADD ]----------------------------------
#
define('PAGE_RSS', -1169); // RSS Feed Mod
#
#-----[ OPEN ]-------------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]----------------------------------------
#
$lang['Viewing_FAQ'] = 'Viewing FAQ';
#
#-----[ AFTER, ADD ]----------------------------------
#
$lang['Viewing_RSS'] = 'RSS feed'; // RSS Feed Mod
#
#-----[ OPEN ]-------------------------------------------------------
#
viewonline.php
#
#-----[ FIND ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ AFTER, ADD ]----------------------------------
#
// Start add - RSS Feed MOD
case PAGE_RSS:
$location = $lang['Viewing_RSS'];
$location_url = "rss.$phpEx";
break;
// End add - RSS Feed MOD
#
#-----[ OPEN ]-------------------------------------------------------
#
admin/index.php
#
#-----[ FIND ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]----------------------------------
#
// Start add - RSS Feed MOD
case PAGE_RSS:
$location = $lang['Viewing_RSS'];
$location_url = "index.$phpEx?pane=right";
break;
// End add - RSS Feed MOD
#
#-----[ FIND ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ AFTER, ADD ]----------------------------------
#
// Start add - RSS Feed MOD
case PAGE_RSS:
$location = $lang['Viewing_RSS'];
$location_url = "index.$phpEx?pane=right";
break;
// End add - RSS Feed MOD
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
##############################################################
## 外掛標題: 為 RSS 飼養 2.x 的 RSS 飼養頁資料片
## 外掛作者: chyduskam < chuduskam@debilarius.ru > (Egor Naklonyaeff) N/A
## 外掛描述: 看誰閱讀 RSS 在線上餵.
## 外掛版本: 1.0.2
##
## Installation Level: 簡單
## Installation Time: 5 Minutes
## Files To Edit: 5
## includes/constants.php
## language/lang_english/lang_main.php
## language/lang_russian/lang_main.php
## viewonline.php
## admin/index.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
################################################################
## Author Notes: You must install RSS Feed MOD before use this MOD
################################################################
## MOD History:
##
## 2005-03-25 - Version 1.0.2
## - remove Russian part of code from MOD
## 2005-03-10 - Version 1.0.1
## - change PAGE_RSS code to new value given to phpbbguru.net
## 2005-01-10 - Version 1.0.0
## - initial release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ 打開 ]-------------------------------------------------------
#
includes/constants.php
#
#-----[ 尋找 ]----------------------------------------
#
define('PAGE_TOPIC_OFFSET', 5000);
#
#-----[ 在,之後增加]----------------------------------
#
define('PAGE_RSS', -1169); // RSS Feed Mod
#
#-----[ 打開 ]-------------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ 尋找 ]----------------------------------------
#
$lang['Viewing_FAQ'] = 'Viewing FAQ';
#
#-----[ 在,之後增加 ]----------------------------------
#
$lang['Viewing_RSS'] = 'RSS feed'; // RSS Feed Mod
#
#-----[ 打開 ]-------------------------------------------------------
#
viewonline.php
#
#-----[ 尋找 ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "faq.$phpEx";
break;
#
#-----[ 在,之後增加 ]----------------------------------
#
// Start add - RSS Feed MOD
case PAGE_RSS:
$location = $lang['Viewing_RSS'];
$location_url = "rss.$phpEx";
break;
// End add - RSS Feed MOD
#
#-----[ 打開 ]-------------------------------------------------------
#
admin/index.php
#
#-----[ 尋找 ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ 在,之後增加 ]----------------------------------
#
// Start add - RSS Feed MOD
case PAGE_RSS:
$location = $lang['Viewing_RSS'];
$location_url = "index.$phpEx?pane=right";
break;
// End add - RSS Feed MOD
#
#-----[ 尋找 ]----------------------------------------
#
case PAGE_FAQ:
$location = $lang['Viewing_FAQ'];
$location_url = "index.$phpEx?pane=right";
break;
#
#-----[ 在,之後增加 ]----------------------------------
#
// Start add - RSS Feed MOD
case PAGE_RSS:
$location = $lang['Viewing_RSS'];
$location_url = "index.$phpEx?pane=right";
break;
// End add - RSS Feed MOD
#
#-----[ 存檔/關閉所有檔案]------------------------------------------
#
# EoM
##############################################################
## MOD Title: RSS Autodiscovery Add-On for RSS Feed 2.x
## MOD Author: chyduskam < chuduskam@debilarius.ru > (Egor Naklonyaeff) N/A
## MOD Description: RSS Autodiscovery using <link> tag in HTTP <head> section
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 3 Minutes
## Files To Edit: 1
## includes/page_header.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Compatible with RSS Feed MOD and RSS Content Syndicator MOD
##############################################################
## MOD History:
##
## 2005-01-14 - Version 1.0.1
## - fix missing quote in string after "else"
## 2005-01-10 - Version 1.0.0
## - initial release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]-------------------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]----------------------------------------
#
//
// Parse and show the overall header.
//
#
#-----[ BEFORE, ADD ]----------------------------------
#
// BEGIN RSS autodiscovery
$rss_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]))? intval($HTTP_GET_VARS[POST_FORUM_URL]): 0;
$rss_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
$rss_script = ( $rss_path != '' ) ? $rss_path . '/rss.' . $phpEx : 'rss.'. $phpEx;
$rss_server_name = trim($board_config['server_name']);
$rss_server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$rss_server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
$rss_url=$rss_server_protocol . $rss_server_name . $rss_server_port . $rss_script;
if($rss_forum_id!=0){
$rss_link='<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$rss_url.'?f='.$rss_forum_id.'" />'."
";
$rss_link.='<link rel="alternate" type="application/atom+xml" title="Atom" href="'.$rss_url.'?atom&f='.$rss_forum_id.'" />'."
";
}
else
{
$rss_link='<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$rss_url.'" />'."
";
$rss_link.='<link rel="alternate" type="application/atom+xml" title="Atom" href="'.$rss_url.'?atom'.'" />'."
";
}
// END RSS autodiscovery
#
#-----[ FIND ]----------------------------------------
#
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
#
#-----[ BEFORE, ADD ]----------------------------------
#
$nav_links_html.=$rss_link; // RSS autodiscovery
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
##############################################################
## 外掛標題: 為 RSS 飼養 2.x 的 RSS Autodiscovery 資料片
## 外掛作者: chyduskam < chuduskam@debilarius.ru > (Egor Naklonyaeff) N/A
## 外掛描述: 使用連結的 RSS Autodiscovery 在 HTTP 頭部分中附以籤條
## MOD Version: 1.0.1
##
## Installation Level: 簡單
## Installation Time: 3 Minutes
## Files To Edit: 1
## includes/page_header.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes: Compatible with RSS Feed MOD and RSS Content Syndicator MOD
##############################################################
## MOD History:
##
## 2005-01-14 - Version 1.0.1
## - fix missing quote in string after "else"
## 2005-01-10 - Version 1.0.0
## - initial release
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ 打開 ]-------------------------------------------------------
#
includes/page_header.php
#
#-----[ 尋找 ]----------------------------------------
#
//
// Parse and show the overall header.
//
#
#-----[ 之前,增加 ]----------------------------------
#
// BEGIN RSS autodiscovery
$rss_forum_id =( isset($HTTP_GET_VARS[POST_FORUM_URL]))? intval($HTTP_GET_VARS[POST_FORUM_URL]): 0;
$rss_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($board_config['script_path']));
$rss_script = ( $rss_path != '' ) ? $rss_path . '/rss.' . $phpEx : 'rss.'. $phpEx;
$rss_server_name = trim($board_config['server_name']);
$rss_server_protocol = ( $board_config['cookie_secure'] ) ? 'https://' : 'http://';
$rss_server_port = ( $board_config['server_port'] <> 80 ) ? ':' . trim($board_config['server_port']) . '/' : '/';
$rss_url=$rss_server_protocol . $rss_server_name . $rss_server_port . $rss_script;
if($rss_forum_id!=0){
$rss_link='<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$rss_url.'?f='.$rss_forum_id.'" />'."
";
$rss_link.='<link rel="alternate" type="application/atom+xml" title="Atom" href="'.$rss_url.'?atom&f='.$rss_forum_id.'" />'."
";
}
else
{
$rss_link='<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$rss_url.'" />'."
";
$rss_link.='<link rel="alternate" type="application/atom+xml" title="Atom" href="'.$rss_url.'?atom'.'" />'."
";
}
// END RSS autodiscovery
#
#-----[ 尋找 ]----------------------------------------
#
//
// The following assigns all _common_ variables that may be used at any point
// in a template.
#
#-----[ 之前,增加 ]----------------------------------
#
$nav_links_html.=$rss_link; // RSS autodiscovery
#
#-----[ 存檔/關閉所有檔案]------------------------------------------
#
# EoM