Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [Archived] bit_rss

#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: 9,057
Website GitHub Mastodon Twitter

Re: [Archived] bit_rss

Any ideas on how?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

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
Archived 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
Archived 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

#71 2007-01-14 08:48:00

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,057
Website GitHub Mastodon Twitter

Re: [Archived] bit_rss

Walker… !!!! This was fast… Thanks!

A couple of questions form a non programmer…

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

function bit_permurl($atts) {
    global $thisarticle;

    return $item->get_description();
}

where in the plugin? there are 137 lines of code in there

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>

Would this return the feeds from the punbb forum?

Last edited by colak (2007-01-14 08:49:38)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#72 2007-01-14 15:17:57

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

Re: [Archived] bit_rss

For the part you put bit_rss, find a spot where a function starts Ex: function the_function_name() { and then make a space before that and put my permurl function in.

I suppose it would return the punbb forum feeds.

Make sure you make the page template to.

Offline

  1. Index
  2. » Archives
  3. » [Archived] bit_rss

Board footer

Powered by FluxBB