Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#631 2008-01-03 16:20:29
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
@variaas: Please feel free to send me any code patches concerning vdh_flickr.
@jstubbs: I think you could use thumbs_per_page=“20” and a form that does not show any pagination navigation.
@everyone: I finally added the lightbox option to the documentation.
Sorry, very little time at the moment!
Offline
#632 2008-01-03 16:43:19
Re: [plugin] [ORPHAN] vdh_flickr
Thanks Ralph your suggestion does not work, but thanks for trying!
Offline
#633 2008-01-03 16:45:48
Re: [plugin] [ORPHAN] vdh_flickr
I just added a check for the curl function if you have php5. Sorry I don’t have line numbers, but here’s the edit I did:
original:
else {
if(!$this->xml = @simplexml_load_file($this->xmlurl)) {
unset($this->xml);
}
}
updated:
else {
if (function_exists('curl_init')) {
$ch = @curl_init();
curl_setopt($ch, CURLOPT_URL, $this->xmlurl);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$resp = curl_exec($ch);
curl_close($ch);
if(!$this->xml = @simplexml_load_string($resp)) { unset($this->xml); } }
else if(!$this->xml = @simplexml_load_file($this->xmlurl)) { unset($this->xml); } }
You do a check for the cURL function if you have php4, but not php5. This edit will just allow people who can’t load external urls with simplexml_load_file() to use this great plugin.
Offline
#634 2008-01-07 21:46:31
- markworsnop
- New Member
- Registered: 2008-01-07
- Posts: 3
Re: [plugin] [ORPHAN] vdh_flickr
Hi, just wondering if you can help. I’d like to be able display all the photos in my Flickr account as a gallery on my website, in chronological order, in batches of twenty per page. Then I’d like to be able to email new images from my phone, to update my flickr account and then my website.
I’m currently using txp:vdh_flickr_thumbnails to display my gallery.
Here is my problem:
If I put all my photos in a set and use set=“x”, I’m not aware of a way to assign a photo to a set when sending a photo to flickr from my phone, therefore new photos would not be added to the website
If I tag all the photos with the same tag and use tag=“x”, the photos are not displayed chronologically on my website.
If I use latest=“x”, then I have to specify a higher number than there are photos (to allow for new photos being uploaded) and I end up with blank pages in my gallery.
Hope that makes sense, can anyone help?
Is there either a way to make photos displayed by tag chronological or a way to assign the current total photos in my flickr account to the latest=“x” parameter?
If you display as a set=“x”, it automatically gets rid of addional pages can this be applied to the latest=“x” parameter?
Thanks M.
Offline
#635 2008-01-07 22:00:15
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
The latest thing is a bug I should fix asap.
Offline
#636 2008-01-07 22:43:41
- markworsnop
- New Member
- Registered: 2008-01-07
- Posts: 3
Re: [plugin] [ORPHAN] vdh_flickr
Hi Ralph, thanks for the quick reply. Well if it could be fixed, that would certainly solve my problem. Thanks M.
Offline
#637 2008-01-08 20:25:31
Offline
#638 2008-01-11 20:47:37
- markworsnop
- New Member
- Registered: 2008-01-07
- Posts: 3
Re: [plugin] [ORPHAN] vdh_flickr
Ok here is my attempt to fix the latest thing, it seems to work, so far so good. Let me know:
line 405 of v0.8.11 replace:
$this->number_of_photos = (string) $this->latest;
with:
$this->number_of_photos = (string) sizeof($this->photos);
Laters, M.
Offline
#639 2008-01-31 16:47:47
- pgregg
- Member
- From: UK
- Registered: 2006-02-16
- Posts: 20
Re: [plugin] [ORPHAN] vdh_flickr
Been using vdh_flickr for some time here http://www.2425atc.org.uk/gallery. Just recently an error occurs when clicking the previous / next links in the individual photo view.
It is:
Fatal error: Only variables can be passed by reference in /home/users/uks26396/html/2425atc.org.uk/textpattern/lib/txplib_misc.php(512) : eval()’d code on line 729
To see this click any of the most recent galleries, then any thumbnail and try to bring up the next photo using the previous image / next image links.
Any help appreciated.
Thanks
Phil
Last edited by pgregg (2008-01-31 17:01:05)
Offline
#640 2008-01-31 18:52:55
Re: [plugin] [ORPHAN] vdh_flickr
Is anyone using Highslide with vdh_flickr? I tried Dazonic’s code but couldn’t get it to work. Would love to see some working examples…
Offline
#641 2008-02-01 23:24:47
Re: [plugin] [ORPHAN] vdh_flickr
also curious if anyone has instructions on how to add image descriptions to the lightbox window (via the title=”“ in the image tag).
Thanks in advance! : )
Offline
#642 2008-02-10 22:34:00
- pgregg
- Member
- From: UK
- Registered: 2006-02-16
- Posts: 20
Re: [plugin] [ORPHAN] vdh_flickr
Hi Ralph. Have you had chance to look at post 639 above?
Offline
#643 2008-02-12 04:08:05
- bartekk
- Member
- Registered: 2004-11-09
- Posts: 57
Re: [plugin] [ORPHAN] vdh_flickr
hi. I have a problem with showing flickr sets and thumbnails on two parts of a homepage.
In the footer I show some thumbnails with
<txp:vdh_flickr_thumbnails nsid=“123465@N00” thumbnails_form=“last_images” thumbnail_size=“s” random=“9” latest=“30” open=“flickr” />
and it works perfectly.
I have also a gallery section and want to show all flickr sets with customizing forms. This works perfectly too but if an image of the set is shown, the thumbnails in the footer changes also to the one image from the set. Is it possible to separate this output?
thanks
Offline
#644 2008-02-12 10:42:09
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
I have to postpone all vdh_flickr related things to at least the 20th (last day of my exams this semester). Sorry for the inconvenience!
Offline
#645 2008-02-12 16:48:46
- pgregg
- Member
- From: UK
- Registered: 2006-02-16
- Posts: 20
Re: [plugin] [ORPHAN] vdh_flickr
No problem Ralph. Good luck with the exams!
Offline