Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Flickr Photostream for Sidebar - guinea pigs requested!
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 1 - 25 of 33 - Collapse all  -  Translate all to Translated (View all originals)   Newer >
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul Ingles  
View profile  
 More options Nov 28 2006, 11:53 am
From: "Paul Ingles" <paul.ing...@gmail.com>
Date: Tue, 28 Nov 2006 08:53:06 -0800
Local: Tues, Nov 28 2006 11:53 am
Subject: [PLUGIN] Flickr Photostream for Sidebar - guinea pigs requested!
Hi All,

I've been playing around with Mephisto the last few days. Although I'm
thinking of building a different plugin, I've tried writing something
equivalent to Typo's Flickr Sidebar Component.

So, inside your template you can use the following:

--snip--

  {% flickrphotostream feed:
http://api.flickr.com/services/feeds/photos_public.gne?id=57966634@N0...
count: 6 %}
    <li><a href="{{pic.link}}"><img src='{{pic.square}}'
alt='{{pic.title}}' /></a></li>
  {% endflickrphotostream %}

--snip--

Passing parameters for the feed URL (your RSS feed) and the number of
items you'd like to include. It uses the FlickrAggregation library code
from Typo, but there's no reason why it couldn't be changed to
something else in the future (like Scott Raymond's Flickr library that
Mephisto includes for it's flickr macro).

All you should need to do is:

/mephisto pablo$ script/plugin install
http://www.engross.org/svn/mephisto_plugins/mephisto_flickr_photo_str...

Then, add the liquid markup I included at the top and you're away.

So, if any adventurous folk want to install it and give it a whirl, I'd
much appreciate it. Likewise, if you want to take a look at the code
feel free at:

http://www.engross.org/svn/mephisto_plugins/mephisto_flickr_photo_str...

It's still a little rough and ready, and there are _definitely_ things
I'm not happy with the way I had to test the liquid blocks, but as far
as I can see, it works ok.

I'd prefer comments to be replied to here if possible.

Assuming it all goes reasonably well for people I'll carry on with the
refactoring and improvements, and eventually, a blog post about the
experience.

Thanks!
Paul


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Ingles  
View profile  
 More options Nov 28 2006, 12:00 pm
From: "Paul Ingles" <paul.ing...@gmail.com>
Date: Tue, 28 Nov 2006 09:00:19 -0800
Local: Tues, Nov 28 2006 12:00 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
D'oh, thought I'd prefixed the subject with [PLUGIN]. Ah well, its kind
of a plugin announcement :)

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Nov 28 2006, 1:01 pm
From: "empath" <emp...@gmail.com>
Date: Tue, 28 Nov 2006 18:01:42 -0000
Local: Tues, Nov 28 2006 1:01 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Do you have a demo online?  This looks great, I was playing around with
different ways of doing this myself.  I'll install it tonight and let
you know what I think.

On Nov 28, 11:53 am, "Paul Ingles" <paul.ing...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Ingles  
View profile  
 More options Nov 28 2006, 2:39 pm
From: "Paul Ingles" <paul.ing...@gmail.com>
Date: Tue, 28 Nov 2006 11:39:27 -0800
Local: Tues, Nov 28 2006 2:39 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
I do, you can check out: http://www.oobaloo.co.uk/

I've added it to show 8 photos down the right-side of the Scribbish
theme. All pretty simple, would be happy to share the CSS/XHTML too.
Anyway, try the install and let me know if you have problems!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Nov 28 2006, 3:12 pm
From: "empath" <emp...@gmail.com>
Date: Tue, 28 Nov 2006 20:12:29 -0000
Local: Tues, Nov 28 2006 3:12 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
If you're going to write this up for an article anyway, something I
think that would be very useful is a general explanation for how to use
liquid to present any collection of items.  I've looked at a few of
these plugins and I can't figure out how they work at all - for
example, what 'super' is and how the render(context) block works.

On Nov 28, 2:39 pm, "Paul Ingles" <paul.ing...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Nov 28 2006, 8:02 pm
From: "empath" <emp...@gmail.com>
Date: Tue, 28 Nov 2006 17:02:22 -0800
Local: Tues, Nov 28 2006 8:02 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
I get this error-- exception caught, then the

% flickrphotostream feed:
http://api.flickr.com/services/feeds/photos_public.gne?id=57966634@N0...
count: 2 %}
    <li><a href="' was not properly terminated with regexp: /\%\}/

