| View previous topic :: View next topic |
| Author |
Message |
Guest

|
Posted: Sat Aug 06, 2005 8:04 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
Ah - no I didn't, didn't read it all that wel: I saw "I'll try to get the modified version uploaded tomorrow." (posted a while ago), so I thought it was allready fixed.
I'll make the changes in metaweblogscript, do I have to download (install) a patch as well?
Thx for your help! I'll be away for one week but I'm back to work on this as soon as I get back! |
|
| Back to top |
|
 |
Tenshi Platinum Sponsor


Joined: 12 Apr 2003 Posts: 1598 Location: Enschede, The Netherlands
|
|
| Back to top |
|
 |
neezee Platinum Sponsor


Joined: 27 Sep 2003 Posts: 973 Location: Marcipan-City (Lübeck), Germany
|
Posted: Sun Aug 07, 2005 7:20 pm Post subject: Re: Post to Pivot from a Desktop App |
|
|
As I finally get ecto to work (*narf*) I do get this response on one of the latest installs of Pivot, updated XML patch and changed as post above stated
Using ecto 1.7.7
---------------------------
Fehler
---------------------------
Response from server does not contain valid XML.
---------------------------
OK
---------------------------
any ideas? URL for metaweblog is
http://einfach-pragmatisch.de/pivot/metaweblog.php _________________ englisch blog | german blog| geschenkideen zu weihnachten |
|
| Back to top |
|
 |
catarina76 Sub Minion of Pivot Groupie-Ness


Joined: 03 Aug 2005 Posts: 21 Location: Karlstad, Sweden
|
Posted: Mon Aug 15, 2005 7:57 pm Post subject: Re: Post to Pivot from a Desktop App |
|
|
I posted earlier about my problems whith swedish characters when posting from Flickr.
I thought I'd figured it out and that it was an encoding problem. It seems that Flickr uses UTF-8 and I didn't.
But after changing and converting my entries to UTF-8 it still doesn't work. I get question marks in my Pivot-blog instead of swedish å ä and ö, when posting from Flickr.
What do you think, Flickr or Pivot? |
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Tue Aug 16, 2005 1:20 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
catarina76 - I guess it's neither. If you have switched language as described in my latest post in the UTF-8 thread, Pivot should be fine. I don't think a high-profile thing like Flickr is wrong.
This is most likely a server issue. First check what encoding your browser is using - I guess you'll find that it still uses ISO-8859-1. This is because most Apache webserver has this as the default charset - adding "AddDefaultCharset Off" to your .htaccess file might fix it, it did for me.
PS! It would have been a million times easier to help if we could test/see your blog... _________________ My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags |
|
| Back to top |
|
 |
catarina76 Sub Minion of Pivot Groupie-Ness


Joined: 03 Aug 2005 Posts: 21 Location: Karlstad, Sweden
|
Posted: Tue Aug 16, 2005 8:08 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
| hansfn wrote: |
| catarina76 - I guess it's neither. If you have switched language as described in my latest post in the UTF-8 thread, Pivot should be fine. I don't think a high-profile thing like Flickr is wrong. |
You have a point there.
| Quote: |
This is most likely a server issue. First check what encoding your browser is using - I guess you'll find that it still uses ISO-8859-1. This is because most Apache webserver has this as the default charset - adding "AddDefaultCharset Off" to your .htaccess file might fix it, it did for me.
|
I'm not sure how to check my browser for that (firefox mainly). After rebuilding my entries with your script, it has no problem showing things correctly, except when posted from Flickr. I checked in IE now and there it looks even worse.
I tried adding that to my .htaccess file with no result. But I'm not sure if I did it correctly of course. I'm no pro at this at all.
| Quote: |
| PS! It would have been a million times easier to help if we could test/see your blog... |
Oh, I didn't post at link to my blog in my message because I have one in my profile. Sorry! Link to my blog |
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Tue Aug 16, 2005 8:26 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
OK, your blog uses UTF-8 - no problem there. (I'm glad the conversion worked - do you mind posting that fact in the UTF-8 thread?)
I have two more suggestions:
1) The Pivot user that you use for the metaweblog, still don't use UTF-8 as charset.
2) The charset is undefined (and hence defaults to IS0-8859-1) in metaweblog.php. _________________ My Pivot bookmarks, snippets and scripts| Pivot Documentation Project: Template tags |
|
| Back to top |
|
 |
catarina76 Sub Minion of Pivot Groupie-Ness


