The place to discuss how to make 23 work in special ways with the 23 api

Usercode in the 23API

zimmerpflanze   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?

 
Steffen Fagerström Christensen 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...

 
zimmerpflanze   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...

 
Steffen Fagerström Christensen 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...

 
zimmerpflanze   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. ;)

 




About 23

About 23
What is 23 and who's behind the service?
Just In
Discover the world from a different angle.
Here's a crop of the latest photos from the around the world.
Search
Search photos from users using 23
Help / Discussion
Get help or share your ideas to make 23 better
23 Blog / 23 on Twitter
Messages and observations from Team 23
Terms of use
What can 23 be used for and what isn't allowed
More services from 23
We also help people use photo sharing in their professional lives
RSS Feed
Subscribe to these photos in an RSS reader
  • Basque (ES)
  • Bulgarian (BG)
  • Chinese (CN)
  • Chinese (TW)
  • Danish (DK)
  • Dutch (NL)
  • English (US)
  • French (FR)
  • Galician (ES)
  • German (DE)
  • Italian (IT)
  • Norwegian (NO)
  • Polish (PL)
  • Portuguese (PT)
  • Russian (RU)
  • Spanish (ES)
  • Swedish (SE)

Popular photos right now