Syndicate *this* !

Creating and modifying plugins.
Post Reply
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Syndicate *this* !

Post by randulo »

In a French default-language s9y install, I'm trying to see how I can add English (2nd lang) as an RSS. As we noted earlier, the RSS by default will be the um, default language. Fair enough. How to make the RSS icons point to an English version?

Can someone give me a hint or two as to how to add an English version RSS feed? I can't even find the syndicate plugin - is it a core function?

cheers,

r
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Syndicate *this* !

Post by garvinhicking »

Hm. That might get a bit harder.

You'll want to investigate the rss.php file which does the syndication stuff. The syndication plugin itself is in include/plugins_internal.inc.php.

I've just committed a new version 1.8 of the multilingua plugin, which *should* support foreign languages of RSS feeds by calling this URL:

http://yourblog/rss.php?version=2.0&ser ... lected]=en

I was not able to test this, so I would like to get some feedback of yours. It might be hard to hack the URLs into the syndiation plugin, so showing them within a HTML nugget may be easier.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Re: Syndicate *this* !

Post by randulo »

garvinhicking wrote: I've just committed a new version 1.8 of the multilingua plugin, which *should* support foreign languages of RSS feeds by calling this URL:

http://yourblog/rss.php?version=2.0&ser ... lected]=en

I was not able to test this, so I would like to get some feedback of yours. It might be hard to hack the URLs into the syndiation plugin, so showing them within a HTML nugget may be easier.
Garvin
Garvin, thanks for that info. I'll look into it. I have a problem though, we are staying with version 8 for the moment. I'll see if your plugin works with that (or you can tell me now if you see this and have a moment).

Otherwise, perhaps I could someone clone the rss.php to generate a new stream based on the second language.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Syndicate *this* !

Post by garvinhicking »

I think it should work with serendipity 0.8 the same way, yes.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
randulo
Regular
Posts: 141
Joined: Thu Jul 21, 2005 10:28 am

Post by randulo »

In fact, since it's an independent URL, I have decided to write my own feed by reading the multilingual_title_en and multilingual_body_en in the database directly. I'll use your suggestion of showing the icons and links in a multilingual HTML nugget.

cheers,

r
Post Reply