[MOD] RSS 2.0 and Atom 0.3 Feed for phpBB

[url=http://www.phpbbturkey.com/mods.html:34cnv4ga]phpBB 2.0.x MOD Veritabanımızda[/url:34cnv4ga] yayınlanan ve tarafınızca eklenen tüm yeni phpBB 2.0.x sürümleri için MODların duyuruları buradan yapılmaktadır. MODlar hakkında ihtiyacınız olan desteği lütfen [b:34cnv4ga]2.0.x MOD Destek[/b:34cnv4ga] forumuna başlık açarak sorunuz.
Kilitli
ueaydin
Kayıtlı Kullanıcı
Mesajlar: 6
Kayıt: 13.12.2006, 06:59
İletişim:

[MOD] RSS 2.0 and Atom 0.3 Feed for phpBB

Mesaj gönderen ueaydin »

Aslında bu işlerden pek anlamam ama forum için araken kurulumu çok kolay rss modunu buldum.Kurum sırasnda hiç bir değişiklik gerekmemesi ve türkçe karakter göstermesi hoşuma gitti.
Downlaod : http://www.phpbbhacks.com/download/4454

Denemek isterseniz : http://www.novaracing.net/rss.php adresinden test edebilirsiniz.

Kod: Tümünü seç

##############################################################
## MOD Title: RSS Feed
## MOD Author: chyduskam < chuduskam@debilarius.ru > (Egor Naklonyaeff) N/A
## MOD Description: Post-centric forum syndication using RSS
## MOD Version: 2.2.4
##
## Installation Level: Easy
## Installation Time: 2 Minute
## Files To Edit: n/a
## Included Files: rss.php,rss_config.php, rss_functions.php, rss.xsl,
##				   rss_body.tpl, atom_body.tpl
##############################################################
## 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:
## Mod Features:
## Support HTTP headers: If-Modified-Since and If-None-Match,
## gzip compression,WWW-Authenticate for private forums,
## RSS 2.0 and Atom 0.3 formats,
## Last Visit MOD and Who Viewed topic Mod
## Special thanks to Xpert for his help while developing this mod.
##
## For URL's the following arguments may be optionally passed (as applicable):
##
## f=x - forum id. Use data only from this forum to output RSS.
## t=1 - only new topics (first messages in topic). Default - 0.
## c=x - feed items count. If omitted, the value of DEFAULT_ITEMS constant (defined in mod's code) will be used. Admin can limit the maximal possible value of x by setting MAX_ITEMS constant at the beginning of mod's code.
## topic=x - view topic 'x' only
## nolimit - turn off "If-Modified-Since" record limit (by default)
## styled - use XSLT style for RSS feed
## atom - generate atom 0.3 feed instead of rss 2.0
## login - turn WWW-Authenticate on. May not work on some hosts.
## uid=x - set user id for WWW-Authenticate. Use it instead of "login" for Opera or Mozilla for cyrillic nicknames. You could than use any text for login but correct password in dialog box.
## Examples of Usage and Syntax:
## rss.php
## Last 25 or less messages from public forums
## rss.php?login&atom
## Last 25 records from allowed forums in Atom 0.3 format
## rss.php?login&f=1&c=10
## Last 10 records from private forum number 1
##
## Fine tuning
##
## You will be able to configure this MOD by setting some constants at rss_config.php.
##
## If you use MOD Last visit [2.0.10/EM] http://mods.db9.dk/
## change define('LV_MOD_INSTALLED',false); to define('LV_MOD_INSTALLED',true);
##
## To reduce server's payload on huge and large forums this mod uses only records from last 2 week by default.
## (see MAX_WEEKS_AGO constant comments in mod's code)
##
## On some Apache servers PHP is running as CGI, meaning that Apache variables
## $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] are empty,
## and the credentials are not transmitted to the script.
##
## In this case you can try to modify the .htaccess file and add following text:
##
## <IfModule mod_rewrite.c>
##	RewriteEngine on
## 	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
## </IfModule>
##
## This directive states, if mod_rewrite is available, that credentials get from
## the HTTP header Authorization are put into the $_SERVER['REMOTE_USER'] variable.
##
## More info @ http://naklon.info/rss/about.htm
##############################################################
## MOD History:
##
##   2005-11-23 - Version 2.2.4
##   Changed files: rss_functions.php
##   - update to phpBB 2.0.18 code
##   - clear temporary rss session after exit
##   - add ìemory usage value to page stats
##   2005-04-16 - Version 2.2.3
##   Changed files: rss.php, rss_functions.php
##   - update to phpBB 2.0.14 code
##   - add new key 'topic'
##   2005-03-25 - Version 2.2.2
##   Changed files: rss.php, rss_config.php
##   - minor fix, cosmetic only
##   2005-03-10 - Version 2.2.1
##   Changed files: rss.php,rss_functions.php, rss.xsl
##   - formating post data in RSS using user preference
##   - phpBB languages auto detect and set in RSS
##   - some fix in code  
##   2005-03-04 - Version 2.2.0
##    Changed files: rss.php, rss.xsl
##    New files: rss_config.php, rss_functions.php
##   - Split code in 3 files for future Add-On
##   - Add Page Generation time MOD by Smartor support
##   - WWW-Authorization now is work then PHP is installed as CGI
##   - Fix HTTP headers "304 OK" then PHP is installed as CGI
##   - English and Russian languages support in XSLT transformation
##   2005-02-04 - Version 2.1.4
##	  Changed files: rss.php, rss.xsl, rss_body.tpl
##    - Fix compatibility with PHP 3.0
##	  - Include new key 'styled'
##	  - Fix problem with non-ascii chars in message
##	  - Optimise some SQL
##	  - Allow/disallow login using cookie (Allow by default)
##	  - Admin can disallow any forum for syndication
##   2005-01-15 - Version 2.1.3
##       - Fix compatibility with PHP 4.0-4.3 by exclude using html_entity_decode function in MOD
##   2005-01-14 - Version 2.1.2
##       - Fix bug with non well-formed XML then use '&' char in title
##	  - Fix bug with f- key for Admin
##	  - Fix bug in RSS Autodiscovery Add-On
##   2005-01-12 - Version 2.1.0
##       - Some fix
##	  - Allow cache
##   2005-01-09 - Version 2.0.1
##       - Add time limit for RSS posts
##   2005-01-08 - Version 2.0.0
##	 - All code is rewrited and speed up in 2 or more times
##	 - Support users ban list
##       - some bugs fixed.
##   2004-12-19 - Version 1.1.0
##      - Support for Last Visit Mod and Who viewed a topic Mod
##        Support Auth from Opera and Mozilla with Russian nicknames. Use uid=number
##	  in command string nor login ant type any english login
##   2004-11-05 - Version 1.0.5
##      - gzip now use settings from phpBB, some minor fix
##   2004-11-03 - Version 1.0.4
##      - some minore changes in feeds and programs.
##   2004-10-26 - Version 1.0.3
##      - add atom 0.3 support. Use rss.php?atom to get atom feed
##   2004-10-24 - Version 1.0.2
##      - initial release of this modified iteration of the "RSS Content Syndicator" MOD
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ COPY ]------------------------------------------
#
copy rss.php to rss.php
copy includes/rss_config.php to includes/rss_config.php
copy includes/rss_functions.php to includes/rss_functions.php
copy templates/rss.xsl to templates/rss.xsl
copy templates/subSilver/rss_body.tpl to templates/subSilver/rss_body.tpl
copy templates/subSilver/atom_body.tpl to templates/subSilver/atom_body.tpl
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
fatihbaz

