If God put me on this Earth to accomplish a number of tasks, I'm currently so far behind I will never die. :
I have so much overtime now that I will be 92 years old before I have spent all of it as extra days off... I already used all my unspent vacation days I had spared since December 2008 and those lasted for almost 4 months (from February 16 to June 11th) .
Posted by: Dandello Posted on: Jun 15th, 2015 at 1:25pm
If God put me on this Earth to accomplish a number of tasks, I'm currently so far behind I will never die. :
Posted by: Monni Posted on: Jun 15th, 2015 at 7:33am
One can take the stance that the RSS should reflect the most current info from the source.
In any case, I have been unsuccessful in getting the RSS feed to render anything styled via class to render the proper style. So if someone can get it to work, that would be great.
If someone kind e-mails me a xml dump of a RSS feed, I could try locally to get the styles working... It takes too long to test it on a remote server. I have had so many projects going on lately that I haven't really had much time to play with YaBB.
Posted by: Dandello Posted on: Jun 7th, 2015 at 3:37am
One can take the stance that the RSS should reflect the most current info from the source.
In any case, I have been unsuccessful in getting the RSS feed to render anything styled via class to render the proper style. So if someone can get it to work, that would be great.
Posted by: Monni Posted on: Jun 7th, 2015 at 12:24am
Okay - further research done. Although the specification says you can add a stylesheet to an XML document (in theory you can even use a css one), in practice, RSS readers may not load it and people pulling the RSS into their site may not want YaBB's css.
The reason people might not want full YaBB's CSS is pretty much the reason I said it has to be minimal. The part where RSS reader doesn't support CSS styling, the bare code needs to be compatible with the RSS reader in a way that RSS readers that do support CSS can override the style. Just replacing the code block with a forwarding message is not long-term solution, because the post it points to might not exist any more but the RSS feed entry still stays in the reader.
Posted by: Dandello Posted on: Jun 3rd, 2015 at 3:21pm
in Languages/English/Main.lng, find the '1;' and add before it:
Code
$maintxt{'rsscode'} = 'Go to Post to see Code';
(Or whatever you want it to say.)
Do the same for any other Language packs you have.
Posted by: Dandello Posted on: Jun 3rd, 2015 at 1:29pm
Okay - further research done. Although the specification says you can add a stylesheet to an XML document (in theory you can even use a css one), in practice, RSS readers may not load it and people pulling the RSS into their site may not want YaBB's css.
So the solution is going to have to be to remove the entire code block from the RSS display and replace it with a link to the item or a note telling people to go to the original message for the code.
Posted by: Monni Posted on: Jun 3rd, 2015 at 11:47am
But the actual text 'class="codebox"' is removed, so there's nothing for the css to format because the tag is gone.
When the RSS feed has own CSS that actually works and looks perfect, it makes sense to not remove the class attribute any more...
The thing with XML and CSS together is that even though both standards are decades old, none of the current browsers fully support the official standards, but instead the pre-standard version. This isn't so much an issue with YaBB as all browsers fail in common compatible way.
Posted by: Dandello Posted on: Jun 1st, 2015 at 11:24pm
But the actual text 'class="codebox"' is removed, so there's nothing for the css to format because the tag is gone.
Posted by: Monni Posted on: Jun 1st, 2015 at 5:33pm
For "codebox" and other CSS formatting to work in RSS feeds, the feed actually needs to have own CSS file attached. This CSS file should have only the minimum required styling.
Posted by: Dandello Posted on: May 6th, 2015 at 11:51pm
Okay, finally had a few minutes to look at what's happening. In the process of converting a message to XML all the class and style info gets stripped out. The standard tags (like <b> and <i>) render but 'class="codebox"' gets removed.
I suspect the only way around this is to actually remove the codebox from the RSS feed and replace it with something that says something like 'Code Box' with a link back to the message.