posting to serendipity using ecto

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
TheMM
Regular
Posts: 7
Joined: Sat Jan 29, 2005 2:39 pm

posting to serendipity using ecto

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: posting to serendipity using ecto

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TheMM
Regular
Posts: 7
Joined: Sat Jan 29, 2005 2:39 pm

Re: posting to serendipity using ecto

Post by TheMM »

garvinhicking wrote:But posting to the Blog works - which API do you use? MT or Blogger?
I tried both.
Adriaan Tijsseling

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TheMM
Regular
Posts: 7
Joined: Sat Jan 29, 2005 2:39 pm

Post by TheMM »

Anyone out there who can do this fix? Otherwise this would be the reason for me NOT to switch to Serendipity... :(

TheMM
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

Darren

xmlrpc.php

Post 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
ridcully

Bugfix

Post 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
Post Reply