Mesaj gönderen fatihbaz »

bende bu rss yi hiç bilmiyorum :D ne işe yarıyor bu :roll:
Kullanıcı avatarı
RefreSh
Kayıtlı Kullanıcı
Mesajlar: 728
Kayıt: 03.10.2006, 22:40
İletişim:

Mesaj gönderen RefreSh »

RSS NEDİR?
RSS çeşitli internet siteleri tarafından yayınlanan haber vb. içeriğin tek bir ortamdan topluca izlenebilmesine olanak sağlayan yeni bir içerik besleme yöntemidir. RSS – Real Simple Syndication, RDF Site Summary veya Rich Site Summary (Zengin Site Özeti) kelimelerinin baş harflerinden oluşan kısaltmadır. XML biçiminde olan RSS dosyaları ilk olarak NetScape firması tarafından geliştirilmeye başlanmıştır. RSS dosyalarının kullanımı her geçen gün artarak yaygınlaşmaktadır.
RSS yöntemini destekleyen sistelerin hazırladıkları XML biçimli dosyalara bir çok programla erişmek mümkündür. XML okuyucusu olan bu programlar, web gezgini veya e-posta istemcisi olabileceği gibi sadece RSS içereriği izlemek için hazırlanan masaüstü programları da olabilir.

RSS ikonunu ([ resmi görüntülemek için tıklayın ]) gördüğünüz herhangi bir yerde, RSS verilerini RSS istemcinizi kullanarak alabilirsiniz.

