Textpattern Forum

You are not logged in. Register | Login | Help

#61 2007-01-13 14:49:51

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [Archived] bit_rss

hypothetically, yes, you could pull that off.

Offline

#62 2007-01-13 15:17:53

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 4,927
Website

Re: [Archived] bit_rss

Any ideas on how?


Yiannis
——————————
neme.org | neme-imca.org | hblack.net | LABS

Offline

#63 2007-01-13 15:33:32

dai
Member
Registered: 2006-12-07
Posts: 21

Re: [Archived] bit_rss

hey Walker your site looks smart

any chance you could show the code that sorts the permlink out – mine still doesnt work it outputs http://url of site/textpattern//example-of-name

Offline

#64 2007-01-13 16:13:30

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [Archived] bit_rss

Colak, here’s what your page should look like:

<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel><generator>http://textpattern.com/?v=4.0.4</generator>
<title>Site Title Here</title>
<link>http://www.domain.com/</link>
<description>a description of the feed here</description>
<pubDate><txp:php>date('D, M Y H:i:s')</txp:php> GMT</pubDate>

<txp:bit_rss (with arguments) />

</rss>

and here’s what your rss form might look like, it’s not exactly right. the missing piece is that the link (the url of the entry) should really be output between the link tags, but permlink has to have a closing and outputs the a href automatically, which shouldn’t be there…..

<item><title><txp:permlink><txp:title /></txp:permlink></title>
<description><txp:body /></description>
<link> </link>
<pubDate><txp:posted /></pubDate></item>

Offline

#65 2007-01-13 16:18:29

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [Archived] bit_rss

bah, so I hacked it together….put the following in bit_rss.

function bit_permurl($atts) {
    global $thisarticle;

    return $item->get_description();
}

then your proper rss form will look like this

<item><title><txp:title /></title>
<description><txp:body /></description>
<link><txp:bit_permurl /></link>
<pubDate><txp:posted /></pubDate></item>

Offline

#66 2007-01-13 16:45:23

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [Archived] bit_rss

@dai

I’m not sure why yours is outputting a relative url rather than an absolute. Is there a possibility that what feed simplepie is reading to create the page you’re looking at does not have absolute urls in it?

Offline

#67 2007-01-13 23:57:30

marios
Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [Archived] bit_rss

Actually, Bit Santos Implementation is better over the Simplpie plugin.
( I’ve looked at both of them )

regards, marios


⌃ ⇧ < ⌃ ⇧ >

Offline

#68 2007-01-14 00:08:53

Walker
Plugin Author
From: Boston, MA
Registered: 2004-02-24
Posts: 592
Website

Re: [Archived] bit_rss

Marios, If you installed it, you’ll notice that bit’s plugin is using simplepie for the feed parsing.

Offline

#69 2007-01-14 01:57:46

nasv
Member
Registered: 2005-11-14
Posts: 22

Re: [Archived] bit_rss

for those having problems with the site giving you weird permlinks such as “domain.com//syndication-title”, I found the mistake for me to be that I simply used <a href=”<txp:permlink>” …><txp:title /></a> INSTEAD OF <txp:permlink><txp:title /></txp:permlink>. The latter ended up working for me.

-Nico

Offline

#70 2007-01-14 02:21:21

marios
Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [Archived] bit_rss

@walker, I meant the simplepie plugin for textpattern,
not the function library file.

( that one can only be used in a page template. Seems they didn’t take advantage of all the TXP goodies)

( BTW.: Awesome work, there in the portfolio, saw it)

regards, marios

Last edited by marios (2007-01-14 02:22:55)


⌃ ⇧ < ⌃ ⇧ >

Offline

Board footer

Powered by FluxBB