Page 1 of 1

posting to serendipity using ecto

Posted: Sat Jan 29, 2005 7:33 pm
by TheMM
Hi all!

Has anyone ever posted to a Serendipity blog using ecto? I tried it today with the latest Serendipity build 0.8-alpha11 and the latest ecto version 2.1.1 (see http://ecto.kung-foo.tv/ ).
With my old Nucleus blog everything went fine, but adressing Serendipity, the ecto application always gives errors. And I'm sure I got the correct API...

Any hints?

Thanks,
TheMM

Re: posting to serendipity using ecto

Posted: Sun Jan 30, 2005 7:06 pm
by garvinhicking
I only used it recently with some windows application; our XMLRPC API is seldomly used and there's no one acitvely maintaining it - I know that we at least have problems editing existing entries. But posting to the Blog works - which API do you use? MT or Blogger?

Regards,
Garvin

Re: posting to serendipity using ecto

Posted: Sun Jan 30, 2005 7:55 pm
by TheMM
garvinhicking wrote:But posting to the Blog works - which API do you use? MT or Blogger?
I tried both.

Posted: Wed Feb 02, 2005 9:25 am
by Adriaan Tijsseling
George Schlossnagle spent some time a year or so ago to get Serendipity to work with ecto using MovableType API. We had quite a few emails back and forth about that. Maybe he can help out here?

Posted: Wed Feb 02, 2005 9:55 am
by garvinhicking
I'm afraid George is no longer using up-to-date Serendipity versions, so I doubt he can help there...we would need someone to look into current code, I'm sure the fix will be easy...

Regards,
Garvin

Posted: Wed Feb 02, 2005 10:16 pm
by TheMM
Anyone out there who can do this fix? Otherwise this would be the reason for me NOT to switch to Serendipity... :(

TheMM

Posted: Thu Feb 03, 2005 9:53 am
by garvinhicking
If you can provide me the full API specs with all input/output values for the API, I can look into it...the last time I tried, I could not find a complete API. :(

Regards,
Garvin

Posted: Thu Feb 03, 2005 11:51 pm
by Guest

xmlrpc.php

Posted: Sun Feb 06, 2005 8:10 pm
by Darren
I had a little muck around in the php file and noticed it was way of spec on certain api's. The first fix I tried was to update blogger get recent posts, which sends postid twice and not the content, you have get the entry using full=true then pass content=body.

Ecto starts to work but posts still wrong....

Since I only learn php yesterday to have a go, I'm not planning to post fixes. I will try and play with it and forward any bugs I find.

Darren

Bugfix

Posted: Tue Dec 27, 2005 9:25 am
by ridcully
The Bugfix is very easy. The Pear-Libs are included in the plugin folder and in the bundled-libs folder. I fixed the includes around line 54 and deleted the PEAR-folder in the plugin dir. Now posting and editing works...

Code: Select all

                case 'frontend_xmlrpc':
                    if (!class_exists('XML_RPC_Base')) {
//                        require_once dirname(__FILE__) . '/PEAR/XML/RPC.php';
                        require_once S9Y_INCLUDE_PATH . '/bundled-libs/XML/RPC.php';
                    }

                    if (!class_exists('XML_RPC_Server')) {
//                        require_once dirname(__FILE__) . '/PEAR/XML/RPC/Server.php';
                        require_once S9Y_INCLUDE_PATH . '/bundled-libs/XML/RPC/Server.php';
                    }

                    require_once dirname(__FILE__) . '/serendipity_xmlrpc.inc.php';
                    $eventData = array('XML-RPC' => true);

                    return true;

                default:
maybe someone can update the xml-rpc-plugin...

regards
ridcully