Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#391 2006-10-23 05:25:46
Re: [plugin] [ORPHAN] vdh_flickr
@ralph
Much appreciation for this! I was wondering if you might offer any notes regarding installation and usage and how it might differ from the original. I wasn’t ever able to get the first version working, but I can’t even figure out how to install this one. I’ve attempted to just copy and paste this php over the old plugin, but no matter what I do, I still get a warning: “ Textpattern Warning: unknown_tag “
I’m probably overlooking something obvious, but since this isn’t packaged like a traditional plugin, I’m left a bit more clueless than usual.
Thanks again for putting so much time into this!
Oh, and once I get this working I’d be happy to properly package the plugin, host it if necessary, and facilitate any further development as best as I can (though it would probably be very minimal).
Last edited by philipashlock (2006-10-23 05:28:00)
Offline
#392 2006-10-23 06:34:19
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
Sorry for this, the instructions were posted by hazel in post #384 of this thread.
Offline
#393 2006-10-23 07:36:55
Re: [plugin] [ORPHAN] vdh_flickr
After following the instructions and also editing auth.php with valid values for $api_key, $api_secret, and $path_to_phpFlickr_class I’m still automatically redirected to the following page:
which reads
Oops! Flickr can’t find a valid callback URL.
An external application has requested your login credentials and permission to perform certain actions on your behalf, but has failed to include all the required data.
You don’t really need to know what this means, except that you can’t use the application until this problem is fixed. (It’s a third-party problem, not a Flickr problem.)
There are lots of applications using the Flickr API. If you are curious about this, visit the Flickr Services page to see more examples of cool stuff. Otherwise, you might like to head to your home page…
Offline
#394 2006-10-23 08:31:39
- hazel
- Member

