[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.

Re: [DEV] Advanced Syndication MOD

Postby Mickroz » 04 Apr 2007, 17:39

installed it and got no errors,this is nice m8!! im gonna use this mod for sure!!
Forumer (n). 1) One who runs a forum or is an active member of one or more web forums.
Mickroz    
Supporter
Supporter
 
Posts: 263
Joined: 02 Feb 2007, 20:19
Location: The Netherlands
Favorite Team: Feyenoord
Gender: Male
phpBB Knowledge: 7




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: [DEV] Advanced Syndication MOD

Postby hurry » 04 Apr 2007, 23:38

I reuploaded all the new files and made all the new changes but still it does not work for prosilver Sad. I tried the subSilver and made the changes and voila it works for subSilver which is style=1. You can check. So you are right, it is a template problem. Please solve this for me. Beg I don't want to go back subSilver and I want you advanced RSS syndication.

I have got Beta 5 (no CVS) with proSilver which was uploaded here. Since it is works with the a fresh install of ProSilver, maybe it is some minor changes I have done to ProSilver like putting the Jump to, View Unanswered topics, Bookmarks etc on the top I guess. I will try removing them one by one and let you know. But I have done almost the same changes to subSilver too and it works for subSilver. It will be so kind of you to make an optional MOD with echo so that this template problem will not be there. Thanks so much Tuk.

Edit: If you can give an option for me in the generate_feed to take the style=1 (subSilver) as default instead of the prosilver (even when someone is browsing the prosilver style) while generating the feeds then it should also solve the problem because RSS feeds anyway do not have styles.
Last edited by hurry on 05 Apr 2007, 01:02, edited 1 time in total.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby hurry » 04 Apr 2007, 23:58

The generated feeds in my subSilver style do not keep the line breaks of the original posts. So it shows whole jumbled up paragraphs of the individual posts. Please include the line breaks parsing.

Also my custom bbcodes like youtube and google videos are totally removed from the RSS feed. So please include the object and embed tag parsing for flash objects also in the RSS feed if possible. It may be optional if required. Thanks.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby Tuk » 05 Apr 2007, 06:37

Linebreaks issue is fixed, thanks. I fixed the display of HTML in general, although it seems to be dependent on your feed reader what elements are displayed. Images, center BBcode, spoiler BBCode and background-color BBCode are all working fine. Youtube videos, however, are at least not displayed in my feadreaders (tested with Firefox, Akregator and liferea).
But HTML is now embedded properly according to established standards Smile. I compared the result with other feeds I read and it's the same there. So this is all I can do about it I guess. If somebody knows a feed that does display youtube videos correctly, please let me know and I'll take a look at it.

PS: Next release will include ATOM support and hopefully also private feeds via HTTP AUTH.

Edit: About the style issue: You could just change all links to the feed in functions.php and add "&style=1"
For example,
Code: Select all
append_sid("{$phpbb_root_path}generate_feed.$phpEx", "f=$forum_id&content=topics"),

would have to be
Code: Select all
append_sid("{$phpbb_root_path}generate_feed.$phpEx", "f=$forum_id&content=topics&style=1"),

The same applies to create_syndication.php. Otherwise, I would recommend waiting for RC1 fixing this issue or upgrade to CVS. You really shouldn't use prosilver with Beta 5 anyway Wink.
"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 » 05 Apr 2007, 07:09

Where do I get the new files with the changes for the line breaks bug etc.? I tried downloading 0.0.2a again but it does not show the line breaks. Thanks. I have not checked it but I hope the posts in the moderation queue which have not been approved will not show up in the RSS feed.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby Tuk » 05 Apr 2007, 07:44

It's not yet published. I will make the fix available in the next release, which will be as soon as I finish the private feeds. And that should be soon Wink.
"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 Tuk » 05 Apr 2007, 10:01

New release: 0.0.3a
That's a pretty fast development Tongue.

New feature: Support for ATOM added.
You can change your preferred format in the UCP, RSS1 has been dropped.

New feature: Authentication for private feeds via HTTP AUTH Cool.

When creating a feed, your session as a user is still present and allows you to view the private feed a guest would not be allowed to see. But your feed reader doesn't have your session id and therefore always requests the feed as a guest. If the feed reader now submits a forum id he isn't allowed to access, a login prompt appears.
The attachment authentification.jpg is no longer available

You can login with your regular username and password. Afterwards, you can view the feed. If the login fails, the feed will not be shown.
This requires your feed reader to support HTTP AUTH which is mostly the case.

If you are viewing a feed directly in your browser, it will be no problem, HTTP AUTH is always supported. Other feed readers (liferea in this case) provide an option for this when adding the feed:
The attachment liferea.jpg is no longer available

Another possibility, which is used by Akregator, is that you have to add username:password to the URL.
You'll have to read up in your feed reader's documentation, if and how HTTP AUTH is supported in your case.

Changelog:
  • Trigger an error when creating a feed while syndication is disabled.
  • Added missing language string.
  • Fixed typos in functions.php and create_syndication.php.
  • Fixed wrong generation of source links.
  • Fixed display of linebreaks and html in feeds.
  • Added support for ATOM, dropped RSS1.
  • Added feature to access private feeds via basic HTTP AUTH.

Changed files:
  • create_syndication.php
  • generate_feed.php
  • styles/prosilver/template/syndication_rss2.html
  • new file: styles/prosilver/template/syndication_atom.html
  • includes/functions.php
  • styles/prosilver/template/ucp_prefs_personal.html
  • language/en/ucp.php
  • language/en/common.php
  • language/en/mods/syndication.php

Todo/ideas:
  • caching: I'm thinking about caching the feed to reduce load. But on the other side, there are countless different feeds that can be created, so it is doubtful if caching really makes sense. My favorite solution right now is to just cache the result of the SQL queries for about 5 minutes. This would also not require any significant code changes.
  • permissions: With now having the possibility to identify a user via HTTP AUTH, I plan to add a forum based permission f_syndication. This would allow the administrators to disable syndication for guest or specific users/groups and not anymore having to disable it for a complete forum.
Attachments
liferea.jpg
authentification.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 » 05 Apr 2007, 10:03

If somebody knows a feed that does display youtube videos correctly, please let me know and I'll take a look at it.


Please check all that the RSS feeds on youtube.com have inline video in the RSS feed items which plays even on RSS feed readers like Grazr. Thanks. I will try out the html compatibility once your new version is released.
hurry
Lieutenant
Lieutenant
 
Posts: 202
Joined: 09 Mar 2007, 12:26
Gender: Male

Re: [DEV] Advanced Syndication MOD

Postby Tuk » 05 Apr 2007, 10:08

I already found out how it works Wink. You need an extra tag in the XML file to specify any object like audio or video files. The HTML code for the object needs to be removed from the original message and put into this tag. I'll see if I can do this.
"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 » 05 Apr 2007, 10:12

Hey Tuk!

Good to see you again... been watching this topic with high interest.
We?ll install it here on STG and see how it works.
Just have to do some updates first, will let you know how it goes. Hello
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

PreviousNext

Return to MODs in Development

Who is online

Users browsing this forum: No registered users and 11 guests