| View previous topic :: View next topic |
| Author |
Message |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Fri Jan 04, 2008 15:41 Post subject: [widget] AM Rss Reader |
|
|
*note* This is a widget, which means it's only for the 2.x series and won't run in other versions
There's been a few requests for an RSS feed reader on the forums, and Danny reminded me that we had a half-finished RSS plugin from the 1.6.x days, and wasn't it about bloody time I finished it ...... so I deleted it
Instead we decided to create a brand new widget based on SimplePie, which looks far more powerful than MagpieRSS which the original plugin used.
I know this is gonna shock y'all, but I actually created a readme which is included in the plugin, so I won't bore you by repeating myself, instead I'll just give yah a quick run down of how to use it.
First off grab yourself a copy of the zip ( AM Feed Reader ), unzip it, upload it to your plugins folder, meander into admin and install it. Now you need to wander over to your blogs widgets and click "add new widget", select the widget from your list, fill in all the boxes ( especially the feed url ) and press save. That's it, yer done!
If you want to see it in action then meander over to my blog ( Feeds I read )
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Fri Jan 04, 2008 16:49 Post subject: |
|
|
How did you generate/display multiple feeds....(9) ? _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Fri Jan 04, 2008 16:50 Post subject: |
|
|
I have an "after posts" container, and I just slapped 9 widgets in it
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Fri Jan 04, 2008 17:03 Post subject: |
|
|
So does that mean you installed the plugin/widget 9 times, as it only has a single input field for the feed url? _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Fri Jan 04, 2008 17:10 Post subject: |
|
|
Sheesh, I really need to teach you about widgets huh?
Ok, a widget is pretty much the same as a plugin except it has it's *own* settings for every single install.
This means that 2 widgets in the same container, or different containers in the same skin, or on different blogs etc, all have their own settings
This allows you to choose a unique set off settings for each install of the widget ( note: you only install the plugin once, the widgets are *copies* ), so you can choose different url, title, number of feed items, cache time, per feed
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Fri Jan 04, 2008 17:15 Post subject: |
|
|
| Quote: |
| note: you only install the plugin once, the widgets are *copies* |
Thanks, that line explains everything with rare clarity
You can learn something everyday. _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Fri Jan 04, 2008 17:17 Post subject: |
|
|
lol, that's the first time I've ever been accused of clarity
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
texasag90 Hooked :)

Joined: 28 Nov 2007 Posts: 106
     votes: 2
|
Posted: Fri Jan 04, 2008 23:37 Post subject: |
|
|
OK -- I'll bite. Where did the "after post" container come from? I'd love to put some Free HTML after every post. _________________ --------------------------------------------------------
MasonWorld | CochlearWorld | Good Bull Blog |
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Sat Jan 05, 2008 0:26 Post subject: |
|
|
@texasag90
This is an example for the "related Posts" widget by Yabba
In index.main.php a Post Bottom container following the tags
| Quote: |
<?php
// List all tags attached to this post:
$Item->tags( array(
'before' => '<div class="bSmallTags">'.T_('Tags').': ',
'after' => '</div>',
'separator' => ', ',
) );
?>
<?php
skin_container( NT_('Post bottom'), array(
// The following params will be used as defaults for widgets included in this container:
'block_start' => '<div class="$wi_class$">',
'block_end' => '</div>',
'list_start' => '<ul>',
'list_end' => '</ul>',
) );
?> |
_________________ See the Sites in in Venice |
|
| Back to top |
|
 |
texasag90 Hooked :)

Joined: 28 Nov 2007 Posts: 106
     votes: 2
|
Posted: Sat Jan 05, 2008 0:39 Post subject: |
|
|
Cool. I get it now. Thanks much.
Hangin' with you guys is like drinking from a firehose. _________________ --------------------------------------------------------
MasonWorld | CochlearWorld | Good Bull Blog |
|
| Back to top |
|
 |
EdB /bb|[^b]{2}/
Joined: 05 Jan 2004 Posts: 7123
  votes: 90
