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

23.05.13 at 13:10:32, Welcome, Guest. Please Login or Register

Choose Language:
Pages: 1 
RSS Feed mod 1.0b7 (Read 17839 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
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #15 - 31.03.04 at 18:00:33  
@Pinnacle:  Since this mod uses its own version of the display routine it makes sense that the Enable HTML mod won't work.  You might try manually adding the Enable HTML code to the RSS_Display.pl file.  I would hold off for a day or two though for the next beta which fixes some problems.

@CDTrips:  I worked out how to remove extra spaces so that will be fixed in the next beta.  Turned out to be a lot more work than I anticipated.  There are all sorts of blank characters that count as spaces and annoy the validators.

Next, I'm working on using user display names instead of usernames.

Dan
 
IP Logged
 

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

Las Vegas, Nevada, USA
Posts: 799



Reply #16 - 31.03.04 at 23:38:37  
Looks pretty good man.  I tried it in my browser first but I just missed it was RSS.  But I have an rss reader running and got your few messages.

Looks cool.

-Jazhawk
 
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #17 - 01.04.04 at 01:27:33  
I guess the formatting can be pretty extensive if you want it to be.

Check this one out in your reader.  Has his own logo and everything inserted before the Feed and Title.

http://www.hutteman.com/weblog/rss.xml

He added the logo with this code within the channel info.

- <image>
 <title>public virtual MemoryStream</title>
 <url>http://www.hutteman.com/pvm.png</url>;
 <link>http://www.hutteman.com/weblog/</link>;
 <width>88</width>
 <height>31</height>
 <description>Luke Hutteman on Java, .NET, J2EE, RSS and whatever else comes to mind...</description>
 </image>
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #18 - 01.04.04 at 04:17:50  
<bump for 1.0beta4, see first post>

Updates in beta 4:
  • Moved RSS routine out of Subs.pl and into RSS_Display.pl.
  • Fixed validation problems with weird characters.
  • Uses Display Names instead of usernames for post authors.
  • Added Feed logo.
  • Added post summaries.
  • Added Author and Board fields.
  • Simplified post description.


I tested this beta on the SharpReader RSS reader.  If you use a different reader I'd like to know how the new beta is working.  Please test the RSS Feed in the first post.  Thanks.


Dan
« Last Edit: 01.04.04 at 14:12:45 by ironwing »  
IP Logged
 

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

Posts: 31



Reply #19 - 01.04.04 at 17:04:51  
I do not know if it matters in the overall scheme of things or not as the latest version works great and I like the logo portion, however using the validator I posted previously I am still getting validation errors in the following fields;

1.  Undefined item element: date  19 0
2.  Undefined item element: creator  20 0
3.  Undefined item element: subject  21 0
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #20 - 01.04.04 at 17:20:24  
The rss.scripting.com validator doesn't like the Dublin Core ( dc: ) library which the mod calls.  Other validators I tried don't object to this.  I tried some other rss feeds from popular sites with the rss.scripting.com validator and it doesn't like very many of them but they still work fine in the reader.   Undecided

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 #21 - 01.04.04 at 17:53:35  
@CDTrips:

Try your board named <-gLu-> again using the version of the RSS_Display.pl file attached to this post (assuming you have already installed beta 4).  I added some more filters that should fix the problem you are having with the invalid characters in the board name.  I added similar filters to all the user and admin inputs so hopefully that should take care of some of the invalid character problems.

I still have a problem with non-english characters like á and ñ.  I'm not sure how I'm going to fix those.

Dan

Edit: removed file attchment as new beta out.
« Last Edit: 03.04.04 at 05:43:50 by ironwing »  
IP Logged
 

home.gif (0 KB | 90 )
home.gif

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

Posts: 31



Reply #22 - 01.04.04 at 18:41:48  
Great, I will try it as soon as I get home.

FYI... I did not know if you had Member Level Access boards on your forum or not to test this, but I have boards that only certain mebers can see and they do not show up in the reader.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #23 - 01.04.04 at 20:49:34  
I took care of the non-english character problems and updated the file attached to my last post.  Now the following characters will work without annoying the RSS reader:

Quote:
Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ


If anyone notices that their favorite letter is missing from the list and wants to see it added, please let me know the letter and the html character code that goes with it.  Thanks.
 
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #24 - 01.04.04 at 21:07:14  
I posted this in another section of the board...
Quote:
Well, I installed the mod and it doesn't seem to work... My aggregator tries to access the rss, but quits after it doesn't find anything.
 
One question... Could it have anything to do with the fact that my path is www.mysite.com/cgi-bin/community/YaBB.pl?action=rss instead of www.mysite.com/cgi-bin/yabb/YaBB.pl?action=rss?


I'm using Beta 3, it looks like -- weird, because I downloaded from the "latest" link... Anyway, I will download Beta 4.

Any suggestions to upgrading? Do I only have to upload the .pl file or do I have to reinstall the entire mod?

Tim
 
IP Logged
 
Tim Samoff
Bloody Novice
*
Offline

Kansas City, Missouri, USA
Posts: 25



Reply #25 - 01.04.04 at 21:09:05  
Quote:
If you have previously installed a 1.0 beta  you will need to uninstall/reinstall.  Please report bugs here.


Uhhh... Nevermind about that last question! Smiley

-T.
 
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #26 - 02.04.04 at 00:01:08  
Works like a charm Smiley

What can I break for you next?
 
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #27 - 02.04.04 at 00:07:39  
Tim Samoff wrote on 01.04.04 at 21:07:14:
I posted this in another section of the board...

I'm using Beta 3, it looks like -- weird, because I downloaded from the "latest" link... Anyway, I will download Beta 4.

Any suggestions to upgrading? Do I only have to upload the .pl file or do I have to reinstall the entire mod?

Tim


Just a guess but try taking the "..." after the subject names on your boards.  This is where the error is showing up.

Error parsing RSS XML: Undefined root element:  

Item
[1]<title>Using this Discussion Forum...</title>

If you remove them then that will narrow it down but I have a feeling that will do it.

Are you using Beta 4 with 5.pl as stated above?
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #28 - 02.04.04 at 05:32:22  
CDTrips wrote on 01.04.04 at 18:41:48:
Great, I will try it as soon as I get home.

FYI... I did not know if you had Member Level Access boards on your forum or not to test this, but I have boards that only certain mebers can see and they do not show up in the reader.


This is a real problem, the user cookie info is not being read.  I'll have to copy the cookie code into the RSS_Display file so it can be read.

Edit:  Thinking about this, it makes sense that the cookie is not read because the cookie info is specific to the browser the user used in logging in.  Since an RSS reader is not necessarily a browser, the YaBB script should treat the user as a guest.  The SharpReader uses the IE activeX control so when I was looking at my RSS feed it was reading the cookie fine.

I'm going to have to write a new routine to have the admin pick from the list of available boards and check the ones that should be available to the RSS feed, bypassing any member/guest considerations.

Dan
« Last Edit: 02.04.04 at 06:11:55 by ironwing »  
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #29 - 02.04.04 at 20:49:46  
All right... I installed Beta v4, and it's still not working for me. When I attempt to retrieve the feed in my aggregator, it acts like it is retrieving (as it did previoulsy), but nothing appears in the News Pane. When I view the RSS source, it HAS retrieved the correct source -- at least, it shows the message board's entries in the RSS source.

Any ideas?

Thanks,
Tim

 
IP Logged
 
CDTrips
Bloody Novice
*
Offline

Posts: 31



Reply #30 - 02.04.04 at 21:16:44  
It is kinda wierd that the following does not show up in validation for your board.  It is totaly left out.

<?xml version="1.0" ?> <rss version="2.0"     xmlns:dc="http://purl.org/dc/elements/1.1/"><channel>  <image>     <title><-gLu-> Clan Forum</title>    <url>http://www.godzlikeus.com/gLuImages/gluspin.gif</url>;    <link>http://www.godzlikeus.com/cgi-bin/yabb/YaBB.cgi</link>;      <description><-gLu-> Clan Forum</description>  </image>  <title><-gLu-> Clan Forum</title>  <description><-gLu-> Clan Forum</description>  <link>http://www.godzlikeus.com/cgi-bin/yabb/YaBB.cgi</link>;

 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #31 - 03.04.04 at 00:57:55  
Tim, that one is confusing, not sure why the header stuff CDTrips mentioned isn't showing for you.

In other news, I have the next beta working which has the admin select the categories to allow for RSS viewing.  This will get around the cookie problem.  I just have to write the help file and it will be ready to go.

I appreciate the effort folks are putting in to test these betas.  I know I'm on a rapid development cycle but I haven't had time to code in months so I'm jumping on the chance now.

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 #32 - 03.04.04 at 02:36:14  
Mayhaps a silly question but will the Admin selected cats override what the viewers would be allowed to see if they went to the site?
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #33 - 03.04.04 at 03:13:51  
Yep.  Since the RSS Reader can't store cookies there is no way to grant/limit access based on member groups.  If there are categoreis that the Admin doesn't want available to everyone then it is best to leave them off the feed list.

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 #34 - 03.04.04 at 05:53:10  
<bump for beta 5>

Changes from beta 4:
  • Moved RSS Feed settings out of Forum Prefs and onto separate page within Admin Center.
  • Added control for Admin to select categories to offer in RSS Feed.  This is necessary as most RSS readers can't store cookie info.  See mod help file for notes.
  • Wrote separate, expanded help file for mod.
  • Fixed (hopefully for good) problem with non-english characters in feed (RSS Reader scripters really aught to think a little more globally).


To upgrade from 1.0 beta 1-4, uninstall/reinstall.  See help file for install directions.

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 #35 - 03.04.04 at 06:03:07  
In the MOD file it is looking for Amin.pl in the main Yabb Folder instead of Sources.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #36 - 03.04.04 at 06:46:29  
Fixed.  Thanks.  I have to watch that cut and paste.

Dan
 
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #37 - 05.04.04 at 13:07:43  
I'll install Beta 5 and see if anything changes!

Thanks,
Tim
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #38 - 06.04.04 at 04:11:55  
<bump for beta 6>

Beta 6 adds a control to turn the short format post descriptions on/off.  When on, the mod works as previous betas, showing the first few words of each post in plain text.  The reader could then choose to go to the full thread.  When off, the reader is taken straight to the full thread view when a post is selected.

Dan
 
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #39 - 06.04.04 at 18:20:27  
I was wondering if anyone has come across similar problems to mine yet... I installed Beta 6 and I am still having the same trouble.

Another weird thing -- though I don't know if it is that weird -- is that I have uninstalled every Beta before continuing with the next version, but I noticed that old RSS Feed Mod functionality still remains in the Admin section of YaBB: where the description/time-offset/etc. info used to be edited.

Or is this how it is supposed to be?

Thanks,
Tim
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #40 - 06.04.04 at 23:30:09  
Are you uploading the files after each change?

Also, if you send me your FTP login info I can take a look and see I can spot what the prblem might be.

Dan

Dan
 
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #41 - 08.04.04 at 13:05:05  
Now, that I have my RSS working, thanks to the wonderful help of Dan, I can...add a...wish to the mod...ahem...ha ha! Smiley

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

 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #42 - 13.04.04 at 16:48:24  
I'll look into formatting but I'm not seeing enough formatting in various feeds to figure out what is allowed/not allowed.

I've also been reading up on the atom standard and I'm thinking of creating an option to syndicate in atom along side rss.  Most of the common readers seem to support the atom standard and it allows for creating more complex feed info without having to tap an external site to pick up the Dublin Core definitions.  Any thoughts on that?

Dan
 
IP Logged
 

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

Salisbury, England, England
Posts: 2



Reply #43 - 14.04.04 at 09:24:43  
Mine doesnt work either:

http://www.qteck.co.uk/community/YaBB.pl?action=rss

the header bit isnt there Sad

Any ideas?
 
IP Logged
 

YaBB Support Specialist
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #44 - 14.04.04 at 14:32:02  
In Display_RSS.pl find:

Code:

$YaBB_RSS = qq~
<?xml version="1.0" ?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<image>
<title>$mbname</title>
<url>$imagesdir/$RSS_Image</url>
<link>$scripturl</link>
<description>$RSS_Description</description>
</image>
<title>$mbname</title>
<description>$RSS_Description</description>
<link>$scripturl</link>
~;


and add a couple line returns or \n characters just before
<?xml version="1.0" ?>

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 #45 - 14.04.04 at 18:15:13  
Tim Samoff wrote on 08.04.04 at 13:05:05:
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
 
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 #46 - 14.04.04 at 18:54:36  
<bump for beta 7>

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

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #47 - 14.04.04 at 21:02:55  
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.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #48 - 14.04.04 at 21:36:49  
You can specify which categories to feed but not individual boards.

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #49 - 14.04.04 at 22:45:55  
Hmmmm, will you be adding "board" support?
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #50 - 14.04.04 at 23:49:51  
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
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #51 - 14.04.04 at 23:56:08  
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
 
IP Logged
 
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #52 - 15.04.04 at 00:06:57  
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.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #53 - 15.04.04 at 00:37:02  
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
 
IP Logged
 

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

Posts: 31



Reply #54 - 15.04.04 at 00:55:02  
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.
 
IP Logged
 
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #55 - 15.04.04 at 07:59:40  
ironwing wrote on 15.04.04 at 00:37:02:
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.
 
IP Logged
 
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #56 - 15.04.04 at 13:53:34  
You might want to try this Ironwing Wink

RSS Validator
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #57 - 15.04.04 at 14:12:56  
Stewart Gilray wrote on 15.04.04 at 13:53:34:
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
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #58 - 15.04.04 at 14:28:39  
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.

 
IP Logged
 
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #59 - 15.04.04 at 14:30:44  
Oh you also missed 2 "weird chars" the UK's £ (pound sign) and an ' apostrephe (sp?)
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #60 - 15.04.04 at 15:48:55  
Stewart Gilray wrote on 15.04.04 at 14:30:44:
Oh you also missed 2 "weird chars" the UK's £ (pound sign) and an ' apostrephe (sp?)


Well dang, that was one of the characters I  meant to put in there.  Thanks for catching that.  I'll go back and see what other characters I missed.

On the text/html thing, it is a warning not a failure, so it does validate.  

When I run it through the validator I get:

Quote:
Warning
This feed is valid, but may cause problems for some users. We recommend fixing these problems.

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


If you try a different validator like rss.scripting.com that warning doesn't come up but then rss.scripting.com doesn't like the dc: tags.  I'm beginning to suspect that my server is slapping a text/html header on the output since there is no text/html header generated in the routine itself.  This might also start to explain the missing headers problem that Tim and James reported on their servers if their servers handle printing to browsers in a different manner.


Tapping another site for xml definitions is legit xml though I spent quite a bit of time searching for a way to incorporate the dc: definitions directly into the mod so that a third party site wouldn't be needed.  I couldn't find anything on the dublincore.org site explaining how to do that and the feeds I've encountered that use the dc: definitions all link to dublincore or mirror sites for their dc: definitions.  The dc:subject tags provide different functionality than the <title> tags on some readers in where the titles appear in the item lists and item headers.  

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 #61 - 15.04.04 at 15:53:38  
Okay, I see what I did with the special characters, I was copying and pasting in a spreadsheet and I missed a set of rows so there are bunch of missing characters.

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #62 - 15.04.04 at 15:56:38  
Just sent you an email Wink
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #63 - 15.04.04 at 16:13:50  
Could you send me an IM instead?  Either your email isn't here yet or my wife checked our email from home and your message is now sitting there where I won't be able to read it until tonight (the drawback of sharing an email account  Grin ).

Dan
 
IP Logged
 

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

Nijmegen, Netherlands
Posts: 30



Reply #64 - 15.04.04 at 22:10:10  
The RSS feed don't refreshes itself... How can I change this?
 
IP Logged
 

I neva crappity smacked anybody over in my life, who didn't have it comin' to 'm, you got that? All I have in this world is my balls, and my word, and I don't break 'em for no one, you understand?
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #65 - 15.04.04 at 22:56:30  
jmg4life wrote on 15.04.04 at 22:10:10:
The RSS feed don't refreshes itself... How can I change this?


My understanding of RSS is that it is client driven and that your reader should be polling the feed.

Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #66 - 16.04.04 at 11:34:40  
As Ironwing says, RSS feeds don't update themselves as such...

When the client software, such as Feed Reader or Sharp Reader are used, you specify how often in those pieces of software how often to refresh.

 
IP Logged
 
Tim Samoff
Bloody Novice
*
Offline

Kansas City, Missouri, USA
Posts: 25



Reply #67 - 16.04.04 at 13:20:55  
Hey, Dan...

Beta 7 works great (after adding those two blank lines in the RSS feed! Smiley )... One question, though. Are you formatting your Board entries with HTML line breaks? While my feed now contains hyper-links, I'm not getting the cool formatting that I see when I aggregate your site.

Any suggestions?

Thanks!
Tim

 
IP Logged
 
Stewart Gilray
Fulltime Hacker
***
Offline

Posts: 196



Reply #68 - 16.04.04 at 13:25:33  
Cool formatting?!

this is what I get from my feed ...

http://www.t-n-m-s.com/cgi-bin/YaBB.cgi?action=rss

Stew
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #69 - 16.04.04 at 14:29:54  
Stewart Gilray wrote on 16.04.04 at 13:25:33:
Cool formatting?!

this is what I get from my feed ...

http://www.t-n-m-s.com/cgi-bin/YaBB.cgi?action=rss

Stew



I think the light just came on.  Stewart, your feed looks great, complete with formatting...in SharpReader.  But SharpReader uses an IE activeX control to show the item description field so all the formatting gets processed.  Which reader are you using?

On the line breaks question, they don't work correctly in b7, I was overzealous in stripping some tags out that didn't need to go.  On my site, I'm running the next version already which fixes that plus some of the stuff Stewart found.

Dan
 
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #70 - 16.04.04 at 20:57:56  
Ahhh... I see! Smiley

Can't wait for B8.

-T.
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #71 - 16.04.04 at 22:38:20  
Tim Samoff wrote on 16.04.04 at 20:57:56:
Ahhh... I see! Smiley

Can't wait for B8.

-T.


while you're waiting you can fix that part yourself by opening RSS_Display.pl and commenting out this line:

Code:
 $_[0] =~ s/<br>//g; 



to look like:

Code:
# $_[0] =~ s/<br>//g; 



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 #72 - 17.04.04 at 07:54:45  
Ok, I give where in the heck is the rss feed getting the bg color for a "Quote" when I look at the source in the rss feed it gives me this..

Code:
<a href="http://www.godzlikeus.com/cgi-bin/yabb/YaBB.cgi?action=display;board=gen;num=1081965645;start=25#40">Ruhk wrote</a>:</B><table bgcolor="#000000" class="bordercolor" cellspacing="1" width="90%"><tr><td width="100%"><table cellpadding="2" cellspacing="0" class="quote" width="100%"> 



But I have no Table colors in my css of the template with a bg of 000000? Unless it is grabbing them from the cells on the page itself?

Any ideas?
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #73 - 17.04.04 at 16:52:31  
The .quote definition is in the template.html file.  The short format post description feed doesn't read the template.html file so I'll have to come up with a way to handle that.  I'll see if I can find a method of bringing the template CSS into the feed that validates.  I'm starting to get concerned though that the feed output will get too big.

Dan

Dan
 
IP Logged
 

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

Kansas City, Missouri, USA
Posts: 25



Reply #74 - 21.04.04 at 17:33:23  
ironwing wrote on 16.04.04 at 22:38:20:
while you're waiting you can fix that part yourself by opening RSS_Display.pl and commenting out this line...

Done! And it works great! Smiley

Thanks,
Tim
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #75 - 24.04.04 at 14:49:13  
@CDTrips:  Just a note to let you know I haven't forgotten about your problem.  I don't have a solution yet, but I am learning a lot in the process of looking for one.   Roll Eyes

Dan
 
IP Logged
 

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

Monkey Island, USA
Posts: 698



Reply #76 - 26.04.04 at 07:31:01  
Cool Stuff...
I installed ver 1.0b7 and interestingly it is displaying guests & Member Email addresses... when in the RSSReader
http://www.rssreader.com/ ...

I tried clearing my cookie,,, logged out and restarted browser and RSS Reader...  Still could see the email addresses..??
maybe I missed something...

Cool mod ...

Thanks
Bill
 
IP Logged
 


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.

...
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #77 - 26.04.04 at 14:10:47  
Do you use IE as your regular browser?

Dan
 
IP Logged
 

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

Monkey Island, USA
Posts: 698



Reply #78 - 26.04.04 at 22:22:30  
Hi,,,
 Yes, I use IE6 and was using RSSReader...
I will test more tonight and post more
 
IP Logged
 


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.

...
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #79 - 26.04.04 at 23:05:51  
For those who noticed that beta 8 was here and now it's gone, it crapped out so bad upon further testing that I yanked it.

Getting the CSS stuff into the feed item descriptions is turning out to be a major pain.  As near as I can tell the only way to do it is to write a CSS parser that takes the CSS rules out of the forum template and replaces the CSS calls in the message bodies with inline CSS tags.  I don't think I'll be able to do it.  This would require that I more or less recreate the CSS cascading rules that a browser goes through to derive the correct inline tags for each call.

Dan
 
IP Logged
 

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

Monkey Island, USA
Posts: 698



Reply #80 - 27.04.04 at 08:43:04  
I don't know why but the rssreader when I click on Read More
No other icons just email addresses of Guests... and some members... not all ??   I have tried logging out and in as someone
else, not admin or Gmod...  
I can't figure it out there is no rhyme or reason...
it shows All Guests and some members email addresses..

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

Cool stuff,,, Good Luck with it...
I will continue to test this...

Thanks

Bill
 
IP Logged
 


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.

...
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #81 - 27.04.04 at 16:35:33  
@BilBSET:  Okay, I see the problem and have been able to reproduce on my forum.  I'll work on a fix.  In the mean time you could switch to using the short form descriptions to prevent folks from seeing the email addresses.

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 #82 - 27.04.04 at 17:05:51  
Hmmm,  if you log out of Boardmod here and then look around the boards you will see that showing the emails for guests is default YaBB behavior even if the viewer is a guest.

That being said, I think that the "long form" descriptions are still too bloated and I'm thinking about stripping them down further.  The email addresses are certainly one thing that could go, as well as many of the buttons.  I think the short form descriptions better implement the RSS idea that less is more.

Dan
 
IP Logged
 

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

Monkey Island, USA
Posts: 698



Reply #83 - 28.04.04 at 07:44:26  
Hi,,,
 My forums don't show Guest email addresses to anyone but Admins...
hmmm... I guess I have a mod or have done something to
prevent it...

Really like this tool.. it appears to be the coming thing...
GOOD WORK!!

thanks
bill
 
IP Logged
 


After you eliminate all of the possibilities,
whatever is left, no matter how seemingly impossible,
must be the truth.

...
John Gugie
Bloody Novice
*
Offline

Posts: 10



Reply #84 - 24.08.04 at 13:37:34  
I finally found this board. lol  I bugged Dan in PM because I couldn't find this board.  Grin

I got this mod to work but I still get errors with some  new posts.  Dan saw I had weird characters in a few posts like a ... as one character.  I then had more errors but not sure of the characters causing it now.  It might be the apostrophe.  How about " or &?  

Two new questions.  One, how can I find the exact characters listed in the error message (line, character #)?  In case I come across another character error not fixed yet, I want to quickly fix it so the RSS isn't errored out too long.

Two, is there a way to ONLY send the 1st post of each topic to RSS?  I don't want replies sent to RSS.  Worst case scenario: I'll only allow staff to post but I'd like the topics to be discussed.

 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #85 - 28.08.04 at 13:59:07  
Hi John,

To fix the characters you already have plus a couple more, in RSS_Display.pl find:

Code:
	$_[0] =~ s/ÿ/&#255;/g; 



and add these lines after it:

Code:

$_[0] =~ s/‘/&#8216;/g;
$_[0] =~ s/’/&#8217;/g;
$_[0] =~ s/…/&#8230;/g;
$_[0] =~ s/‰/&#8240;/g;


Save and upload to your Sources directory in ASCII mode.

To add other funky characters to the list just follow the pattern above, where the weird character sits between the first and second slashs and the character code replacing it sits between the second and third slashs.  There is a pretty good list of the html character codes here: http://www.tntluoma.com/sidebars/codes/

To figure out which character is breaking your feed use the feed validator and look for the red question marks in the error messages; these mark the locations of bad characters.  Then look at the same post in your forum and see which character the validator didn't understand.

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 #86 - 28.08.04 at 14:10:32  
To have the first post in a thread listed in the feed instead of the last, in RRS_Display.pl find:

Code:


while( <FILE> ) { $recentmessage = $_; }



and replace it with:

Code:



# while( <FILE> ) { $recentmessage = $_; }
@tempmessages = <FILE>;
$recentmessage = $tempmessages[0];




Dan
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
RonB
Guest





Reply #87 - 01.09.04 at 21:46:45  
I haven't gotten the RSS feed to work, it only show the html page on feedvalidator.com..  anyone got a newer beta that might work to share?Wink
 
IP Logged
 
thecaretaker
Hacker Wannabe
**
Offline

1066 Country, United Kingdom
Posts: 87



Reply #88 - 05.12.04 at 11:05:04  
Hi, just wanted to say that I installed this mod and it works fine for me. My forum doesn't allow guest posting.

I don't know what effect this has, but I altered the last occurance of action=rssdisplay in RSS_Display.pl to action=display. I use SmartbarXP and added a component for the news ticker to display the latest posts.

Before changing it, it showed my forum pages using the correct style but no yabb menu at the top. By changing the rssdisplay to display, the links open up the correct page in the normal forum. So if your logged in or out, it's the same as if anyone visits the forum.

Seems to be working perfectly, but I'm going to download some other feedreader's and see what happens with them.

Nice mod folks. I like it and it seems to work for me Wink
 
IP Logged
 

Growing old is mandatory. Growing up is optional!
DelaMn
Fulltime Hacker
***
Offline

Posts: 136



Reply #89 - 06.12.04 at 20:11:54  
DOES NOT WORK  Sad

---------------------

I installed the RSS mod, wich is supposed to be a released version.

I installed it and apparently everything was ok.. no errors and perfect access in control panel

So I configured it...

Then... I dont see any page on RSS format!!!!

just tried to type ?action=rss after "yabb.cgi" on url, but does show a so strange page like txt format. How you show the rss thing ??? *

Quote:


* what it shows is ten txt urls like this

http://www.mysite.com/cgi-bin/yabb/YaBB.cgi?board=1020201888;action=rssdisplay;n... + date

this, ten times...

when put on internet explorer that 10 url just shows forum messages without the heading ... kind of wired this taking place


The point is that the http://www.mysite.com/cgi-bin/yabb/YaBB.pl?action=rss doesnt show a page in rss format, with the logo I ut and the usual three color lines.....


Please help!!


Thanks anticipated. Hope to see it in action!
« Last Edit: 06.12.04 at 20:51:43 by DelaMn »  
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #90 - 14.12.04 at 04:13:12  
Are you using an RSS Reader (feed aggregator) to view the pages?  RSS feeds are not html, they are xml and so won't show in a normal browser.

Dan
 
IP Logged
 

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

Lippstadt, Nordrhein-Westfalen, Germany
Posts: 48



Reply #91 - 14.12.04 at 09:52:37  
XML will show in a normal browser, but RSS Feed Mod does not only in a RSS Reader - very strange but it works!!

Great Plugin!!
 
IP Logged
 

Just making a little place for myself on the web and ranting every once and awhile...
Jungle Jim
Hacker God
*****
Offline

The Fridge, England
Posts: 1015



Reply #92 - 14.12.04 at 16:27:39  
All beyond me, parsers, coded feeders, xml ... seems like u have to be a scientist to put it all together !  What i dont get is why RSS stand for "REALLY SIMPLE", when in fact its quite the opposite, requiring the user to know 2 or 3 coding languages to be able to integrate it !
 
IP Logged
 
DelaMn
Fulltime Hacker
***
Offline

Posts: 136



Reply #93 - 14.12.04 at 16:29:42  
ironwing wrote on 14.12.04 at 04:13:12:
Are you using an RSS Reader (feed aggregator) to view the pages?  RSS feeds are not html, they are xml and so won't show in a normal browser.

Dan


Obviously... YES! Undecided

Of course I tried on feed aggregator.

Everything else, what it is taking place is exposed on my post.

Plus... it takes centuries to get loaded  Embarrassed
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #94 - 14.12.04 at 17:51:44  
DelaMn wrote on 14.12.04 at 16:29:42:
Obviously... YES! Undecided

Of course I tried on feed aggregator.

Everything else, what it is taking place is exposed on my post.

Plus... it takes centuries to get loaded  Embarrassed



Not obvious at all.  It is the number one question I've had to answer since releasing the mod.  Many folks have never heard of readers and so try to view feeds on their browsers.

Could you post your forum address so I can see what is happening?

Dan
 
IP Logged
 

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

Posts: 136



Reply #95 - 14.12.04 at 20:12:46  
I´d prefer post the code you need... dont want people on mu forum talking about mods  Roll Eyes

Plus: is there any live example so we could see your mod working as it ? (not like michael on boardmod, wich is fantastic but is a different thing)


Thanks anticipated and ready to post the code when you ask if needed:Smiley
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #96 - 14.12.04 at 21:29:57  
Okay, here is the code I need...

One, I need to see the output of your rss feed as produced when run through the feed validator at feedvalidator.org.  Then I need to see the output of your rss feed as rendered in Netscape Navigator version 4.7.   The reason for needing the first is that I need to see specifically what doesn't validate.  The second is needed as Netscape 4.7 is so old that it doesn't recognize xml at all and just shows the raw feed text which is great for troubleshooting.

A working feed is available at:
http://www.mineralarts.com/cgi/yabbsp1/YaBB.pl?action=rss


Dan
 
IP Logged
 

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

Posts: 136



Reply #97 - 14.12.04 at 21:50:00  
ironwing wrote on 14.12.04 at 21:29:57:



It doesnt´t work  Embarrassed none of  the 3 readers i tried  Embarrassed

And tried on explorer 6 (just to see the code, as usually, like

http://rss.news.yahoo.com/rss/topstories

but in your example what you get is... nothing!  Embarrassed
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #98 - 14.12.04 at 21:54:00  
 
IP Logged
 

Please include your forum address in all requests for assistance.  It greatly speeds things along.
LoonyPandora
Moderator
*****
Offline

London, United Kingdom
Posts: 1705



Reply #99 - 14.12.04 at 23:47:36  
Just suggesting something:

Quote:
This feed is valid, but may cause problems for some users. We recommend fixing these problems.
Feeds should not be served with the "text/plain" media type


That's what the validator said about your feed - so perhaps it's how it sends headers or something? The 'working' feed doesn't have that warning, so it's the only difference between the two, as they both use the same rss version Undecided
 
IP Logged
 

Apple Technical Support
Code:
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig;
Boardmodder420
Bloody Novice
*
Offline

Posts: 20



Reply #100 - 17.12.04 at 05:40:30  
how can i display my yabb rss feed on a html page? is there a javascript or html code i could use? Roll Eyes
 
IP Logged
 
LoonyPandora
Moderator
*****
Offline

London, United Kingdom
Posts: 1705



Reply #101 - 17.12.04 at 10:42:41  
That's not what RSS is for...

If you want to display news on an HTML page, look into the news mod...
 
IP Logged
 

Apple Technical Support
Code:
#!/usr/bin/perl --
($sig ='ddiissjjttuuffss ddaoouu ssffaee uuiijjtt
jj ssvvmmff auu qqffssmm ttmmaoohhjjoohh nnauuddiifftt')
=~y~b-v~a-z~s;
print $sig;
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #102 - 17.12.04 at 17:17:09  
Okay, I found a fix that validates on feedvalidator and the rss.scripting.com validator as well.

In RSS_Display.pl find

Code:
 $YaBB_RSS = qq~
<?xml version="1.0" ?>


and change it to:

Code:
	$YaBB_RSS = qq~Content-type: application/xml\n
<?xml version="1.0" encoding="iso-8859-1" ?>


Dan
 
IP Logged
 

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

Posts: 136



Reply #103 - 17.12.04 at 20:05:54  
Hi ironwing.
The other day, when you said your link was working, it really wasn´t for me, as I explained (with 3 different aplications). Feedvalidator said "wrong rss"

But...

Today feedvalidator says it is OK. So I tried last thing you suggest

"$YaBB_RSS = qq~Content-type: application/xml\n
<?xml version="1.0" encoding="iso-8859-1" ?> "

And it doesnt work for me. Just 'time out' message.

It should be usefull could upload mod as you have changed it (not the version available,)


Excuses for my english again (not mothers tongue)


------------

Added: it works with the last change, but goes so very slowly... many times, time out  Embarrassed
« Last Edit: 17.12.04 at 20:39:08 by DelaMn »  
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #104 - 18.12.04 at 01:09:47  
I've attached the fixed RSS_Display.pl file.  This fix also includes a fix for a problem with displaying the € symbol in the feed.

If your feed still doesn't validate after applying this fix you will need to send me a private message with the URL of your feed so I can see what is happening.  If your forum is not in english there may be problems with characters that aren't used in english.  Also, if your forum is based on the german translation of YaBB then there is a small fix that needs to be made to the rss script.

Dan
 
IP Logged
 

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

Posts: 136



Reply #105 - 19.12.04 at 09:00:00  
Ok. I think its fine. It is just the so very slowly thing as same as yours... in my case, it is big board with many forumns and much messages.. it takes so long... (could it be faster? sometimes get into 'time out'  Embarrassed)
Any way.. could you post the euro symbol thing to do it by hand? Thanks anticipated


PD Slow like the news mod before last michael´s patch. Now that mod goes faster than fastest (without reading all posts on all boards as used before)
 
IP Logged
 
DelaMn
Fulltime Hacker
***
Offline

Posts: 136



Reply #106 - 19.12.04 at 09:05:24  
Plus.. kind of little bug?

When you open a single feed it shows it in a way without heading.. kind of wired ...but fine.

Anyway, in the upper of Internet Explorer (sorry for my english) just appears <yabb title>  ???
Undecided
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #107 - 19.12.04 at 14:06:03  
The euro code fix can be seen here:

http://www.mineralarts.com/cgi/yabbsp1/YaBB.pl?board=news;action=display;num=110...

second message.

The single feeds open in a modified display in order to better fit the three pane setup of most feed readers and also to avoid offering buttons to readers that may lead to "please login" messages.  Since a feed reader often isn't a browser the user cookies often don't exist within the reader so users can be confused about why they have to login.

Could you be more specific about where the <yabb title> tag is appearing?

On the speed issue, the only way to limit the processing time that I can think of is to limit the number of board categories in the feed.

Dan
 
IP Logged
 

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

Posts: 136



Reply #108 - 19.12.04 at 14:49:40  
see here? where we are talking? when using internet explorer...?

There are many buttons on the Internet explorer... upper... the file, edit, ... menu... upper: "The BoardMOd Project - Forum- " !!! There is were appears <yabb title> (not the title. Just <yabb title>, as it)

I´ve done my best explaining Undecided
 
IP Logged
 
DelaMn
Fulltime Hacker
***
Offline

Posts: 136



Reply #109 - 19.12.04 at 14:52:09  
+

Could be usefull could put your logo / link / whatever showing it is your board..... you know, into the modified display, put your logo, name of the board.. or something! (or just a patch to show it in the standard display)



Thanks anticipated


(Added: thanks for the euro thing and all the help; this mod is better than nothing)
« Last Edit: 19.12.04 at 16:23:24 by DelaMn »  
IP Logged
 
DelaMn
Fulltime Hacker
***
Offline

Posts: 136



Reply #110 - 20.12.04 at 13:56:10  
Quote:
On the speed issue, the only way to limit the processing time that I can think of is to limit the number of board categories in the feed.  


The speed thing: doesnt improve deselecting categories.. just have one, with couple of forums, one of them with 24.000 messages

Any cache thing idea? ??? (like the solution on the news mod I told before)
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #111 - 25.12.04 at 04:31:02  
I've put out a new beta and started a new thread for it here:
http://www.boardmod.org/yabb/YaBB.pl?board=new_mods_beta;action=display;num=1103...

I fixed the <yabb title> problem.  Any thread cache will have to wait until I have time to study and understand what Michael did in the News mod.

Dan
 
IP Logged
 

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

Posts: 136



Reply #112 - 25.12.04 at 19:57:19  
Thank you iron

Could you post the yabb tittle and two options thing , so I could fix it by hand? Quote:
Fixed <yabb title> problem.
Added option to use regular YaBB thread display or simplified thread display.
 Roll Eyes
 
IP Logged
 
ironwing
Mod Writer
*****
Offline

Sonoran Desert, Arizona, USA
Posts: 2330



Reply #113 - 25.12.04 at 20:00:04  
In RSS_Display.pl find:
print "$yymain";
Add this line before:
$yymain =~ s~\<yabb title\>~$mbname~eig;

Dan
 
IP Logged
 

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

Posts: 136



Reply #114 - 26.12.04 at 19:55:39  
Thanks... what about the second question / "...option to use regular YaBB thread display or simplified thread display." thing?  Wink

so could patch manually?

Thanks anticipated again  Cheesy
 
IP Logged
 
Squirrelman
Hacker Wannabe
**
Offline

Posts: 59



Reply #115 - 06.09.06 at 22:31:57  
When should new posts appear in the RSS Feed?

I'm not seeing anything new appearing (yet).

Thanks in advance for your assistance!
 
IP Logged
 
Pages: 1 
© 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