The BoardMod Project
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum
BoardMod Support Forum
[ Home | Help | Search | Login | Register ]  

22.05.13 at 08:07:55, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 2 3 ... 8
RSS Feed mod 1.0b7 (Read 17812 times)
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



31.03.04 at 00:18:14  
Here is beta 7 of the RSS Feed mod that creates an RSS Feed for a forum's most recent posts.

Link removed, RSS Feed 1.0 is now in mod database



You can try out a feed here, using an RSS Reader:

http://www.mineralarts.com/cgi/yabbsp1/YaBB.pl?action=rss


If you are upgrading from 1.0b6 just replace your RSS_Display.pl and RSSFeedHelp.html files.

If you have previously installed any other 1.0 beta you will need to uninstall/reinstall.

Please report bugs here.

Dan

« Last Edit: 21.06.04 at 15:27:34 by ironwing »  
IP Logged
 

aim.gif (0 KB | 106 )
aim.gif

Please include your forum address in all requests for assistance.  It greatly speeds things along.
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #1 - 31.03.04 at 01:09:57  
It appears to be working great.   I just need to figure out how to change the text color as it is making it the same color as my BG color.

My BG is black and so is the text.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #2 - 31.03.04 at 01:21:17  
Yeah,  I haven't decided how I'm going to handle that.  For right now you could edit the RSS_Display.pl file, find this line:

Code:

$yymain .= qq~Content-type: text/html\n\n


and add the CSS definitions from your template right after it.

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #3 - 31.03.04 at 01:40:00  
Ok, I added the CSS styles from the default template and it works and looks just great.

Great MOD!!
« Last Edit: 31.03.04 at 02:01:10 by CDTrips »  
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #4 - 31.03.04 at 03:05:45  
OK, I use MYHTPC and it works fine but when I downloaded SharpReader I get the following error.

Error parsing RSS XML: The '-' character, hexadecimal value 0x2D, cannot begin with a name. Line 5, position 11.
Please try to validate this feed. If this feed validates as correct RSS, you can send an error report.

http://www.godzlikeus.com/cgi-bin/yabb/YaBB.cgi?action=rss

I re-uploaded the default rss_display.pl and the same thing.

Any Ideas?

Your link works fine though.
« Last Edit: 31.03.04 at 03:22:16 by CDTrips »  
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #5 - 31.03.04 at 03:42:08  
WOW, using a validator I was able to determine that it did not like the "<-" in my forum name which was <-gLu-> Clan Forums.  Renamed to gLu Clan Forum and got past that error.

It also did not like the -6:00 in the time offset field or any variation thereof, had to leave that blank to get past that error. (FIGURED THIS ONE OUT: LEFT OUT THE FIRST 0)

It also does not like it when there are 2 spaces between words like such
"This  is cool".  It would not validate this.  When making a new post someone accidentally had two spaces in the title of the post. This error only occurred when it was in the title of a post. I removed the extra one and I got past this error.

This is the validator I was using.
http://rss.scripting.com/

I hope this info helps you to troubleshoot this mod.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #6 - 31.03.04 at 04:07:05  
Thanks,  that two space thing is going to need attention for sure.

I have figured out how to pull the template into the RSS_Display.pl file.  It now parses the template, taking everything between the opening <html> tag and the <body ....> tag and inserting that into the RSS view so you shouldn't have to mess with the CSS stuff anymore.  I've attached the new file to this post.  I've tagged it as beta 1.0b2.1 as I'll release beta 3 when I work out some of the problems you've mentioned above.

I'll clarify the time offset instructions further in the mod file so folks know to use the leading 0.  As I wrote in the mod info section the Time module used by YaBB overrides the gmtime function so I can't calculate the offset automatically.  There is supposed to be a gmctime function which pulls GMT time in a scalar format but when I tried it it still spit out the full formatted time string.   Tongue

Dan
 
IP Logged
 

RSS_Display_pl.txt (17 KB | 122 )

Please include your forum address in all requests for assistance.  It greatly speeds things along.
caliman
Hacker God
*****
Offline

Pt. Richmond, California, USA
Posts: 1220



Reply #7 - 31.03.04 at 04:10:13  
I'd be curious to see this in action, but your URL in the 1st post doesn't work - comes up blank, FYI.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #8 - 31.03.04 at 04:12:46  
caliman wrote on 31.03.04 at 04:10:13:
I'd be curious to see this in action, but your URL in the 1st post doesn't work - comes up blank, FYI.


You need to look at it in a RSS Reader, not a regular browser.  It is built on xml not html.

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #9 - 31.03.04 at 04:18:09  
Also, I'd like imput on what folks would like to see in the item descriptions.  Right now it shows the thread title, initial poster, last poster.  The last post date shows in the date column (depends on reader I guess).  Grabbing the first few words of the actual post would be nice but also a lot more work than I want to take on (unless I can raid an existing mod for code of course, hmmmm).

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #10 - 31.03.04 at 04:29:44  
That worked great.  I think the time info you have there is fine, it is just that I am used to it being as such (-5:00), to smart for my own good and didn't read as well as I should have the first time.

As to the description I would just add what board the post is in and the time of the last post.  That should be enough for that.

Good work.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #11 - 31.03.04 at 04:52:51  
I shouldn't be so negative.  It turned out the code I needed to create the message summaries was already pretty much written for me.  I used the headlines mod as the starting point for the code in the Subs.pl file and the trunctation script was already there but for another purpose.

I'll add the board title as you suggested.  How much formatting is allowed in the description field?  I'd like to make the description look a bit more organized than a comma separated list.

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
caliman
Hacker God
*****
Offline

Pt. Richmond, California, USA
Posts: 1220



Reply #12 - 31.03.04 at 07:26:24  
ironwing wrote on 31.03.04 at 04:12:46:
You need to look at it in a RSS Reader, not a regular browser.  It is built on xml not html.

Dan


Doh. Guess I don't know what you guys are up to here, newsfeeds caught my eye. I'll look into it.
 
IP Logged
 
Pinnacle
Bloody Novice
*
Offline

London UK, United Kingdom
Posts: 15



Reply #13 - 31.03.04 at 09:27:40  
I have just installed and configured this mod, but I think there is a problem unless it's me? I have Enable HTML installed so I can post HTML code but
When I look at the RSS feed in a RSS Feed Reader I can see all the code instead of just the posting?

Is this correct?
 
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #14 - 31.03.04 at 17:30:42  
I do not know about the formatting of the desricption field but I will check around.  From other feeds they have always been pretty bland.
 
IP Logged
 
Pages: 1 2 3 ... 8
© 2000-2012 by - All rights reserved.

Project website hosting proudly sponsored and provided by UK2 Hosting
 The Project | News | Downloads | Mods | FAQ | Templates | Chat | Forum