- From: Glastonbury, UK
- Registered: 2006-09-22
- Posts: 36
Re: [plugin] [ORPHAN] vdh_flickr
Sorry philip, thats probably my fault :P
ralph wrote:
Don’t replace the API_KEY and API_SECRET with your own! These keys are used to track flickr api usage by application, not by individual! It’s a widespread mistake…
If you leave everything in the plugin as is, and the correct path to the directory is set it should work OK:
Admin > Preferences > Advanced Preferences > Plugin cache directory path = path/to/vdh_flickr
Offline
#395 2006-10-24 03:30:56
Re: [plugin] [ORPHAN] vdh_flickr
I wasn’t replacing them with my own, I was using the ones you supplied because I was getting errors from auth.php. If I just use the unedited copy of auth.php I get:
A problem occured while loading the plugin: auth -> Warning: require_once(./phpFlickr.php) [function.require-once]: failed to open stream: No such file or directory on line 27
Fatal error: require_once() [function.require]: Failed opening required ‘./phpFlickr.php’ (include_path=’.:/usr/local/php5/lib/php’) in /….serverpath…../textpattern/phpFlickr/auth.php on line 27
if I just edit the $path_to_phpFlickr_class in auth.php then I get the same page I was describing before with an api error like this:
Offline
#396 2006-10-24 08:00:53
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
You don’t have to mess around with auth.php or any other file. Nothing in the zip file needs to edited.
I recommend redownloading the whole package and putting the contents (one file and one directory) into your plugin cache dir. As soon as you put the <txp:vdh_flickr /> tag into a page template and load up this (frontend) page in your browser, you will see instructions how to authorize the plugin.
Offline
#397 2006-10-24 09:01:57
Re: [plugin] [ORPHAN] vdh_flickr
Excellent, it’s actually a pretty smooth installation and set-up when you understand the process of installing plugins using the cache. This is the first time I’ve installed a plugin like this, so I’m not quite sure what was screwed up when I tried the first time.
It’s working as much as possible now, but I’m guessing that vdh_flickr_thumbnails is not yet functional? When using it (even with a set specified) I get:
Fatal error: Call to a member function photosets_getThumbnailView() on a non-object in ….path…/vdh_flickr.php on line 554
Offline
#398 2006-10-24 09:15:17
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
Yes, this is one of the many things that don’t work as expected yet.
Offline
#399 2006-10-24 13:09:36
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] vdh_flickr
philipashlock wrote:
it’s actually a pretty smooth installation and set-up when you understand the process of installing plugins using the cache.
:-( Well… I must admit the installation of this new plugin seems to be far over my skills… I probably need now to look for another solution than flickr for my project. Anyway, thank you ralph and the others for your efforts.
Edit : uh ! I could manage ! I’ll come soon and post a more non-geek install process for the dumb like me :-P
Last edited by Niconemo (2006-10-24 13:49:50)
Nico
Offline
#400 2006-10-24 13:41:23
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
It’s actually the way wordpress users do install plugins. They only have a preset plugin cache dir.
So here are some instructions. I will include them in the zip file soon. But remember this version of the plugin is more intended to attract developers who would like to take over this plugin from me. For production sites, I still recommend 0.8.7.
Installation instructions
- On your Webserver, create a new directory for cached plugins. This directory could for example be called “plugins” and reside in the root of your Textpattern installation.
- Unzip the contents of the vdh_flickr zip file into the newly created directory. You should end up with “plugins/vdh_flickr.php” and “plugins/phpFlickr” (if you called your plugins directory “plugins”, that is).
- In the TextPattern admin interface, open Admin -> Preferences -> Advanced and enter the full path to the newly created directory into the field “Plugin cache directory path”. You can copy and paste the value for “File directory path” to get the first part of the path.
- As soon as you put the <txp:vdh_flickr /> tag into a page template and load up this (frontend) page in your browser, you will see instructions how to authorize the plugin.
- You can configure some plugin options under “Admin -> Preferences -> Advanced”.
Let me know if you run into troubles.
Offline
#401 2006-10-24 14:16:49
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] vdh_flickr
:-) Very nice of you ! I was writing quite a similar post as yours as I could finally manage with the previous posts.
I need the new authentification for my project (as I need to display flickr photos with a private status). That’s why I had to upgrade though I understand this plugin is a work on progress.
…
But I need the missing functions too (vdh_flickr_thumbnails at least and the set="" function).
So I hope the community will take care of your baby and make it grow well :-)
Last edited by Niconemo (2006-10-24 15:16:07)
Nico
Offline
#402 2006-10-24 15:11:32
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] vdh_flickr
ralph wrote:
You can configure some plugin options under “Admin -> Preferences -> Advanced”.
My tests about these settings :
flickr_show_private no/yes seems to have no effect : private are always displayed (not a problem form me)
flickr_enable_caching no/yes OK. It works but I have 2 questions. Where are located the cached files ? I dont see it in the cache dir… And how long is the cache set ?
flickr_show_all_photosets no/yes how does it work ?
flickr_exceptions how does it work ?
Last edited by Niconemo (2006-10-24 15:16:33)
Nico
Offline
#403 2006-10-24 15:48:14
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
Hi Niconemo,
flickr_show_all_photosets and flickr_exceptions don’t have any effect until now. These options are intendet to show only selected sets, like “alle the sets except 123 and 234” or “no set except 123 and 234”.
flickr_show_private does work for me, but strangely only after clearing my browser cache. Maybe you should try a secondary browser to see what’s shown to the public. It may be necessary to delete all cache files or simply wait for a cache timeout to make this work.
flickr_enable_caching defaults to a cache time of 600 seconds and uses TextPattern’s “Temporary directory path”, configurable under Advanced Prefs.
Offline
#404 2006-10-24 22:35:29
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] vdh_flickr
OK. That makes sense. Thank you.
Nico
Offline
#405 2006-10-25 13:08:32
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] vdh_flickr
If I make no mistake, it’s not possible to customize with form yet (unknown tags) with the new plugin…
So it would be definitly to soon using it in an online site. My bad. I’ll find another way for some time, waiting for the final plugin release. :-)
NB. I use the official current vdh_flickr plugin with much pleasure on other sites. And it’s still a great plugin !
Last edited by Niconemo (2006-10-25 13:12:10)
Nico
Offline