#{RAILS_ROOT}/vendor/plugins/liquid/lib/liquid/block.rb:30:in `parse'
#{RAILS_ROOT}/vendor/plugins/liquid/lib/liquid/document.rb:5:in
`initialize'
#{RAILS_ROOT}/vendor/plugins/liquid/lib/liquid/template.rb:58:in `new'
#{RAILS_ROOT}/vendor/plugins/liquid/lib/liquid/template.rb:58:in
`parse'
#{RAILS_ROOT}/vendor/plugins/liquid/lib/liquid/template.rb:46:in
`parse'
#{RAILS_ROOT}/app/models/site.rb:277:in `parse_template'
#{RAILS_ROOT}/app/models/site.rb:167:in `render_liquid_for'
#{RAILS_ROOT}/app/controllers/application.rb:49:in
`render_liquid_template_for'
#{RAILS_ROOT}/app/controllers/mephisto_controller.rb:11:in `send'

On Nov 28, 2:39 pm, "Paul Ingles" <paul.ing...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Nov 28 2006, 8:11 pm
From: "empath" <emp...@gmail.com>
Date: Tue, 28 Nov 2006 17:11:07 -0800
Local: Tues, Nov 28 2006 8:11 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
There seems to be some problem in what you posted in this thread as the
template code.  Cutting and pasting from the readme worked.

On Nov 28, 8:02 pm, "empath" <emp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Nov 28 2006, 8:24 pm
From: "empath" <emp...@gmail.com>
Date: Wed, 29 Nov 2006 01:24:53 -0000
Local: Tues, Nov 28 2006 8:24 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Will it work for any other feeds besides user feeds?

On Nov 28, 8:11 pm, "empath" <emp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Palmer  
View profile  
 More options Nov 28 2006, 9:27 pm
From: "Justin Palmer" <encyteme...@gmail.com>
Date: Tue, 28 Nov 2006 20:27:24 -0600
Local: Tues, Nov 28 2006 9:27 pm
Subject: Re: [Mephisto] Re: Flickr Photostream for Sidebar - guinea pigs requested!

Nice work Paul!  I'll be looking to add this to my blog soon.

On 11/28/06, empath <emp...@gmail.com> wrote:

--
Justin Palmer
http://encytemedia.com | http://mephistoblog.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Richardson  
View profile  
 More options Nov 29 2006, 12:31 am
From: "David Richardson" <channel...@gmail.com>
Date: Wed, 29 Nov 2006 05:31:17 -0000
Local: Wed, Nov 29 2006 12:31 am
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Thanks Paul.
If one adds the picture title to the <a> link it looks a little more
polished :-)
<a href="{{pic.link}}" title="Your feed name - {{pic.title}}">

Is there a way in liquid to address the pictures individually to create
a more random layout?

david richardson


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marten  
View profile  
 More options Nov 29 2006, 3:33 am
From: "Marten" <m.veldth...@gmail.com>
Date: Wed, 29 Nov 2006 00:33:28 -0800
Local: Wed, Nov 29 2006 3:33 am
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Paul, thanks for this plugin, I've been waiting for something like this
for a while now. On my site though, it doesn't seem to take the latest
6 photos? Compare http://marten.veldthuis.com/ and
http://flickr.com/photos/marten

The code I have in layout.liquid:

      <h2>Flickr</h2>
        {% flickrphotostream feed:
http://api.flickr.com/services/feeds/photos_public.gne?id=44917525@N0...
count: 6 %}
                <a href="{{pic.link}}"><img src='{{pic.square}}' alt='{{pic.title}}'
/></a>
        {% endflickrphotostream %}

Any thoughts on why this would be happening?

- Marten


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Ingles  
View profile  
 More options Nov 29 2006, 4:44 am
From: "Paul Ingles" <paul.ing...@gmail.com>
Date: Wed, 29 Nov 2006 01:44:58 -0800
Local: Wed, Nov 29 2006 4:44 am
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Hi Marten,

The FlickrAggregation class automatically randomises the feed on line
21 when it does:

num.times {|x| bag << set.delete_at(rand(set.size))}

There's no reason you couldn't change that to just pull the n first
items.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "[PLUGIN] Flickr Photostream for Sidebar - guinea pigs requested!" by Filipe Rocha
Filipe Rocha  
View profile  
 More options Nov 29 2006, 7:18 am
From: "Filipe Rocha" <filipero...@gmail.com>
Date: Wed, 29 Nov 2006 12:18:23 +0000
Local: Wed, Nov 29 2006 7:18 am
Subject: Re: [Mephisto] [PLUGIN] Flickr Photostream for Sidebar - guinea pigs requested!

