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:
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).
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:
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.
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:
> 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:
> 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).
> 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:
> 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.
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!
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:
> 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!
> 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!
> > 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!
> > > 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!
> Will it work for any other feeds besides user feeds?
> On Nov 28, 8:11 pm, "empath" <emp...@gmail.com> wrote: > > 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:
> > > I get this error-- exception caught, then the
> > > > 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!
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?
> 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:
> 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).
> 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:
> 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
-- WINDOWS: "Where do you want to go today?" LINUX: "Where do you want to go tomorrow?" BSD: "Are you guys coming or what?"
> 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?
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:
> 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:
> > 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?
> 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: > > If you have lightbox 2.0 installed, try this:
> > 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: > > > 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
-- WINDOWS: "Where do you want to go today?" LINUX: "Where do you want to go tomorrow?" BSD: "Are you guys coming or what?"
> 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'sFlickrSidebar Component.
> So, inside your template you can use the following:
> 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'sFlickrlibrary that > Mephisto includes for it'sflickrmacro).
> 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:
> 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.
> 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:
> > 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'sFlickrSidebar Component.
> > So, inside your template you can use the following:
> > 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'sFlickrlibrary that > > Mephisto includes for it'sflickrmacro).
> > 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:
> > 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.
> def image > description.scan( /(http:\/\/farm\d*.(static|photos).*?\.jpg)/ > ).first.first > end
> On Dec 27, 12:59 pm, "empath" <emp...@gmail.com> wrote:
> > 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:
> > > 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'sFlickrSidebar Component.
> > > So, inside your template you can use the following:
> > > 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'sFlickrlibrary that > > > Mephisto includes for it'sflickrmacro).
> > > 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:
> > > 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.
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:
> > On Dec 27, 12:59 pm, "empath" <emp...@gmail.com> wrote:
> > > 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:
> > > > 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'sFlickrSidebar Component.
> > > > So, inside your template you can use the following:
> > > > 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'sFlickrlibrary that > > > > Mephisto includes for it'sflickrmacro).
> > > > 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:
> > > > 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.
> 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: > > Nice plugin Paul. I just have to start using flickr now....;)
> > On Dec 27, 10:56 am, "empath" <emp...@gmail.com> wrote:
> > > > On Nov 28, 11:53 am, "Paul Ingles" <paul.ing...@gmail.com> wrote:
> > > > > 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'sFlickrSidebar Component.
> > > > > So, inside your template you can use the following:
> > > > > 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'sFlickrlibrary that > > > > > Mephisto includes for it'sflickrmacro).
> > > > > 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:
> > > > > 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.
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:
> On 1/2/07, Robert Jolly <jolly.rob...@gmail.com> wrote:
> > 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: > > > Nice plugin Paul. I just have to start using flickr now....;)
> > > On Dec 27, 10:56 am, "empath" <emp...@gmail.com> wrote:
> > > > > On Nov 28, 11:53 am, "Paul Ingles" <paul.ing...@gmail.com> wrote:
> > > > > > 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'sFlickrSidebar Component.
> > > > > > So, inside your template you can use the following:
> > > > > > 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'sFlickrlibrary that > > > > > > Mephisto includes for it'sflickrmacro).
> > > > > > 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:
> > > > > > 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-- > Nathaniel Steven Henry Brown
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.
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:
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.