boardom Forum Index boardom
b2 message board
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

rss/rdf help
Goto page 1, 2  Next
 
Post new topic   Reply to topic    boardom Forum Index -> Template help
View previous topic :: View next topic  
Author Message
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Tue Jan 28, 2003 1:49 am    Post subject: rss/rdf help Reply with quote

This is driving me up the wall -- I can't seem to get my rss, rss2, or rdf files to work properly. It didn't work when I installed b2 a couple of months ago, and then today I decided to sit down and try to fix it.

I went through all my code, went to the CVS and made sure all the related files were the most recent, and then all of the sudden, after tinkering with it for over an hour, it worked!

I should probably have left things well enough alone, but then I went into b2config and changed the following section to 0 instead of 50, just to see what it would do:

Quote:
# length (in words) of excerpts in the RSS feed? 0=unlimited
# note: in b2rss.php, this will be set to 0 if you use encoded HTML
$rss_excerpt_length = 50;


When I went back to look at the files, they were all broken again. I quickly went back and changed that option back to 50, but that didn't make it work again.

The error I'm getting on b2rss.php is this:

Quote:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


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

A semi colon character was expected. Error processing resource 'http://www.jadeddaisy.net/blog/b2rss.php'. Line 18, Position 50

<link>http://www.jadeddaisy.net/blog/?p=443&c=1</link>
-------------------------------------------------^



I'm getting similar errors on b2rss2.php and b2rdf.php. You can see them all at http://www.jadeddaisy.net/blog/b2rss.php (or b2rss2 or b2rdf.)

Any ideas? I'm up for anything right about now, I'd really like to get this working.[/code]
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
mikelittle



Joined: 11 May 2002
Posts: 376
Location: UK

PostPosted: Tue Jan 28, 2003 2:15 am    Post subject: Reply with quote

Hi Jadeddaisy
The problem is the & (ampersand) in the URLs. It should be converted to an entity like &

Check the RSS validator http://feeds.archive.org/validator/check?url=http%3A%2F%2Fwww.jadeddaisy.net%2Fblog%2Fb2rss.php

Maybe you need to set $rss_encoded_html to 1 in b2config.php?

Hope this heps,

Mike
_________________
Mike Little
http://zed1.com/journalized/
"Share what you know. Learn what you don't."
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Tue Jan 28, 2003 2:24 am    Post subject: Reply with quote

Just tried that, nothing's changed...same exact entry, and the validator link you posted gived looks the same, as far as I can tell...
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Tue Jan 28, 2003 8:17 am    Post subject: Reply with quote

what is $blogfilename in b2config.php set to?
Back to top
View user's profile Send private message Visit poster's website
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Tue Jan 28, 2003 12:44 pm    Post subject: Reply with quote

I originally had it as 'index.php' but a few weeks ago I changed it to be blank; $blogfilename = '';
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Tue Jan 28, 2003 4:02 pm    Post subject: Reply with quote

change it back to index.php
Back to top
View user's profile Send private message Visit poster's website
Cyberian75



Joined: 26 Sep 2002
Posts: 1019
Location: Oregon

PostPosted: Tue Jan 28, 2003 10:27 pm    Post subject: Reply with quote

jadeddaisy wrote:
I originally had it as 'index.php' but a few weeks ago I changed it to be blank; $blogfilename = '';



I'm curious as to why you set it to be blank.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Tue Jan 28, 2003 10:45 pm    Post subject: Reply with quote

I did try changing it back to index.php, and it doesn't work, even in combination with the other suggestion posted earlier.

I left it blank, because I use blogrolling and set b2 to ping weblogs.com. I want it to ping with 'http://jadeddaisy.net/blog' since that's the URL people generally use to link to me. If I set it up with index.php then b2 pings with 'http://www.jadeddaisy.net/blog/index.php' and I don't show up on people's recently updated lists.
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 1019
Location: Oregon

PostPosted: Tue Jan 28, 2003 10:56 pm    Post subject: Reply with quote

I don't recommend leaving it empty even if your blog works that way. It's because lots of b2 functions use that variable, and if it's empty, it will cause problems somewhere.

Regarding blogrolling, I believe you can define your URL in Preferences, and the URL you set in there will show up in others' blogroll.
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Tue Jan 28, 2003 11:05 pm    Post subject: Reply with quote

No, the URL you set in preferences is used by blogrolling internally only. People choose which URL to link to a site with on their own, and if they choose one that's different from what blogrolling has, they won't be able to display the proper updates from the site. I could change my URL in their preferences, but then I would have to email about a million people to change their links, and that doesn't sound like my idea of a good time.

That being, said, I believe that blogrolling also pulls updates from blo.gs, so I'm setting b2 to also ping that site. Since I can define what URL I want to ping with in b2config, hopefully blogrolling will still get the proper updates from my site even if I change the other option back to index.php.

Back to the main issue; I've changed everything everyone's asked me to change, and the rss pages still aren't working. Sad
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
Cyberian75



Joined: 26 Sep 2002
Posts: 1019
Location: Oregon

PostPosted: Tue Jan 28, 2003 11:07 pm    Post subject: Reply with quote

Don't you use "Blogroll Me" functionality?
_________________
Michael P.
Back to top
View user's profile Send private message Visit poster's website AIM Address
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Tue Jan 28, 2003 11:14 pm    Post subject: Reply with quote

Yes, but I've had my blog up on that URL since December '01 (was using GM for the first 8 months or so) and have only been using blogrolling for a month.
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Tue Jan 28, 2003 11:24 pm    Post subject: Reply with quote

ok the problem is that the proper characters are not being escaped by the call to convert_chars() in get_content_rss().

Why I don't know without looking in your code.

Has it ever worked?
Back to top
View user's profile Send private message Visit poster's website
jadeddaisy



Joined: 24 Nov 2002
Posts: 116

PostPosted: Wed Jan 29, 2003 12:11 am    Post subject: Reply with quote

In my first post on this topic I explained that.. Smile It had never worked until yesterday when I was tinkering with it, then I changed that one option and it was broken all over again, even if I change that option back.

If there's any pieces of my code you want me to post, I can do that...
_________________
~^Rickie Beth^~
jadeDblog
Back to top
View user's profile Send private message Visit poster's website AIM Address
Mister44



Joined: 31 Oct 2002
Posts: 237
Location: Philadelphia, PA, USA

PostPosted: Wed Jan 29, 2003 8:14 am    Post subject: Reply with quote

If you diff against the cvs code, do you have changes in any of the rss functions or convert_* functions?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    boardom Forum Index -> Template help All times are GMT + 1 Hour
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group