Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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
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
Re: [ARCHIVED] jab_gallry (using the Flickr API)
- 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
Re: [ARCHIVED] jab_gallry (using the Flickr API)
OK, looked at the source and entered my api id, now it works.
Offline
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
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
Re: [ARCHIVED] jab_gallry (using the Flickr API)
Could you then PM me too, when you have finished the plugin?
Would be great!:)
Offline
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
Re: [ARCHIVED] jab_gallry (using the Flickr API)
If you are on TextDrive, then you are covered.
bludrop studios .::. Creative Expression
Offline
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
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