Usercode in the 23API
|
December 11, 2008, 12:20 AM
|
|
Hi there!
I'm trying to work this http://wordpress.org/extend/plugins/flickr-mini-gallery/ handy little PlugIn into a 23-compatible one. Well, I chose the search'n'replace approach and changed every instance of the flickr url into its 23.com equivalent - still it does not work.
As I'm not much of a programmer at all, I can just guess at the reason... And my guess is that it has something to do with the way it fetches images, as it does so using the flickr usercode. What would be the 23 equivalent to that?
|
|
|
Team 23
December 11, 2008, 07:10 AM
|
|
Wow, that's a tough one -- I haven't had time to look at the specific plugin, but one change that might help you along is changing line 16 in miniflickr.js to:
$.getJSON(api+"&format=json&jsoncallback=jsonFlickrApi",
If you point me to somewhere with the plugin running on your modified code, I might be able to debug it better...
|
|
|
December 11, 2008, 07:48 PM
|
|
It's installed on my blog:
http://thiscitywillkillme.info/2008/12/11/was-ich-sah/
Normally a gallery with my pics bearing the tag "Winnipeg" should show up there - but nothing much does. The scripts are called in the header and where the gallery should show up, an empty div is created...
|
|
|
Team 23
December 11, 2008, 08:34 PM
|
|
I probably gave you bad advice before:
- Bring the "?" back from before.
- All occurences of "api.flickr.com", "static.flickr.com" etc should simply be changed to "www.23hq.com"
- Your line with "user_id=..." should be "username=..."
Have a look at http://refresh.dk/examples/mini23/ for a working (albeit ugly) example.
Also, when you get it to work, could you write the plugin author an suggest to include support for 23 in the plugin as an option? Pointing, of course, to your own working implementation...
|
|
|
December 12, 2008, 01:09 AM
|
|
Thanks a lot for your help!
I'll definitely write him - and if implementing another site is out of scope for the plugin, it's still under GPL and could be called a fork or sth. ;)
|
|
|