Nice Job Paul. Up and running.

On 11/28/06, Paul Ingles <paul.ing...@gmail.com> wrote:

--
WINDOWS: "Where do you want to go today?"
LINUX: "Where do you want to go tomorrow?"
BSD: "Are you guys coming or what?"

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "Flickr Photostream for Sidebar - guinea pigs requested!" by empath
empath  
View profile  
 More options Nov 29 2006, 9:54 am
From: "empath" <emp...@gmail.com>
Date: Wed, 29 Nov 2006 06:54:49 -0800
Local: Wed, Nov 29 2006 9:54 am
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
If you have lightbox 2.0 installed, try this:

{% flickrphotostream feed:
http://api.flickr.com/services/feeds/photos_public.gne?id=57966634@N0...
count: 6 %}
                <a href="{{pic.image}}" rel="lightbox"><img src='{{pic.square}}'
title='{{pic.title}}' /></a>
        {% endflickrphotostream %}

That will use lightbox and with the picture title as the caption.  If
you use rel="lightbox[SetName]" instead, it'll make a slideshow.

Question, is there a way to get the url for the original picture?
pic.image seems to go to a slightly smaller version.

On Nov 29, 12:31 am, "David Richardson" <channel...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Nov 29 2006, 8:34 pm
From: "empath" <emp...@gmail.com>
Date: Thu, 30 Nov 2006 01:34:31 -0000
Local: Wed, Nov 29 2006 8:34 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
{% flickrphotostream feed:
http://api.flickr.com/services/feeds/photos_public.gne?id=57966634@N0...
count: 6 %}
                <a href="{{pic.image}}" rel="lightbox[setname]"  title="{{pic.title}}
&lt;br /&gt;&lt;a href=&quot;{{pic.link}}&quot;&gt;Comment&lt;/a&gt; on
this picture!"><img src="{{pic.square}}" /></a>
        {% endflickrphotostream %}

I think this one is even better.  It creates a slideshow of the images
with lightbox and includes a caption with the name of the photo and a
link back to the original flickr page.  Assuming you have lightbox 2.0
installed, that is.

On Nov 29, 9:54 am, "empath" <emp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Filipe Rocha  
View profile  
 More options Nov 30 2006, 6:50 am
From: Filipe Rocha <filipero...@gmail.com>
Date: Thu, 30 Nov 2006 11:50:51 +0000
Local: Thurs, Nov 30 2006 6:50 am
Subject: Re: [Mephisto] Re: Flickr Photostream for Sidebar - guinea pigs requested!
Nice one, empath. Thank you.

On Thursday 30 November 2006 01:34, empath wrote:

--
WINDOWS: "Where do you want to go today?"
LINUX: "Where do you want to go tomorrow?"
BSD: "Are you guys coming or what?"

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Ingles  
View profile  
 More options Dec 2 2006, 11:35 am
From: "Paul Ingles" <paul.ing...@gmail.com>
Date: Sat, 02 Dec 2006 08:35:46 -0800
Local: Sat, Dec 2 2006 11:35 am
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Thanks for that David, I like it!

I've just committed in a change for this - I couldn't resist getting my
blog wired up with Lightbox ;)

Anyway, instead of {{pic.image}} use {{pic.medium}} and that'll do it!

You can see it in use on my blog: http://www.oobaloo.co.uk/


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Dec 27 2006, 12:59 pm
From: "empath" <emp...@gmail.com>
Date: Wed, 27 Dec 2006 17:59:27 -0000
Local: Wed, Dec 27 2006 12:59 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
The plugin seems to be broken.

The all of the image tags (but not title and description produce the
following error)