Joined: 03 Aug 2005 Posts: 21 Location: Karlstad, Sweden
|
Posted: Tue Aug 16, 2005 8:57 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
| hansfn wrote: |
I have two more suggestions:
1) The Pivot user that you use for the metaweblog, still don't use UTF-8 as charset.
2) The charset is undefined (and hence defaults to IS0-8859-1) in metaweblog.php. |
1) Thats not it. I made sure to change to UTF-8 in every place I could think of and rechecked. I checked again now and the user I use for the metaweblog is set to UTF-8.
2) Maybe, but I have no way of checking this for myself. Php could just as well be written in chinese when you ask me unfortunately My metaweblog.php file looks like this, if thats any help?
And sure, I'll post about my success with your script  |
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Fri Dec 09, 2005 4:35 pm Post subject: Re: Post to Pivot from a Desktop App |
|
|
OK, I have just checked and the latest metaweblog.php has two errors (related to changes in xmlrpc). I'll commit the fixed code to SVN (so it works in the next beta) on Monday. If you can't wait until the next beta, download the code from
http://home.himolde.no/~nordhaug/development/pivot/metaweblog.zip
I tested it with Flock and it worked. |
|
| Back to top |
|
 |
madjo Pivot Team


Joined: 11 Sep 2002 Posts: 10450 Location: Netherlands
|
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Fri Dec 16, 2005 6:46 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
I have something even nicer - auto discovery / detection of the metaweblog API in tools like Flock. In the file modules/module_snippets.php add
| Code: |
function snippet_blogapi_autodiscovery() {
global $Weblogs, $Current_weblog, $Paths;
$filname = basename($Weblogs[$Current_weblog]['front_filename'],'.php');
$filename = $Weblogs[$Current_weblog]['rss_path'].'rsd-'.$filname.'.xml';
$rsdfilename = fixpath($Paths['pivot_dir'].$filename);
$rsdurl = fixpath($Paths['pivot_url'].$filename);
// Some desktop blogging tools (Flock at least) needs to know the host explicitly...
$rsdurl = $Paths['host'].$rsdurl;
$blogurl = $Paths['host'].snippet_home();
$blogapiurl = $Paths['host'].$Paths['pivot_url'].'metaweblog.php';
$output = '<?xml version="1.0"?>
<rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
<service>
<engineName>Pivot</engineName>
<engineLink>http://pivotlog.net/</engineLink>
<homePageLink>'.$blogurl.'</homePageLink>
<apis>
<api name="MetaWeblog" preferred="true"
apiLink="'.$blogapiurl.'"
blogID="'.$blogurl.'"/>
</apis>
</service>
</rsd>';
write_file($filename, $output);
$output = '<link rel="EditURI" type="application/rsd+xml" title="RSD" href="'.$rsdurl.'">';
return $output;
} |
Then add "[[blogapi_autodiscovery]]" together with " [[rss_autodiscovery]]" in the frontpage template. Finally in Flock when blogging you can just give the URL to the frontpage of your blog and all settings are discovered/detected automatically. I have tested with Flock and it work like a charm. If someone wants to test with other blog tools (like Fickr), I would be very happy.
This is checked in our SVN and will be part of the next beta. |
|
| Back to top |
|
 |
hansfn Pivot Team


Joined: 15 May 2004 Posts: 5289 Location: Molde, Norway
|
Posted: Wed Jan 04, 2006 9:12 am Post subject: Re: Post to Pivot from a Desktop App |
|
|
Just some more info. Someone requested support for trackbacks in Metaweblog. This isn't defined in the API. It *can* be added through namespace and so on, but noone really does it. Maybe someone wants to write an Atom API which is supposed to be much better?
Some references:
RFC: MetaWeblog API
RFC: Support for other namespaces in MetaWeblog API
The Atom API (about the problems with Blogger and Metaweblog API) |
|
| Back to top |
|
 |
morpurgo.nl Platinum Sponsor


Joined: 26 Jan 2005 Posts: 401 Location: Amsterdam, The Netherlands
|
Posted: Sat Jan 21, 2006 7:42 am Post subject: Posting from Writely.com with API |
|
|
Hi all,
I have used w.blogger and thats a nice tool but i wanted to blog from where ever i am without having to login in Pivot. I played with Writely and i made a post to my blog true you metaweblog API but i cant select the default category. If i post it takes, i think, the first one om alphabetic order so with the A.
Does anyone knows how to solve this problem? _________________ Using Pivot 1.40.4: 'Dreadwind'
 |
|
| Back to top |
|
 |
morpurgo.nl Platinum Sponsor


Joined: 26 Jan 2005 Posts: 401 Location: Amsterdam, The Netherlands
|
Posted: Sat Jan 21, 2006 8:52 am Post subject: Re: Posting from Writely.com with API |
|
|
| morpurgo.nl wrote: |
Hi all,
I have used w.blogger and thats a nice tool but i wanted to blog from where ever i am without having to login in Pivot. I played with Writely and i made a post to my blog true you metaweblog API but i cant select the default category. If i post it takes, i think, the first one om alphabetic order so with the A.
Does anyone knows how to solve this problem? |
Ha found it myself!
Here is how it works:
And here the final entry:
http://www.morpurgo.nl/pivot/entry.php?id=787 _________________ Using Pivot 1.40.4: 'Dreadwind'

Last edited by morpurgo.nl on Sun Jan 22, 2006 7:49 am; edited 1 time in total |
|
| Back to top |
|
 |
morpurgo.nl Platinum Sponsor


Joined: 26 Jan 2005 Posts: 401 Location: Amsterdam, The Netherlands
|
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|