|
Posted: Sat Jan 05, 2008 3:18 Post subject: |
|
|
Sorry friend, but the interface is not easy to use. Too geeky yah? Can you "dumb it down" to where I get to include the rss URL I want without having to know what $whatever$ means?
Also, the plugin itself isn't capable of providing the totally cool page you showed as an example. I wish it was because that's a cool way to show what feeds you're into following. Or maybe I'm too stupid to figure it out? |
|
| Back to top |
|
 |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Sat Jan 05, 2008 6:13 Post subject: |
|
|
I do tend to make things a bit geeky huh? I'll have a play at making them a tad more "human". There will be a major redesign of widgets and settings in version 3.0 of the core, part of this could be a kinda simple/expert settings which would help tremendously .... guess I need to prod the FG down the right path for that one
Technically the widget is fully capable of producing the example page ( obviously, because it already does ) it's your skin that's not capable
Here's how I achieved it though, because just saying "my skin is cooler than an arctic wind and yours sucks more than a $2 whore" isn't helpful
In my skins index.main.php I added a new container, similar to my "post bottom" container that John mentioned, after the whole of the post loop :
| PHP: |
// ------------------------- END OF MAIN CONTENT TEMPLATE ---------------------------
?>
<?php
skin_container( NT_('After Posts'), array(
) );
?>
</div>
<?php
// ------------------------- HTML FOOTER INCLUDED HERE --------------------------
|
Then I created a brand new blog, because I wanted to keep all my feeds separate from my main blogs, which I called "feeds" in a total imaginative and non-geeky way. I unticked all the bits required to keep it out of my bloglist ( not that I have a typical bloglist, but I like to future proof myself ), killed pings and trackbacks and stuff, picked my normal skin and hit save.
Then I made a post in the blog so I didn't have to read "there is nothing to display" everytime I wanted to read my feeds.
With that all setup I "reloaded" my skin ( global settings > skin install > hit the reload icon next to the skin ) so that the container was available and then meandered over to the widget settings for my brand new, superbly named, feeds blog and slapped in multiple copies of the widget ,1 for each feed I wanted. The rest of the layout is just a bit of css to limit the width and float the lists so they (mostly) stack nicely at my res, which is the only res my feeds need to work in
| Code: |
/* RSS Feeds */
.widget_plugin_am_rssreader{
width:32%;
float:left;
border:1px solid #cc9;
margin:0 1px 4px 1px;
}
.widget_plugin_am_rssreader h3{
margin:0;
padding:0;
text-align:center;
}
.widget_plugin_am_rssreader ul{
margin:4px 0 8px 0;
padding:0 1em;
list-style:none;
} |
Since I've set it up though, I've been considering changing all the cache lifetimes to odd values so that all (10) don't expire at the same time which leads to a fair delay whilst all the feeds are refreshed.
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
slamp Expert

 Joined: 23 Aug 2004 Posts: 688
          votes: 7
|
|
| Back to top |
|
 |
¥åßßå Blonde Bimbo
 Joined: 07 Jan 2005 Posts: 6579
    votes: 115
|
Posted: Sat Jan 05, 2008 14:21 Post subject: |
|
|
Just an update, SimplePie just released version 1.1 of their API and they advise you upgrade
Unfortunately my blog is currently undergoing a dns change so you'd need to download the new version from their site ( download 1.1 ). The only file you need to upload is simplepie.inc
¥ _________________ I may have opened the door but you entered of your own free will
| normal life wrote: |
yabba_hh: I think, I type, I read what I type, I think "fuck, what was I thinking when I typed that?!"
tuxnus: that's two more thoughts than I give you credit for |
|
|
| Back to top |
|
 |
John the uncertain
Joined: 22 Jun 2004 Posts: 2147
     votes: 27
|
Posted: Sat Jan 05, 2008 14:41 Post subject: |
|
|
ooop's , what fine mess that got me into
| Quote: |
| Notice: Undefined variable: url in /home/mysite/plugins/am_rss_reader_plugin/simplepie.inc on line 5463 |
*Edit* But the previous one back and no errors _________________ See the Sites in in Venice |
|
| Back to top |
|
 |
|