[RC1] Full Syndication Suite 1.0.RC1 (RSS/ATOM)

MOD Authors: Discuss and post updates on new MODs in development for phpBB3, Receive feedback and Feature requests for MODs in development.

To submit your MOD or style, go to the STG MOD Manager
Forum rules
go to the STG MOD Manager to post your MOD in development.
Discuss and receive feedback for any MOD in development for phpBB3.
Suggest features for MODs in development.

No Support or MOD Requests
-- exceptions for MODs only posted here as Beta or Alpha.
Support requests for a MOD should be requested in the respective MOD topic.

[RC1] Full Syndication Suite 1.0.RC1 (RSS/ATOM)

Postby Tuk » 02 Apr 2007, 19:40

Full Syndication Suite

Latest release: 1.0.RC1

See http://startrekguide.com/community/viewtopic.php?p=59179#p59179 for details and download package.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------

First of all: I realized too late that there already are (planned) implementations of such a MOD. When I discovered this I was already half finished and decided to go on...

My version of this MOD presents the following features:
  • syndication of:
    • topics of complete board
    • posts of complete board
    • a forum's/category's topics (in- or excluding subforums)
    • a forum's/category's posts (in- or excluding subforums)
    • a topic's posts
  • RSS2 and ATOM support (preferred format can be chosen in UCP)
  • admin can globally or per forum enabled or disabled syndication
  • admin can set the number of items displayed in a feed (load related setting)
  • supports display of BBCode

I'm currently doing the last testings and code cleanups and expect to have a public test version available in the middle of this week. The MOD will be fully compliant to phpBB's coding guidelines and will be in the new MODX format.
Last edited by Tuk on 20 Feb 2008, 19:15, edited 11 times in total.
Reason: 0.9.6
"If sharks die, the sea dies" - Andy Cobb, ambassador SHARKPROJECT South Africa
User avatar
Tuk
Supporter
Supporter
 
Posts: 271
Joined: 17 Jul 2006, 11:46
Gender: Male


Re: [DEV] Advanced Syndication MOD

Postby Highway of Life » 02 Apr 2007, 21:03

Awesome Tuk!!
Hey, one less thing I have to do. Grin

Here is my development topic, I didn?t get much done on it, but feel free to take any ideas/feature requests for your own.
Can?t wait to see it!! Yahoo
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [DEV] Advanced Syndication MOD

Postby Tuk » 03 Apr 2007, 11:33

Ok, so here we go Wink.

The first version is available in SVN. You can browse the files or download an archive. The features are as listed above.

There are still some things to do:
  • support for ATOM is still missing, currently only RSS2 is implemented. I want to get the overall code basis finished first, before concentrating on ATOM (should be a small effort though as I only have to add a new template file). I'm undecided whether RSS1 would be desirable or can be dropped in favour of RSS2.
  • One major problem is access to private forums. The problem here is that the feed reader is in need of a own session id and needs to store phpBB's cookie in order to authenticate against phpBB. I'm not yet sure how to solve this but I'll think about it Smile.
    Edit: Just had an idea which seams reasonable. I'll try to include this feature in the next version Smile.

Please let me know what you think about this MOD, possible features you would like to see, and of course any errors you experience.
I hope I didn't forget anything in the installation file Glare.

valid-rss.png
valid-rss.png (1.49 KiB) Viewed 4522 times
"If sharks die, the sea dies" - Andy Cobb, ambassador SHARKPROJECT South Africa
User avatar
Tuk
Supporter
Supporter
 
Posts: 271
Joined: 17 Jul 2006, 11:46
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby hurry » 03 Apr 2007, 14:09

Errors:
I did everything right. Except that there is a duplicate change in the first and third in the includes/acp/acp_forums.php.

[phpBB Debug] PHP Notice: in file /adm/index.php on line 299: Undefined index: enable_syndication
[phpBB Debug] PHP Notice: in file /adm/index.php on line 300: Undefined index: enable_syndication
[phpBB Debug] PHP Notice: in file /adm/index.php on line 156: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 158: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 159: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)
[phpBB Debug] PHP Notice: in file /adm/index.php on line 160: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3264)

Please help.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby hurry » 03 Apr 2007, 14:12

When I tried to activate syndication I got:

General Error
SQL ERROR [ mysql4 ]

Duplicate entry 'enable_syndication' for key 1 [1062]

SQL

INSERT INTO phpbb_config (config_name, config_value, is_dynamic) VALUES ('enable_syndication', 1, 0)

BACKTRACE

FILE: includes/db/mysql.php
LINE: 132
CALL: dbal_mysql->sql_error()

FILE: includes/functions.php
LINE: 132
CALL: dbal_mysql->sql_query()

FILE: includes/acp/acp_board.php
LINE: 394
CALL: set_config()

FILE: includes/functions_module.php
LINE: 460
CALL: acp_board->main()

FILE: adm/index.php
LINE: 83
CALL: p_master->load_active()
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby hurry » 03 Apr 2007, 14:20

When I load http://mysite.com/generate_feed.php in the brwoser after installation, I get the error: This script has been called incorrectly. How do I use this mod?
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby Highway of Life » 03 Apr 2007, 14:21

Hmm... try clearing your cache directory (all files except for .htaccess).

You have already installed it, so that?s why you got the duplicate entry for the config table.
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

Re: [DEV] Advanced Syndication MOD

Postby hurry » 03 Apr 2007, 14:37

Ok I cleared it. No errors now. I don't what to do now or how to use it. I switched on Topics and Forums syndication in the Board Features. I can't see any other settings anywhere. Where is my RSS feed and how to use it? I tried the forums and topic pages but could not see anything. Thanks.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby Tuk » 03 Apr 2007, 14:55

The feeds are not displayed within the forum. There is no link to it displayed directly in the template.
Instead, you should see a icon in your browser showing that there is a feed present on index.php, viewforum.php and viewtopic.php. See the screenshot I attached.

It quite easy to check whether this is a problem with the MOD or your browser. When you go to http://www.phpbb.com/community/, can you see such an icon in your browser?

I'll add an instruction to clear the cache after installation, this will solve the problem to experienced.

Edit: You may also have to manually delete "cache/tpl_prosilver_overall_header.html.php", depending on you board's configuration.
Attachments
feeds.jpg
"If sharks die, the sea dies" - Andy Cobb, ambassador SHARKPROJECT South Africa
User avatar
Tuk
Supporter
Supporter
 
Posts: 271
Joined: 17 Jul 2006, 11:46
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby hurry » 03 Apr 2007, 20:10

Ok, when I click the browser icon, it gives me this error:

Code: Select all
XML Parsing Error: no element found
Location: http://mysite.com/generate_feed.php?mode=global_posts&sub=1
Line Number 1, Column 1:
^

Message

XML Parsing error: syntax error
Explanation

Your feed is not well formed according to the XML specification. All feeds should be well-formed XML.


and does not show the feeds.

(1) Does it show the full text of the posts? I want it to show the full post text with the bbcode?
(2) Can we exclude specific forum(s) from the full forum post and topic RSS feed?
(3) How do we change the number of items in the RSS feed?
(4) Does it parse custom bbcodes?
(5) And lastly, please help me with the above error. Confused I don't know where that ^ character actually is. Thanks.
Last edited by hurry on 03 Apr 2007, 21:36, edited 1 time in total.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Next

Return to MODs in Development

Who is online

Users browsing this forum: No registered users and 11 guests