PDA

View Full Version : Face RSS Feeder App


Mike Phillips
30th November 2007, 14:47
Thanks for the great tut, it has come in very useful. I was just wondering if anyone could help me on one further addition I would like to make.

Basically, using this code:
$items = array_slice($rss->items, 0, $num_items);
foreach ( $items as $item ) {

You can control how many posts show in the application. Ideally I want to hand that control over to the user of the application.

Basically, on a new tab, called options I would like the user to be able to choose from 5 radio buttons, labelled from 1 - 5. If the user selects 1, only one post is shown etc etc.

Does anyone know how to go about doing that?

Mike Phillips
30th November 2007, 16:40
Also, I have run into a problem with UTF encoding. Namely that apostrophe's in my posts get parsed as question marks. This is down to the magpie script, but I have not been able to find a way around this. Has anyone else come accross this and found a solution?

falko
1st December 2007, 13:48
Thanks for the great tut, it has come in very useful. I was just wondering if anyone could help me on one further addition I would like to make.

Basically, using this code:
$items = array_slice($rss->items, 0, $num_items);
foreach ( $items as $item ) {

You can control how many posts show in the application. Ideally I want to hand that control over to the user of the application.

Basically, on a new tab, called options I would like the user to be able to choose from 5 radio buttons, labelled from 1 - 5. If the user selects 1, only one post is shown etc etc.

Does anyone know how to go about doing that?
Basically, you must pass on the user's selection to the Magpie script; $num_items should then contain the user's selection.