-
Website
http://evansims.com/ -
Original page
http://evansims.com/projects/friendfeed_activity_widget -
Subscribe
All Comments -
Community
-
Top Commenters
-
Hazman Aziz
5 comments · 1 points
-
Rob Bluey
3 comments · 2 points
-
Devin Reams
6 comments · 1 points
-
edwinv
4 comments · 6 points
-
Araceli
2 comments · 2 points
-
-
Popular Threads
The "Wednesday 16:33" issue is appearing because PHP is treating the time as a 0 value. Dates come in GMT format, like this: "2008-10-29T08:05:38Z" but not all PHP installs understand it. I just knocked out a quick fix for those that will be interested.
Change the following line (it's around line 380 in /wp-content/plugins/friendfeed-activity-widget/widget.php):
echo date($date_format, $event['published']);
to:
echo date($date_format, strtotime(preg_replace('/[^\d:-]/', ' ', $event['published']))) . '
';
If you want to account for your time zone, you could change that line to look like:
echo date($date_format, strtotime(preg_replace('/[^\d:-]/', ' ', $event['published'])) + (1 * 3600)) . '
';
where the + (1 * 3600) is the offset. This example is +1hr GMT. If you wanted +12 you'd put " + (12 * 3600) " and for -4 GMT " - (4 * 3600)".
The time zone setting is actually stored in the Wordpress database so it's really a quick hack of a fix until Evan finishes his "version 2".
The theme you're using appears to be missing the wp_head() call in the <head></head> tag. This is also why you may have noticed limited functionality in other areas, like missing rss feeds, the inability of third party tools to login to your site, and so forth. Adding that tag will fix it.
http://codex.wordpress.org/Hook_Reference/wp_head
[Warning: assert() [function.assert]: Assertion failed in /home/ctap/public_html/wp-content/plugins/friendfeed-activity-widget/friendfeed.php on line 18; fatal error: Call to undefined function curl_init() in /home/ctap/public_html/wp-content/plugins/friendfeed-activity-widget/friendfeed.php on line 258]
Then realized cURL needed to be activated.
Now that curl is on, the widget works well, except that long images from my FF stream were breaking out of the widget frame and look super-ugly. So I added your suggested CSS:
#ff-activity img { width: 55px; margin: 0 5px 5px 0; }
to my style.css and all seems great. (Just left this for the sake of future user issues)..
This is great. Thanks for creating it. I'm working with a new theme, and while everything works fine, the font size is huge. Do you know how I go about fixing this? See the middle column.
http://robertbluey.com/beta/
Thanks,
Rob
Thanks! Your theme is looking quite nice. A quick glance with FireBug looks like you've got a CSS rule defined for .title with a font size of 28px. You're probably using that for your post headings or something. Unfortunately that's the same class the widget uses. The easiest way to fix that would to be more specific with your .title rule; for example, div.post .title. I'm not sure where exactly you're using that .title attribute, but that's one example.
Let me know if that solves the problem for you. Thanks.
I have one additional question: It appears every item is showing up with the same timestamp -- Wednesday 17:33. Do you know why this might be happening?
Really looking forward to having this on the new blog. It's a great addition.
Your widget seems to be great!! But I've got the issue : "%BEG_OF_TITLE%My friendfeed entries%END_OF_TITLE%" when I activate it on widget menu.
I'm on Worpress 2.5, new installation from scratch.
Regards
Yes I'm using PHP5 on my server. I'll check the log to see if there is a specific problem.
Best Regards,
@Kevin Thanks! You might need to add a line of CSS like this: #friendfeed-activity li { display: list-item; }; it appears your theme changes the traditional behavior of lists in your sidebar.
Would it be possible to get the code to insert the stream, not using widgets ?
Thanks :)
Thanks for your comment. You should be able to add the same output the widget produces anywhere in your templates by using the friendfeed_activity() function. I added the function in 1.0 but have not had a chance to test it thoroughly, so please let me know if you have any problems with it.
$options['username'] = "yourUsername";
$options['apikey'] = "yourAPIkey";
$options['limit_events'] = 10;
...etc, etc...
friendfeed_activity( $options );
Thanks for this awesome plugin Evan!
$options['limit_events'] = "10";
friendfeed_activity( $options );
(The code above will show the standalone friendfeed with the settings from when I had it configured as a widget to show 5 items, and ignores the new request to show 10 items.)
I'm confused. I know I could just hack the settings I want into widget.php, but that makes upgrades cumbersome, and I know there's a better, "right" way to do this... isn't there? Then again, it's late, and my brain isn't exactly in PHP mode right now.
Any thoughts on where the breakdown might be?
JAC
@Jandy It appears Lee has identified the problem; I'll try and get this resolved in the next release for you both. Thanks
Any ideas?
Strange... could you check if your /friendfeed-activity/ folder is CHMOD 777? It's possibly a permissions issue.
$path = substr($path, 0, strrpos($path, '/') + 1);
Changing that to:
$path = substr($path, 0, strrpos($path, '\\') + 1);
Makes it work. I'm not a PHP expert...so I am not sure how to change this into something that will work on all platforms.
Is there a way to use this plugin with a non-widgets theme?
Thank you!
I spent the day hacking together a generic PHP widget that can add the functionality anywhere with a single line of code and passing in an options array (user, apikey). Pretty much just stripped all the WP out of the plugin. Also changed the caching logic so it can support multiple users. I don't particularly like the approach to the render method. Wondering if there is some way to clean that up a little and modularize it. So many contextual switches and regex expressions. It tooke me a while to figure things out. I fixes a bug for covering the case where links are embedded in a Twitter post. There are some cases that aren't covered by the current code base:
function makeClickable($text){
return ereg_replace("[[:alpha:]]+://[^[:space:]]+[[:alnum:]/]","\", $text);
}
Very Cool!
-Travell
@Travell - Thanks, but I'm not sure I follow what you mean. You hacked my widget to ... eh? Or are you saying you built your own? The next version of the widget has a different rendering method, though it follows the same fundamental approach. It offers a lot of customization on a per-service basis, which is what I wanted.
Also keep in mind that now without widgets there's no way to configure the plugin, so I think you should move the settings outside Widgets.
Thank you.
Just sharing some ideas. I think you should definitely try to spend some time making a generic library. My needs are very specific so I won't be investing the time that it takes to support a community, but I did want you to know that there is an opportunity here to make a useful set of widget libraries.
Honestly I'm not sure what I could provide in terms of building a library that the FriendFeed wrapper doesn't do on it's own. It's very easy to adapt it to whatever situation you need. They did a great job with it.
Thanks for the comments, Travell!
Timezone issue is not solved
Edit: Go ahead and update to the latest version to fix the icons bug. :)
PS: You should fix a minor bug. The folder decompressed from the zip is named: "friendfeed-activity-widget"
The CSS link in the header links to "/friendfeed-activity/"
This is unfortunately a problem with the way the WordPress Extend site archives and distributes things. I'll try and find a workaround in the next release that allows for the plugin to be hosted in directories other than /friendfeed-activity/ though.
Edit: Go ahead and update to the latest version to fix the icons bug. :)
So I tried to simply rename the directory, but it still doesn't work well on my blog. I'll investigate a bit more, but if you can look into that it'll be nice.
My widget looks like that on my blog : http://img104.imageshack.us/my.php?image=friend...
Thanks! :-)
Edit: Go ahead and update to the latest version to fix the icons bug. :)
bye bye baby. don' t be long. i' ll worry about you while you' re gone.TIA.
Since the feed part works ok, can you recommend where to comment out that part of the code to not pull the date string at all?
If you'd prefer to truly remove the output, you can edit widget.php and do a search for "ff-meta". Comment out from that line down to the closing small and p tag.
Of course, the problem with editing the widget directly is that those changes will be overwritten next time there's an update.
Hope this helps!
nbd - thanks for the advice anyway. the code is tight otherwise - love the idea. good luck with it...
perfect.
Regards
I would like to put the friendfeed widget on my page. Is it possible for you to share with us the script to call out the widget?
Thanks
Cheers. It is exactly what I am looking for :-)
Ah, I gotcha! Yup, there is a non-widgetized interface you can use to output anywhere in your theme. Just call friendfeed_activity(). I've heard a few reports that this method is buggy though, so don't be surprised if it doesn't work for you. I'll try to go through it and fix any issues in the next patch.
Thanks for both your reply. Yups, that what I meant.
I will tried on my weblog tonight.
BTW, I like the comment rating up and down. It is fun, including the point allocated.
If you guys don't mind, where can I download that plugin.
Cools, thanks for the great work guys. Been lately, very busy with some conference.
Regards,
Hazman Aziz
http://hazmanaziz.com
gosh , i am disoriented today morning, since my other's half left me...
IE7 and FF3.
Thanks
pete
Sounds like there's a configuration issue somewhere that's causing the wrong path to get reported for the CSS file. That tiling issue occurs if the CSS file isn't get loaded. Can you tell me the URL you're using the plugin at? Maybe I can help track down the cause.
>Unable to write to cache file. Please ensure the cache.dat has proper write-access permissions.
Please, where is that file (cash.dat)??
require_once("JSON.php");
to
if (!class_exists('Services_JSON')) require_once(dirname(__FILE__).'/JSON.php');
Good call on that. I'll be sure to get your fix added into the next version. Thanks!
Everyhings fine now, i create cash.dat and chmod it to 444
Once more, thank You for cool soft.
However, with Picassa whether the plug-in works improperly or these are the problems of Friend Feed. URL that is formed leads to the page 404.
You can see it at idcontent.com
Is there a way to remove the MY FRIENDFEED PROFILE section from the bottom?
Thanks!
I don't currently have an option in there to disable the Profile link, but I'll add that to the to-do list. Thanks.
BTW, great plugin, really :)
Site: http://thedailyjoe.net/?page_id=71
(I'm testing several plugins - yours in on page Social3!)
Thanks in advance for your help.
John
By default Wordpress doesn't allow you to execute PHP within a page. The tag you're trying to use is meant to be ran from the template/themes files.
You can use a plugin like ExecPHP to do what you're trying, but I'm a bit weary of recommending that. Permitting arbitrary code execution in your Wordpress output opens your blog up to potential hacks and exploits- though I imagine the risk is minimal. If you're willing to take the risk, that's an option. Otherwise, I'd stick with editing your theme files or just using the Widget.
Awesome plugin any updates on manually adding the code for folks that don't like to use sidebar widgets. I added the proper friendfeed_activity() tag but in the sidebar it says: "Please configure your FriendFeed widget."
Still working on it; will hopefully have a fixed build next week. Thanks!
Great work
Your wish is my command. I'll have a "Hide Blog Events" option in the next build. Stay tuned.
"Your feed could not be retrieved at this time. Try again later."
Please let me know what I might be doing wrong.
Thanks
I haven't experienced any strange results from my Google Reader output; if you would, pop your cache file to me: hello at evansims. I'll try and track down the issue. Thanks!
Also, you have "their", which is plural; it'd be nice if we could indicate if we were a "he" or "she" or "they".
Still, great plugin!
Sounds like a great plugin, looking forward to being able to use it.
Is there a way to more easily control some things? Pandora album covers are HUGE!
You can control image sizes by adding rules to your theme's CSS. My site, for example, locks image sizes to a maximum width of 55px. Modern browsers will scale images proportionally if you define one dimension and not the other, so it works out well. Here's the CSS I use:
#ff-activity img { width: 55px; margin: 0 5px 5px 0; }
Feel free to try that on your site, and let me know how it works out.
I ended up modifying the php code because for some reason I had a mental moment and forgot you could force image sizes through CSS. I'll go back and change that now.
Thanks for this great widget.
Wohoo! Got the icons to show up.
Yes, it's my theme. I don't use sidebar widgets. Instead, I enter the PHP code directly to make each one unique.
Since I pulled the first post outside the loop to style the latest post differently from the old posts, then I added a call for a dynamic sidebar after the first post, and this is where I added your plugin.
It's up and running though the date is stuck... even though it does update the feed, the date is stuck on last week. Any ideas what I did wrong?
Like others here, I also look forward to the "friendfeed_activity()" call. This is my favorite plugin. Thanks!
By the way.. the twitter-icon sucks so big because of that white halo-stuff.. Would be cool if you could integrate an own clean one.. i an provide you a fine png.
The icons are actually provided by and pulled from FriendFeed. You could override them using CSS. For example, div.ff-twitter { background-image: url(path/to/your/icon'); }
Thanks!
FriendFeed unfortunately does not output it's grouped format from the API, so much of the work the widget does it formatting things and making them look more or less along the lines of what you'd see on FriendFeed. It's unfortunate they don't offer an API hook for fetching things just as you'd see them on their site.
the main thing im after is to get the "just added youtube fav" and " just dugg a story on digg " from friendfeed to make a blog post in wordpress.
I am working on a friendfeed page template which displays all the activities in a separate page using the same core of the widget. It's pretty sweet too. Shouldn't take much more time to work the kinks out.
Cheers ^^
I am creating a blog for some friends and would like to be able to use more than one FriendFeed widget. How could I do that? Basically it's a dual author blog and they want both sets of feeds. The current plugin only allows for one. Could you make it do multiple? Or is there a way I can make it do more than one widget?
Yeah, I haven't had a chance to get Picasa formatting in there yet, which is why you're seeing odd things like that. I'll make that a priority for the next version. Thanks!
I haven't got any emails from you; could you try sending it again? hello at evansims dot com. In regards to the 2.6.1 upgrade, let me upgrade my blog real quick and see if I encounter that problem. Will update shortly.
EDIT: Nevermind Paul, I did get your email. It got sorted into Spam for some reason. I'll get back to you soon on that.
CURL support enabled
CURL Information libcurl/7.10.6 OpenSSL/0.9.7a ipv6 zlib/1.1.4
see http://austinlifestyles.com/phpinfo
Not sure how to determine the safemode thing.
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
*
springnet friendfeed
Error – Unable to write to cache file. Please ensure the cache.dat has proper write-access permissions.
I didn't see a file called cache.dat anywhere in my wordpress directory though.
Still working on troubleshooting your problem with the other blog, but you can resolve this particular issue by manually creating the cache.dat file and setting it to the proper write permissions.
I'd like to second (or third, or fourth, or whatever) the notion of having this work on a normal page as well. I wouldn't need any different functionality, just the opportunity to have it do the same things it does in the sidebar, but giving the additional space available in the many body area of a WP page. Perhaps the same items from inside the widget specs could be added to an Options screen, and then a <!-- --> tag could just call it on the page you want it on? Just a thought.
Anyway, nice work!
Thank you - see your widget in use on my blog here: http://jamesspratt.org/blog/
Remember to follow my blog updates via RSS or Email (at http://www.feedburner.com/fb/a/emailverifySubmi... ) to get the latest news on v2.0. Thanks!
One problem I've having is that all the date/time stamps are stuck on "Wednesday 16:33"
Any suggestions?
FriendFeed's own badges including not only the Feed Widget which is like your Activity Widget, but they also have a badge which lets you show, with icons and links, all the different services you've got on your FriendFeed.
How *awesome* it would be if your widget provided the option of adding this sort of thing below the activity items, right below the link to "My FriendFeed profile..." I've got ideas on a few bells and whistles to flesh this out, and I'd be happy to share them with you if you ever decide you'd want to pursue adding this to the widget!
FYI, this was inspired by two things. First, Twitter has so many more users than FriendFeed (so I believe, at least), and even though the dates below each Twitter update are linked to the Twitter account, it seemed to me this might not be obvious enough, that an explicitly link like "View my Twitter" or "Follow me on Twitter" might better encourage people to actually follow. This actually had me considering abandoning your FriendFeed widget, but I'd hate to do that because I like that it includes all the other non-Twitter stuff, too.
The other things was, even aside from Twitter/FriendFeed, I've looked for a quick and easy way to provide a list of links with icons to the various sites at which I have accounts. Then I realized, duh, FriendFeed might be totally complete, but most of it's there, and boom, their Badge sort of does it.
Anyway, food for thought!
I'm using Wordpress 2.5 and PHP 5, but I'm getting the following error message on my widgets page:
%BEG_OF_TITLE%Friendfeed Activity Stream%END_OF_TITLE%
Error – Unable to write to cache file. Please ensure the cache.dat has proper write-access permissions.
I'm using no other plug-ins apart from Akismet on this Wordpress install.
How can I resolve this issue?
http://www.igorthetroll.com
I program PHP so I can probably figure it out, but do not want to waste time right now. If you have an easy hack let me know and I will grease monkey it.
Thanks,
Igor
And thanks for the awesome plugin. Other than this minor issue, it works fabulously out of the box. I love it!
of the browsers I've tried.
Screenshot here: http://www.citrano.com/pix/friendfeed-wallpaper...
for whatever reason... I'd normally say it's an installation problem
with a setup, but since you're seeing it on mine I can only figure
there is something stopping it from loading properly for you. Are you
behind a firewall or anything?
always, but ... that can't be the issue...