Page Index Toggle Pages: 1 2 3 [4] 5 6 ... 8 Send TopicPrint
Very Hot Topic (More than 25 Replies) RSS Feed mod 1.0b7 (Read 56083 times)
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: RSS Feed mod 1.0b6
Reply #45 - Apr 14th, 2004 at 5:15pm
Print Post  
Quote:
Any way to get html formatting to come through in the feed? (i.e., line-breaks and hyper-links would be the most helpful).

Thanks,

Tim




Check out my test feed in the first post again.  I've been able to bring YaBBC formatting into the feed (minus the CSS stuff) so links and images work as they should.  I'll release a new beta with this feature soon.

I built an alpha atom feed and have decided to drop that project.  Turns out that with atom there still needs to be a link to an external site so it doesn't offere any advantages anymore.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: RSS Feed mod 1.0b7
Reply #46 - Apr 14th, 2004 at 5:54pm
Print Post  
<bump for beta 7>

Added YaBBC support so now links, images, smilies, and other YaBBC codes should work in short form post descriptions.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #47 - Apr 14th, 2004 at 8:02pm
Print Post  
Right, got one for you, without me reading all the previous posts, but doing just a quick skim, I can't see what I'm after...

Instead of using the recent posts, is it possible to pass a board name to it, so that I can specify if I want the feed to come from a specific board?

Cheers in advance.
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: RSS Feed mod 1.0b7
Reply #48 - Apr 14th, 2004 at 8:36pm
Print Post  
You can specify which categories to feed but not individual boards.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #49 - Apr 14th, 2004 at 9:45pm
Print Post  
Hmmmm, will you be adding "board" support?
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: RSS Feed mod 1.0b7
Reply #50 - Apr 14th, 2004 at 10:49pm
Print Post  
I'll have to think about it to see if I can work out access right complications.  The reason for using categories is that membergroup access is set at the category level in YaBB and therefore board access is determined based on categories.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #51 - Apr 14th, 2004 at 10:56pm
Print Post  
Surely though if a board admin wants the feed to come from a specific board, it's simplier? less loading so less system resource usage?

I can see the url now...

YaBB.cgi?board=news;action=rss

Cheesy
  
Back to top
 
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #52 - Apr 14th, 2004 at 11:06pm
Print Post  
Just had a look at your code for RSS_Feed, no offence, but it looks like there's way too much in there for what the routine is actually for.

As I said no offence.
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: RSS Feed mod 1.0b7
Reply #53 - Apr 14th, 2004 at 11:37pm
Print Post  
The script for the RSS Feed itself isn't that big, just the RSS_Feed routine.  The biggest block of script in the file is the RSS_Display routine which is pretty much the entire contents of the Display.pl file, slightly modified to strip it down to just the thread minus the headers, navigation and so forth but plus the forum template CSS stuff.  This fits the three pane format of RSS readers a bit better.  The script for the Settings Page is also in there.  Also, the strip_char routine is fairly long.  RSS is much less tolerant of abnormal content than html is so the strip_char routine is needed to convert a bunch of special characters to character codes.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
CDTrips
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 31
Joined: Mar 14th, 2004
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #54 - Apr 14th, 2004 at 11:55pm
Print Post  
This is the best version yet as it supports the Yabb tags.  I just have to figure out how to change the colors of the text inside of a quote box as it is showing up black text on black box in the RSS feed.
  
Back to top
WWW  
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #55 - Apr 15th, 2004 at 6:59am
Print Post  
ironwing wrote on Apr 14th, 2004 at 11:37pm:
The script for the RSS Feed itself isn't that big, just the RSS_Feed routine.  The biggest block of script in the file is the RSS_Display routine which is pretty much the entire contents of the Display.pl file, slightly modified to strip it down to just the thread minus the headers, navigation and so forth but plus the forum template CSS stuff.  This fits the three pane format of RSS readers a bit better.  The script for the Settings Page is also in there.  Also, the strip_char routine is fairly long.  RSS is much less tolerant of abnormal content than html is so the strip_char routine is needed to convert a bunch of special characters to character codes.

Dan


I was referring to the RSS_Feed subroutine itself.
  
Back to top
 
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #56 - Apr 15th, 2004 at 12:53pm
Print Post  
You might want to try this Ironwing Wink

RSS Validator
  
Back to top
 
IP Logged
 
ironwing
God Member
*****
Offline


I love YaBB 1 Gold!

Posts: 2330
Location: Sonoran Desert
Joined: Nov 20th, 2001
Re: RSS Feed mod 1.0b7
Reply #57 - Apr 15th, 2004 at 1:12pm
Print Post  
Quote:
You might want to try this Ironwing Wink

RSS Validator



Yep, I use the validator continuously while tweaking the mod.  The output is valid.

If you have ideas on shrinking the code while producing the same output, have at it.

Dan
  

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Back to top
WWW  
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #58 - Apr 15th, 2004 at 1:28pm
Print Post  
Hmmm when I run it through the validator I get...

This feed does not validate.

Feeds should not be served with the 'text/plain' media type.

Also I noticed you were "using" definitions from another site, I've gone to the RSS v2.0 definations and changed stuff like <dc:subject> to the correct <title> etc.

I'm just trying to get YaBB to put it out as a proper XML format, I suspect it's because of the "print $RSS_feed;" at the end that's stopping this.

  
Back to top
 
IP Logged
 
Stewart Gilray
Full Member
***
Offline


Help me Obi-wan...

Posts: 196
Joined: Jul 9th, 2002
Gender: Male
Re: RSS Feed mod 1.0b7
Reply #59 - Apr 15th, 2004 at 1:30pm
Print Post  
Oh you also missed 2 "weird chars" the UK's £ (pound sign) and an ' apostrephe (sp?)
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 2 3 [4] 5 6 ... 8
Send TopicPrint