Liquid error: undefined method `first' for nil:NilClass

On Nov 28, 11:53 am, "Paul Ingles" <paul.ing...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
empath  
View profile  
 More options Dec 27 2006, 3:56 pm
From: "empath" <emp...@gmail.com>
Date: Wed, 27 Dec 2006 20:56:55 -0000
Local: Wed, Dec 27 2006 3:56 pm
Subject: [Patch] Flickr Photostream for Sidebar - guinea pigs requested!
Flickr changed their api:

Change this line in:

flickr_aggregation.rb

    def image
      description.scan( /(http:\/\/farm\d*.(static|photos).*?\.jpg)/
).first.first
    end

On Dec 27, 12:59 pm, "empath" <emp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Justin Hernandez  
View profile  
 More options Dec 27 2006, 7:16 pm
From: "Justin Hernandez" <transph...@gmail.com>
Date: Wed, 27 Dec 2006 16:16:55 -0800
Local: Wed, Dec 27 2006 7:16 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Nice plugin Paul. I just have to start using flickr now....;)

On Dec 27, 10:56 am, "empath" <emp...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Jolly  
View profile  
 More options Jan 2 2007, 1:55 pm
From: "Robert Jolly" <jolly.rob...@gmail.com>
Date: Tue, 02 Jan 2007 10:55:15 -0800
Local: Tues, Jan 2 2007 1:55 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Hi all. Thanks for writing and sharing this plugin, Paul. I am having
some trouble identifying where I am going wrong with my install of
this.

I'm getting a server error when I put the Flickr code into my
layout.liquid template. The error from my production.log file is
"SyntaxError (Unknown tag 'flickrphotostream'):"

I am running Mephisto 0.7.3 on a MediaTemple Grid Server, so I don't
have the latest trunk of Mephisto installed. Does anyone have any
insight into how I can register the tags - should the init.rb for the
flickr plugin get parsed automagically, or do I need to do something
else to have the plugin recognized?

Thanks for any insight you folks can offer.

On Dec 27 2006, 7:16 pm, "Justin Hernandez" <transph...@gmail.com>
wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathaniel Brown  
View profile  
 More options Jan 2 2007, 3:02 pm
From: "Nathaniel Brown" <n...@inimit.com>
Date: Tue, 2 Jan 2007 12:02:56 -0800
Local: Tues, Jan 2 2007 3:02 pm
Subject: Re: [Mephisto] Re: Flickr Photostream for Sidebar - guinea pigs requested!
It should load automatically.

Have you restarted your web server of choice?

NSHB

On 1/2/07, Robert Jolly <jolly.rob...@gmail.com> wrote:

--
Nathaniel Steven Henry Brown

Toll Free: 1-877-446-4647
Vancouver: 604-724-6624

http://inimit.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Jolly  
View profile  
 More options Jan 2 2007, 11:05 pm
From: "Robert Jolly" <jolly.rob...@gmail.com>
Date: Wed, 03 Jan 2007 04:05:34 -0000
Local: Tues, Jan 2 2007 11:05 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Right on! I was restarting the mephisto application within the
MediaTemple container, which did not, apparently do the trick. Once I
rebooted the container and then started the mephisto app again, the
plugin was working (this is for the other MT users out there).

Thanks NSHB for that simple reminder to do the obvious!

On Jan 2, 3:02 pm, "Nathaniel Brown" <n...@inimit.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Jolly  
View profile  
 More options Jan 4 2007, 1:26 pm
From: "Robert Jolly" <jolly.rob...@gmail.com>
Date: Thu, 04 Jan 2007 10:26:22 -0800
Local: Thurs, Jan 4 2007 1:26 pm
Subject: Re: Flickr Photostream for Sidebar - guinea pigs requested!
Anyone out there experiencing a little slowness with page loads when
this plugin is calling photos from flickr? Not sure where the lag is
occuring on my test site, presumably with retrieving the feed from
flickr.

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nathaniel Brown  
View profile  
 More options Jan 4 2007, 10:11 pm
From: "Nathaniel Brown" <n...@inimit.com>
Date: Thu, 4 Jan 2007 19:11:25 -0800
Local: Thurs, Jan 4 2007 10:11 pm
Subject: Re: [Mephisto] Re: Flickr Photostream for Sidebar - guinea pigs requested!
Hey Robert,

With the caching it should be next to instant. Are you not using any
caching? Check to see if you are running in production mode.

I have been considering changing the architecture a bit so that it
grabs the XML via JavaScript and writes out the block via the DOM
instead of going server-side. Haven't started on it yet, but next
version of perity.com I will be getting down to business.

Also, I have given the url to my hacked up version of the Flickr
stream to Paul Ingles to ingrate the changes with his plugin so I
don't have to fork it, but if you want to get access to the changes I
have done before he finishes integrating, check out the SVN here:

http://svn.toolbocks.com/mephisto_flickr_tag_stream/trunk/

Nathaniel.

On 1/4/07, Robert Jolly <jolly.rob...@gmail.com> wrote:

> Anyone out there experiencing a little slowness with page loads when
> this plugin is calling photos from flickr? Not sure where the lag is
> occuring on my test site, presumably with retrieving the feed from
> flickr.

--
Nathaniel Steven Henry Brown

Toll Free: 1-877-446-4647
Vancouver: 604-724-6624

http://inimit.com


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Messages 1 - 25 of 33   Newer >
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google