Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#616 2007-12-17 07:24:43
Re: [plugin] [ORPHAN] vdh_flickr
dazonic, look great! How do you implement the highslide script with the vdh_flickr plugin?
Offline
#617 2007-12-17 07:34:01
Re: [plugin] [ORPHAN] vdh_flickr
hurty wrote:
jstubbs — I’m having the same problem. (Fail to connect error) I’ve tracked it down to the fact that my host has turned off allow_url_fopen for security reasons.
I’d like to get this working, but I don’t really want to have to compile and install a custom version of PHP. Anyone know of a hack on this plugin to remove the dependency on allow_url_fopen? (Perhaps using cURL?)
Interesting. I did not know about allow_url_fopen. I posted on Joyent forums (my host) to see if they have an answer.
Offline
#618 2007-12-17 07:46:54
- dazonic
- Member
- Registered: 2006-10-24
- Posts: 43
Re: [plugin] [ORPHAN] vdh_flickr
jstubbs wrote:
dazonic, look great! How do you implement the highslide script with the vdh_flickr plugin?
Cheers mate. You can edit the plugin and paste the function in the post above just above return $html; in the function thumbnails_link($img_url)
Then to use it- <txp:vdh_flickr_thumbnails open="highslide"/>
I think that’s all I did…
Offline
#619 2007-12-17 18:23:34
Re: [plugin] [ORPHAN] vdh_flickr
Thanks dazonic. I would like to try it, except that I can’t get vdh_flickr to work – yet.
Edit: Now it works! For hurty above – you are correct, the issue is allow_url_fopen. On Joyent, we have our own php.ini so I was able to edit it to turn allow_url_fopen on.
dazonic – do you use anything else in TXP forms? Is the <txp:vdh_flickr_thumbnails open="highslide"/> enough?
Offline
#620 2007-12-18 00:46:13
- dazonic
- Member
- Registered: 2006-10-24
- Posts: 43
Re: [plugin] [ORPHAN] vdh_flickr
Hi, i’ve been putting each set in separate articles.
<txp:vdh_flickr_thumbnails nsid="21507336[at]N03" set="72157603381879975" thumbnails_form="thumbnails" open="highslide" />
and my thumbnails form looks like this:
<h3><txp:title /></h3>
<div class="thumbs">
<txp:vdh_flickr_thumbnails_list wraptag="ul" break="li" />
</div>
there’s lots of ways to do it, let me know how you go.
Last edited by dazonic (2007-12-18 00:47:56)
Offline
#621 2007-12-18 07:13:03
Re: [plugin] [ORPHAN] vdh_flickr
Thanks dazonic, I will take a look at this later when I have time to work. A question on performace – this site I am working on will have lots of photo sets on Flickr and a lot of images. Hundreds maybe. What sort of speed performance are you seeing from vdh_flickr and the highslide script?
Another question – I don’t see the option in vdh_flickr to set thumbnails to open up in Lightbox (Slimbox)?
Offline
#622 2007-12-18 07:17:57
- dazonic
- Member
- Registered: 2006-10-24
- Posts: 43
Re: [plugin] [ORPHAN] vdh_flickr
performance- slow loads. highslide is quick, but all those requests from flickr [???] make for a bit of a stall.
yeah, lightbox option isn’t in the docs, i found out about it editing the plugin. does this answer your question?
Offline
#623 2007-12-18 07:33:04
Re: [plugin] [ORPHAN] vdh_flickr
Thanks, it does, at least partially. I don’t find any reference to what the lightbox options are in this thread. Is it possible to use Slimbox with the thumbnails? If so, do you know which vdh_flickr tags use this option?
Offline
#624 2007-12-18 07:41:44
- dazonic
- Member
- Registered: 2006-10-24
- Posts: 43
Re: [plugin] [ORPHAN] vdh_flickr
Go to plugins, and edit vdh_flickr. Follow my steps from post #618 and #620, you should have no problems. I don’t actually use the standard tag <txp:vdh_flickr />.
Offline
#625 2007-12-18 08:45:33
Re: [plugin] [ORPHAN] vdh_flickr
jstubbs wrote:
Is it possible to use Slimbox with the thumbnails?
I’ve not looked at the plugin, but it should be possible. Find a plugin option (or edit the plugin) so that it adds the following to the anchor in each <a href="http://flickr.com/blah.jpg"><img thumbnail></a> tag:
rel="lightbox-sometext"
Then Slimbox/lightbox will automatically pick them up and run. “sometext” can be anything you like; all images assigned the same value allow slimbox to navigate among those as a group.
Incidentally, if you add class="thickbox" to the anchors instead, you can use Thickbox. That’s what the next version (currently alpha code) of my slimbox plugin does. jQuery-tastic :-)
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#626 2007-12-22 16:29:38
Re: [plugin] [ORPHAN] vdh_flickr
For those wondering about Lightbox or Slimbox integration, it is in fact very easy, no editing of the plugin is required.
Assuming you already have Slimbox in place in your head tag, then use a vdh_flickr tag like so:
<txp:vdh_flickr_thumbnails nsid="your_flickr_id_here" set="your_set_number" open="lightbox" />
And Slimbox picks up the rel="lightbox" tag, which is already in the plugin, but not in the help docs.
Offline
#627 2007-12-22 22:12:50
Re: [plugin] [ORPHAN] vdh_flickr
Two questions:
First one is about using best practice with custom fields. I have 8 sections, and need to set 8 separate Set numbers in the vdh_ tag. I can do this fine with a bunch of if_section tags, but looking for a cleaner way to assign the Flickr Set #.
I have this code in a page, BTW.
<txp:if_section name="section1">
<txp:vdh_flickr_thumbnails nsid="my_nsid" open="lightbox" latest="20" />
</txp:if_section>
<txp:if_section name="section2">
<txp:vdh_flickr_thumbnails nsid="my_nsid" open="lightbox" set="my_set" latest="20" />
</txp:if_section>
Second question is related to the variable “latest”. In the second tag, I would like to pull out no more than 20 thumbnails from the set, but I end up with the thumbnails repeating.
Offline
#628 2007-12-31 22:22:18
Offline
#629 2008-01-01 00:07:21
Re: [plugin] [ORPHAN] vdh_flickr
nevermind I found the issue. I’m on php5 and this plugin is attempting to load the xml file via a url. My server has that disabled, so I had to create a cache copy to sit on my server. If the original author or anyone would like the code, just let me know.
Offline
#630 2008-01-01 09:04:42
Re: [plugin] [ORPHAN] vdh_flickr
Amit, the “failed to connect” issue is caused by the lack of allow_url_fopen in php.ini. In my case, the option is turned off by default by the web host, but I turned it on and vdh_flickr now connects fine.
General question: Anyone seen a way to limit the number of thumbnails to 20? Using the txp:vdh_flickr_thumbnails tag, but using a straight limit=“20” in that tag does not work, and I don’t see anything in the docs.
Offline