Textpattern Forum

You are not logged in. Register | Login | Help

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

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

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.org | neme-imca.org | hblack.net | LABS

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

#73 2007-01-15 11:17:42

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

Re: [Archived] bit_rss

nasv wrote:

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.

Weird – i wasnt using <txp:permlink><txp:title /></txp:permlink> I was just using <txp:permlink> which i think is where the problem arose – using <txp:permlink><txp:title /></txp:permlink> works, however <a href=”<txp:permlink>” …><txp:title /></a> doesnt seem to…

Offline

#74 2007-01-15 13:57:53

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

Re: [Archived] bit_rss

@dai: nasv beat you to it a page back

Last edited by Walker (2007-01-15 13:58:12)

Offline

#75 2007-01-15 14:19:52

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

Re: [Archived] bit_rss

@ Walker

haha, sorry misread nasv’s message, thought he/she meant it the other way around…more coffee needed obviously

Offline

#76 2007-01-15 15:55:09

maverick
Member
From: Southeastern Michigan, USA
Registered: 2005-01-14
Posts: 746
Website

Re: [Archived] bit_rss

My thanks to both nasv and dai for posting your solution. It solved my problem that I posted sometime back. I too was using <a class=“title” href=”<txp:permlink />”><txp:title /></a>with frustrating results. The fix seems so obvious now.

Thanks again.

Offline

#77 2007-01-15 16:23:08

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

Re: [Archived] bit_rss

is there any way of making each feed write an individual article everytime its updated, allowing for commenting, etc?

Offline

#78 2007-01-19 10:33:54

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

Re: [Archived] bit_rss

dai wrote:

is there any way of making each feed write an individual article everytime its updated, allowing for commenting, etc?

I’ll take that as a no then ;) – I’m going to try and develop it, if anyone wants to help or has any tips/info please get in touch -> daisquared at gmail dot com

Offline

#79 2007-01-19 13:14:10

blueprint
Member
From: Netherlands
Registered: 2006-03-05
Posts: 43
Website

Re: [Archived] bit_rss

I installed bit_rss today and I’m not sure whether I understand it completely.

I added the follow code in my home page (the default page):
<txp:bit_rss feed="http://10.0.0.152/nb/rss" />

The result is that the last 10 articles are shown on the home page, according to the fields in the default rss form. But no link to a rss feed or whatever. What did I do wrong??

Offline

#80 2007-01-19 13:19:10

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

Re: [Archived] bit_rss

blueprint try <txp:permlink><txp:title /></txp:permlink> in your form

Offline

Board footer

Powered by FluxBB