Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2004-10-01 02:15:50

jbaty
Archived Plugin Author
Registered: 2004-05-16
Posts: 2

[ARCHIVED] jab_gallry (using the Flickr API)

Archived: This plugin is no longer available
========================

Here is a simple plugin which displays a set of thumbnails from Flickr.com using the Flickr API. The thumbnails are selected using a Flickr “tag” or “photoset”. (See Flickr.com for details.)

The idea here is to use Flickr to manage uploading, tagging, organization and whatnot, then make it simple to show a small gallery of thumbnails using a small, fairly simple plugin. And yep, the missing “e” thing gets annoying, but what are you going to do?

Plugin download

jab_gallry

IMPORTANT: This plugin will only work using PHP 5, as it uses the lovely new SimpleXML extension only available in that version. Yes, I know this limits the audience, sorry.

Usage

<pre><txp:jab_gallry set=“14145” linktarget=“window” columns=“3” /></pre>

Attributes:

set (or tag) – The Flickr set number or tag name. Set numbers are not displayed directly on Flickr, but can be found by looking in the URL while viewing the set on the Flickr site.

linktarget (window|self|flickr) – Determines what happens after clicking on a thumbnail. “Window” opens the original image in a new window. “Self” reloads the current page and displays the image inline (note this shouldn’t be used if more than one set is to be displayed on the same page.) “Flickr” opens up the image right on the Flickr site.

columns – How many images to display in a column

This is an early, barely tested version, so bug reports and feature ideas are more than welcome.

Here’s an example of it being used on my site…

Last edited by jbaty (2004-10-01 03:54:11)

Offline

#2 2004-10-01 02:50:03

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

damn. i was all excited until i saw the ‘php 5’ requirement.

still, looks like a quality plugin.


Listen to Kenneth

Offline

#3 2004-10-01 18:09:31

jbaty
Archived Plugin Author
Registered: 2004-05-16
Posts: 2

Re: [ARCHIVED] jab_gallry (using the Flickr API)

Yes, the PHP 5 requirement will be a nuisance for many. But, I had to choose between that nuisance and the one which was caused by having to do XML work in PHP 4. No brainer there :)

Offline

#4 2005-03-10 11:28:25

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

This one looked promising to me, but it does not seem to work with rc3. Or I’ve messed something up. Here is what I have done:
  • create an account on flickr
  • upload 2 test pictures
  • create a new set and add the two pictures
  • create a page template with this tag in it:
    < txp:jab_gallry set=“155XXX” linktarget=“window” columns=“3” />
    I extracted the set number from this url:
    http://flickr.com/photos/4397XXXX@N00/sets/155XXX/

All I get is this div in the source code:
< div class=“gallry-container” > < /div >

But maybe something is wrong with my php5 installation. Can you tell me what exactly has to be compiled in? I already have simplexml compiled in…

Last edited by larf (2005-03-10 11:36:13)

Offline

#5 2005-03-10 16:59:14

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

OK, looked at the source and entered my api id, now it works.

Offline

#6 2005-03-10 20:54:10

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

larf,

when you have something up do you mind posting it so we can check out what can be done with this. The authors example site is out to lunch on the example page on this. Looks like he has photostack going for his photos page. I have a spankin new textdrive account with php5 now and I am wondering if this is worth setting up.

Thanks
Jamie

Offline

#7 2005-03-13 20:53:20

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

Just wait for a few days, I’m planning to write a brand-new plugin for flickr. I can PM you when I have something new.

Offline

#8 2005-03-13 21:03:32

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

Could you then PM me too, when you have finished the plugin?

Would be great!:)

Offline

#9 2005-03-13 22:09:32

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

Will do!
But one drawback before I even start: The plugin will only work with php5 and SimpleXML enabled. That’s the configuration I use, and AFAIK every host that provides php5 has SimpleXML compiled in.

Offline

#10 2005-03-13 23:34:26

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

If you are on TextDrive, then you are covered.


bludrop studios .::. Creative Expression

Offline

#11 2005-03-14 20:31:21

larf
Archived Plugin Author
Registered: 2005-01-31
Posts: 159
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

You can download a first version of the plugin here:
http://www.rvdh.net/vdh_flickr/vdh_flickr.txt

Please read the included help for instructions.

And don’t hesitate to ask for improvements/new features/whatever!

Offline

#12 2005-03-14 22:41:31

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: [ARCHIVED] jab_gallry (using the Flickr API)

Looks nice, I tested it on my local machine – but heads up to textdrive users: one and barclay still run php4 (I’m pretty sure), bidwell, haro, comox and whatever newer boxes there are right now have php5. So on one or barclay this won’t work (pity!) and on the others it should just fine.

Can’t wait for barclay and one to get migrated to different boxes…

Offline

Board footer

Powered by FluxBB