Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#385 2006-10-12 16:40:51
- hazel
- Member
- From: Glastonbury, UK
- Registered: 2006-09-22
- Posts: 36
Re: [plugin] [ORPHAN] vdh_flickr
Right, my bad.
Well, I was just pleased to get a new error. it seemed like progress ;)
Offline
#386 2006-10-17 18:31:47
- hazel
- Member
- From: Glastonbury, UK
- Registered: 2006-09-22
- Posts: 36
Re: [plugin] [ORPHAN] vdh_flickr
Has anyone had any success with the new version?
It seems either the authentication url is not getting formed properly, or the API key is invalid (or both :)
Any ideas?
Offline
#387 2006-10-17 18:35:42
Re: [plugin] [ORPHAN] vdh_flickr
I’ll test on my various TextDrive accounts tomorrow in order to see whether something is wrong.
It works fine under php4 and php5 on my local MAMP installation.
Last edited by larf (2006-10-17 18:36:12)
Offline
#388 2006-10-17 19:18:27
- hazel
- Member
- From: Glastonbury, UK
- Registered: 2006-09-22
- Posts: 36
Re: [plugin] [ORPHAN] vdh_flickr
OK, thanks. I’m kind of going nuts ;(
Im using MAMP/php5 too…
Offline
#389 2006-10-22 12:23:48
- ralph
- Member
- Registered: 2005-02-28
- Posts: 106
Re: [plugin] [ORPHAN] vdh_flickr
Well, I’ve finally found the time to comment the source code, and while doing that, I also corrected the glitches found by hazel and others. You can find the latest package here, which should finally work out of the box for everyone:
Let me know if you run into troubles, and let me know if you would like to take over development for this plugin.
Offline
#390 2006-10-22 15:53:22
- hazel
- Member
- From: Glastonbury, UK
- Registered: 2006-09-22
- Posts: 36
Re: [plugin] [ORPHAN] vdh_flickr
Thanks ralph, works great. What was the problem?
Any chance you could summarise the missing features vs. the original version?
After a brief dig, it seems limiting sets (‘set=’ or ‘none/except=’), and tag lists/links (show all with a certain tag) are not supported, right?
Offline
#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