matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)
Mat Bowles ([personal profile] matgb) wrote in [site community profile] dw_dev2011-01-13 04:03 pm
Entry tags:

Delicious Glue client updating [solved]

OK, I'm working on an update and port of the Delicious Glue script originally done for LJ. It works as a Client, ergo I'm asking here.

I've got most of what I want to acheive working, including, finally, Icons (the keyword is case sensitive, obvious when you think about it). However, I haven't managed to get post security working--this isn't an issue for me, and therefore lower priority, but I'd imagine some would like it, and would like to include it. I've read through the Wiki entries on both XML-RPC Protocol and XML-RPC Protocol Method: postevent, and worked through what I think the code should be, but it isn't working. My current code is here:
http://notzen.com/mat/delicious-glue.txt (and there's awrite up with the full script to DL here)

I've commented out the security stuff to get the rest working, but this is my first time, ever, messing around with client protocols, and I've had a few requests for copies of the script. What am I doing wrong? Thanks to [profile] andreducker linking to the original post, I have discovered my problem. Missing semi colons.
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 04:36 pm (UTC)(link)
You may want to also share the xmlrpc.inc file.

Oh - and to get it running people will need to change the extension from .txt to .php. Which most people probably already know, but it can't hurt to reiterate :->
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 04:42 pm (UTC)(link)
D'oh - didn't notice your post, I must have hit refresh in the moments between the two posts going up! I take it all back :->
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 04:46 pm (UTC)(link)
Oh, and this is the original announcement post over on LJ:
http://community.livejournal.com/lj_clients/207396.html

And it has some discussion of setting security, so you could try that out...
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 05:14 pm (UTC)(link)
Aaah, the missing semi-colon. Bane of my university career.

I assume you're testing using the FF addon for delicious glue recovery (or whatever it was called).
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 05:15 pm (UTC)(link)
Oh - and don't forget to add the attribution for the original creator!
sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)

[personal profile] sophie 2011-01-13 09:20 pm (UTC)(link)
There is another option, actually, which most PHP configurations support out-of-the-box: Rename your file to use a .phps extension instead of a .txt extension. Then you get a pretty colour-coded output that's otherwise exactly mostly the same as the .txt version. :) (It looks like it changes the indents, though.)
Edited 2011-01-13 21:22 (UTC)
andrewducker: (Default)

[personal profile] andrewducker 2011-01-13 09:49 pm (UTC)(link)
That's pretty awesome.