[widget] AM Rss Reader
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions
View previous topic :: View next topic  
Author Message
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Fri Jan 04, 2008 15:41    Post subject: [widget] AM Rss Reader Reply with quote

*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 Wink

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 Wink ) 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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Fri Jan 04, 2008 16:49    Post subject: Reply with quote

How did you generate/display multiple feeds....(9) ?
_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Fri Jan 04, 2008 16:50    Post subject: Reply with quote

I have an "after posts" container, and I just slapped 9 widgets in it Wink

¥

_________________
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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Fri Jan 04, 2008 17:03    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Fri Jan 04, 2008 17:10    Post subject: Reply with quote

Neutral

Sheesh, I really need to teach you about widgets huh? Big Razz

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 Wink

¥

_________________
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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Fri Jan 04, 2008 17:15    Post subject: Reply with quote

Quote:
note: you only install the plugin once, the widgets are *copies*

Thanks, that line explains everything with rare clarity Smile
You can learn something everyday.

_________________
See the Sites in in Venice
Back to top
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Fri Jan 04, 2008 17:17    Post subject: Reply with quote

lol, that's the first time I've ever been accused of clarity Wink

¥

_________________
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
View user's profile Send private message Visit poster's website
texasag90
Hooked :)
Hooked :)

Joined: 28 Nov 2007
Posts: 106
Reputation: 36.9Reputation: 36.9Reputation: 36.9Reputation: 36.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 2

PostPosted: Fri Jan 04, 2008 23:37    Post subject: Reply with quote

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
View user's profile Send private message
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Sat Jan 05, 2008 0:26    Post subject: Reply with quote

@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
View user's profile Send private message Visit poster's website
texasag90
Hooked :)
Hooked :)

Joined: 28 Nov 2007
Posts: 106
Reputation: 36.9Reputation: 36.9Reputation: 36.9Reputation: 36.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 2

PostPosted: Sat Jan 05, 2008 0:39    Post subject: Reply with quote

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
View user's profile Send private message
EdB
/bb|[^b]{2}/

Joined: 05 Jan 2004
Posts: 7123
Reputation: 140.9 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 90

PostPosted: Sat Jan 05, 2008 3:18    Post subject: Reply with quote

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
View user's profile Send private message
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Sat Jan 05, 2008 6:13    Post subject: Reply with quote

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 Wink

Technically the widget is fully capable of producing the example page ( obviously, because it already does ) it's your skin that's not capable Wink

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 Rolling Eyes

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 Wink
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
View user's profile Send private message Visit poster's website
slamp
Expert
Expert

Joined: 23 Aug 2004
Posts: 688
Reputation: 86Reputation: 86Reputation: 86Reputation: 86Reputation: 86Reputation: 86Reputation: 86Reputation: 86Reputation: 86 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 7

PostPosted: Sat Jan 05, 2008 7:48    Post subject: Reply with quote

I was waiting for this since a long time.
Thank you very much.

_________________
Slamp::Blog [fr]
Demo large evopress skin [fr]
Support: irc://irc.freenode.net#b2evolution
Back to top
View user's profile Send private message Visit poster's website
¥åßßå
Blonde Bimbo

Joined: 07 Jan 2005
Posts: 6579
Reputation: 29.5Reputation: 29.5Reputation: 29.5 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 115

PostPosted: Sat Jan 05, 2008 14:21    Post subject: Reply with quote

Just an update, SimplePie just released version 1.1 of their API and they advise you upgrade Confused

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
View user's profile Send private message Visit poster's website
John
the uncertain

Joined: 22 Jun 2004
Posts: 2147
Reputation: 4.6Reputation: 4.6Reputation: 4.6Reputation: 4.6 add or subtract from this member's reputationadd or subtract from this member's reputation
votes: 27

PostPosted: Sat Jan 05, 2008 14:41    Post subject: Reply with quote

ooop's , what fine mess that got me into Smile

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    b2evolution Forum Index -> Plugins & Extensions All times are GMT - 5 Hours
Goto page 1, 2, 3, 4  Next
Page 1 of 4


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
b2evolution Support Forum RSS Feed Forums powered by php Bulletin Board