Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [Archived] bit_rss
We use your plugin in extensively in neme.org where we have 3 installs of txp and one punBB forum.
Is there a way to customise the location of the “simplepie_cache” folder – maybe through a preference in the plugin?
What would be great is to have just one simplepie_cache folder serving all installs…
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: [Archived] bit_rss
cache_dir (optional) Absolute path to the SimplePie cache directory. This directory must be writeable.
Default: $txpcfg[‘txpath’].’/tmp’ Example: simplepie=’/var/www/httpdocs/textpattern/tmp’
That should be the right parameter (qouted from the help).
Last edited by merz1 (2007-02-04 17:03:11)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: [Archived] bit_rss
merz1 wrote:
That should be the right parameter (qouted from the help).
Yeah, I use the /textpattern/tmp folder for my SimplePie caches, remember to change permissions on it.
There’s also different naming schemes for the cache files:
http://simplepie.org/docs/reference/config/set_cache_name_type/
Last edited by hcgtv (2007-02-04 17:50:35)
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#100 2007-02-04 18:26:53
Re: [Archived] bit_rss
Sorry, I didn’t dive too deep into SimplePie (parameters).
How do you use all those parameters with bit_rss?
Basically, how do you configure SimplePie with bit_rss?
Any How-To available/possible?
Last edited by merz1 (2007-02-04 18:27:36)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#101 2007-02-04 19:26:58
Re: [Archived] bit_rss
merz1,
I use the SimplePie Textpattern plugin and make the parameter changes in that plugin, it should be the same for bit_rss.
$feed->cache_max_minutes(30);
$feed->cache_location($txpcfg['txpath'] . '/tmp');
Those are the most common changes I make to the plugin.
We Love TXP . TXP Themes . TXP Tags . TXP Planet . TXP Make
Offline
#102 2007-02-04 22:43:29
Re: [Archived] bit_rss
Oh, I will check the source code when needed :-)
Thanks!
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#103 2007-02-28 23:46:24
Re: [Archived] bit_rss
Great plugin! :D
One problem: the article title is showing the title of the page not the title of the article. For instance, instead of showing the title “New Plugin! Woohoo!” it’s showing “SomeWebsiteName.com | Some Witty Remark Here” Is there any way to change this?
And is it possible to add a “Next” link to it to show older articles?
Last edited by wordgasm (2007-02-28 23:59:52)
Offline
#104 2007-03-01 15:23:21
Re: [Archived] bit_rss
@wordgasm: Did you check the original feed XML?
Testing bit_rss I have found plenty of feeds with wrong XML declarations and/or tagging.
Can you post the examples (bit_rss tag and feed source)?
@bit: Feature request
Exchange XML tags i.e. title=“description” or date=“pubDate”
Example for a stupid feed where this would be needed:
http://www.bverwg.de/enid/rss/pressemitteilungen.rss
Article numbers in title and title in description. Here I would love to have a single (!) feed parameter title=“description”
The feed parameter would look like feed=“feed1, feed2 title=“description”, feed3”.
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
#105 2007-03-02 18:11:14
Re: [Archived] bit_rss
Tag: <txp:bit_rss limit="20" feed="http://www.google.com/reader/public/atom/user/13819921661573396583/label/blogs" />
Then they are reposted here — I’m attempting to copy LiveJournal’s friends list using multiple feeds (made possible through Google Reader’s category clips).
Now I see the problem. :P Is it even possible to add multiple feeds (about 30-40) using this plugin?
The feed parameter would look like
feed="feed1, feed2 title="description", feed3"
.
I second demotion!
Offline
#106 2007-03-09 20:41:21
Re: [Archived] bit_rss
Hey guys,
I have installed this plugin and it’s working GREAT, however I have one need that I can’t figure out how to implement. Most likely because I’m very new to PHP, and I could use some help. Basically, I have bit_rss working fine, outputting its data from the form:
<txp:permlink><txp:title /></txp:permlink><br />
and this works well for all intents and purposes, however what I wanted to do was append a:
rel="external"
attribute to the <a>
tag that is output.
Is it even possible to accomplish this by editing the bit_rss plugin? I might not think so because it is using the <txp:permlink>
tags to create the hyperlink.
If I cannot do what I am trying to, any help or info would be greatly appreciated. Basically I’m just trying to get these RSS feed entries to open up in their own window, by using valid xHTML and Javascript (hence the rel="external"
attrib)
Thanks in advance all!
Offline
#107 2007-03-09 21:07:45
Re: [Archived] bit_rss
go edit bit_rss.
paste this in at the bottom:
function bit_external($atts)
{
global $thisarticle;
if (is_array($atts)) extract($atts);
$permwh = $thisarticle['permlink'];
$return = '<a href="'.$permwh.'" rel="external">';
if(!empty($pmlink))
{
$return .= $thisarticle['url'];
} else {
$return .= $thisarticle['title'];
}
$return .= '</a>';
return $return;
}
if this doesn’t work it’s not on me. I wrote it without testing. Now, when you call permlink call <txp:bit_external />
rather than the regular permlink textpattern tag. I built an option into that funtion so you can have it output the url, linked:
<bit_external />
will output: <a href="http://permlinkurl">Entry Title From RSS feed</a>
<bit_external pmlink="true" />
will output: <a href="http://permlinkurl">http://permlinkurl</a>
To just echo the url, do this:
function bit_external($atts)
{
global $thisarticle;
return $thisarticle['permlink'];
}
and call using <txp:bit_external />
with no attributes.
Offline
#108 2007-03-09 21:19:28
Re: [Archived] bit_rss
Walker, this works absolutely PERFECT, and I can’t thank you enough for such a quick reply. I feel like I owe you something for this, even though it was just a small function. I’m just really not into PHP that much to know any details about it, but you certainly do, and have saved the day for me. Thanks again!!
Offline