Genel olarak, RSS verilerini, XML dosyaları olduğu için Internet Explorer içinden görebilirsiniz. Ancak sayfayı devamlı yenilemek ve RSS verilerini bu şekilde izlemek çok da verimli bir yöntem değildir. Bunun için pek çok insan, bazı RSS istemcileri kullanarak RSS verilerini takip eder. RSS veri "toplayıcıları", RSS verilerini toplamanız ve takip etmeniz için uygun arabirim sunarlar.

-Alıntı-
Kullanıcı avatarı
Dn_35
Kayıtlı Kullanıcı
Mesajlar: 3400
Kayıt: 08.04.2006, 22:02
İletişim:

Mesaj gönderen Dn_35 »

Bir ilave yapayım. yahoo.com arama motoruna kaydolup googlede sitemap.xml yi gösterdiğimiz gibi yahoo yada rss yi gösterip sitemizi indexlemesine yardım edebiliriz.
DoDoKnight
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 29.12.2006, 16:24
İletişim:

Mesaj gönderen DoDoKnight »

ben kurdum gayet güzel fakat bir şey sorucam; Bazı internet sitelerine girdiğimizde (firefoxta) subscribe otomatik olarak çıkıyor ve rss.phpye girmedende siteyi subscribe edebiliyorsunuz ama bu modda öyle birşey olmuyor.subscribe iconu soluk kalıyor sanki sitede rss desteği yokmuş gibi.sadece rss iconuna tıklayınca bookmarkına atıyor.bunu sitenin anasayfasında yada herhangi bir sayfasında yapmanın bi yolu yokmudur?
ueaydin
Kayıtlı Kullanıcı
Mesajlar: 6
Kayıt: 13.12.2006, 06:59
İletişim:

Mesaj gönderen ueaydin »

DoDoKnight yazdı:ben kurdum gayet güzel fakat bir şey sorucam; Bazı internet sitelerine girdiğimizde (firefoxta) subscribe otomatik olarak çıkıyor ve rss.phpye girmedende siteyi subscribe edebiliyorsunuz ama bu modda öyle birşey olmuyor.subscribe iconu soluk kalıyor sanki sitede rss desteği yokmuş gibi.sadece rss iconuna tıklayınca bookmarkına atıyor.bunu sitenin anasayfasında yada herhangi bir sayfasında yapmanın bi yolu yokmudur?
Sanırım onu sayfaya manuel olarak ekliyorsunç.Amin değilim ama aşağıdaki kodlarda içinden çıktı bewlki siteye entegre etmek içindir. Sitenizi yazarsanız sizinkinide incelemek isterim bende ayarlarla oynarken bozdum sanırım. http://www.siteadı.com/rss.php yükleyince ilk kurduğumda son 10 mesajı gösterirken şimdi sadece yeni mesajları gösterir hala geldi :(

Kod: Tümünü seç

############################################################## 
## 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.'" />'."\n"; 
      $rss_link.='<link rel="alternate" type="application/atom+xml" title="Atom" href="'.$rss_url.'?atom&f='.$rss_forum_id.'" />'."\n"; 
} 
else 
{ 
       $rss_link='<link rel="alternate" type="application/rss+xml" title="RSS" href="'.$rss_url.'" />'."\n"; 
      $rss_link.='<link rel="alternate" type="application/atom+xml" title="Atom" href="'.$rss_url.'?atom'.'" />'."\n"; 
} 
// 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

Kod: Tümünü seç

############################################################## 
## 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 
DoDoKnight
Kayıtlı Kullanıcı
Mesajlar: 48
Kayıt: 29.12.2006, 16:24
İletişim:

Mesaj gönderen DoDoKnight »

reklam denmesin diye yazmıyorum ama www'me tıklarsan siteme ulaşırsın sanırım.bir blog scripti var world press diye.onun scriptinde rss desteği hazır geliyor ve ana sayfadayken subscribing yapabiliyorsun hiç rss butonlarına tıklamana gerek kalmıyor.nasıl iştir anlamadım.indexe girildiği zaman veya herhangi sayfada gözükmesi lazım subscribe'ın ama gözükmüyor???
Kilitli

“2.0.x MOD Duyuruları” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 4 misafir