Lifestream Sweetcron With ScrnShots

Posted on October 19, 2008

Today Eric Anderson (ScrnShots alter ego of esquareda) asked if there was a way to add your ScrnShots feed to lifestreaming app Sweetcron.

Sweetcron uses RSS feeds from webapps that you want to display in your lifestream, so I though how hard would it be to put this together? Originally I looked at the API docs and thought that I would put a plugin together, but it looks like Sweetcron is smart enough to do some basic parsing of RSS feeds and pull out images. Which is all we need.

So, if you want to add ScrnShots to your Sweetcron lifestream do the following:

  1. Add http://www.scrsnhots.com/users/{your username here}/screenshots.rss as a feed. For example my feed is at http://www.scrnshots.com/users/gregbell/screenshots.rss. Refresh your feeds and you should have your ScrnShots feeds mixed in.
  2. If your using the "Boxy" theme you have to edit the main theme file to display your screenshots properly. Open system/application/views/themes/boxy/_activity_feed.php. Find the block of code for Flickr and paste this line in directly beneath it:
  1.  
  2. <?php elseif ($item->get_feed_domain() == 'scrnshots.com'): ?>
  3. <p class="activity_image_text"><a href="<?php echo $item->get_permalink()?>/<?php echo $item->get_name()?>"><?php echo $item->get_title()?></a><span class="activity_image_content"></span></p>
  4. <a class="activity_image" href="<?php echo $item->get_permalink()?>/<?php echo $item->get_name()?>" style="background: url(<?php echo $item->item_data['image'] ?>) center center no-repeat"></a>
  5.  

And voila, you have beautifully formatted screenshots from ScrnShots in your lifestream.

Idea from Eric Anderson's post on the ScrnShot's Forums


6 Replies to "Lifestream Sweetcron With ScrnShots"

  • Eric Anderson
    October 19, 2008 (5:11 pm)
    Reply

    Oh, heck yeah!

  • Greg Bell
    October 19, 2008 (5:23 pm)
    Reply

    Nice. I am glad i could help out :)

  • Björn
    October 20, 2008 (12:20 pm)
    Reply

    Very nice thing. Is there a way to only show screenshots from certain tags?

  • Björn
    October 20, 2008 (1:10 pm)
    Reply

    Ok, sure. I’ll have to fetch my tag’s feed on ScrnShots :-)

  • Lifestream-Blog mit SweetCron | Webzeugkoffer Webdesign
    October 21, 2008 (4:28 am)
    Reply

    […] Lifestream Sweetcron With ScrnShots: Greg Bell erweiterte um ScrnShots […]

  • Eugene
    October 22, 2008 (2:54 am)
    Reply

    Nice article. Thanks. :) Eugene


Got something to say?

Some html is OK