Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#61 2005-03-20 01:08:01

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

<del>Perhaps an easier method is now available that should be incorporated into the plugin, circumventing the need for an RSS parser altogether. It’s now possible to make requests from the API for HTML-formatted links. Add a little PHP caching action, and you’re in business! Need any help?</del>

n/m

Last edited by Andrew (2005-03-26 05:03:03)

Offline

#62 2005-03-31 19:51:13

kennethlove666
Member
From: arkansas
Registered: 2004-04-27
Posts: 107
Website

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

any chance of modifying this to work with de.lirio.us? it allows you to post a message with any bookmark, which would make a linklog a bit more useful.


Listen to Kenneth

Offline

#63 2005-04-04 12:42:43

Michael
Member
From: Vienna/Austria
Registered: 2004-03-25
Posts: 147
Website

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

I think a much easier method is this one!

Offline

#64 2005-04-30 14:36:29

Jennifer
Member
From: Michigan
Registered: 2004-02-25
Posts: 74
Website

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

A very belated update for a happy user! After TextDrive updated their servers, I tried this again, and it works like a dream. I don’t know what was up with the servers before, but I couldn’t get anything to do with magpie (or anything similar) to work, and now it all works.

I love this!

Offline

#65 2005-07-12 13:42:07

pbattley
New Member
Registered: 2005-07-12
Posts: 3

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

Nice plugin. However, there’s a problem with addresses containing ampersands (&) – these are inserted verbatim into the link, rather than being escaped as XHTML requires.

For example, the link:
“http://example.com/resource?foo=bar&baz=quux”
should be escaped as:
“http://example.com/resource?foo=bar&amp;baz=quux”
in the href parameter.

Unescaped ampersands prevent validation as XHTML strict.

Here’s a simple solution:

change the line:
$url = $item[‘link’];
to:
$url = clean_link($item[‘link’]);

and add the clean_link function as follows:

function clean_link($u) { if (false === strpos($u, ‘&amp;’)) { return str_replace(‘&’, ‘&amp;’, $u); }
}

(The check for an existing &amp; just makes sure that nothing is double-escaped in case surrounding code changes in the future.)

Offline

#66 2005-07-12 13:50:32

pbattley
New Member
Registered: 2005-07-12
Posts: 3

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

Oops! Evidently Textile has eaten some details in my post above. Moderators, feel free to delete it. Here’s another try, which might come out correctly.

Nice plugin. However, there’s a problem with addresses containing ampersands (&) – these are inserted verbatim into the link, rather than being escaped as XHTML requires.

For example, the link:
<code>“http://example.com/resource?foo=bar&amp;baz=quux”</code>
should be escaped as:
<code>“http://example.com/resource?foo=bar&amp;amp;baz=quux”</code>
in the href parameter.

Unescaped ampersands prevent validation as XHTML strict.

Here’s a simple solution:

change the line:
<code>$url = $item[‘link’];</code>
to:
<code>$url = clean_link($item[‘link’]);</code>

and add the clean_link function as follows:

<pre>function clean_link($u) { if (false === strpos($u, ‘&amp;amp;’)) { return str_replace(‘&amp;’, ‘&amp;amp;’, $u); }
}</pre>

(The check for an existing &amp;amp; just makes sure that nothing is double-escaped in case surrounding code changes in the future.)

Offline

#67 2005-07-12 13:52:02

pbattley
New Member
Registered: 2005-07-12
Posts: 3

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

Correction to last line:

(The check for an existing <code>&amp;amp;</code> just makes sure that nothing is double-escaped in case surrounding code changes in the future.)

Offline

#68 2005-07-17 18:48:08

Rachel Rachel
Member
Registered: 2004-09-24
Posts: 28

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

i’m not sure if this is a problem with the plugin or with the file download feature on TXP, but i’m running v1.3 of the plugin, and for some reason, my magpierss.php (which is supposed to be uploaded thru the file download interface thingy) periodically disappears and i have to re-upload it.

it’s really random; every once in awhile i load my page and in place of my links i get the error message (‘txp.icio.us requires magpierss’) and then i check the file download tab and it says that file is missing.

help?

Offline

#69 2005-07-17 20:28:53

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

are you upgrading from svn every now and then? I’ve had files disappear after my own carelessness from uploading new versions.

Offline

#70 2005-07-18 21:06:39

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

More or less all URI´s on the TXP Sites Collection are inserted into the site by this fancy plugin. I just wonder if it is, by any chance, possible to add a sort (random)? Right now they are sorted by date as delicious does.

Offline

#71 2005-07-19 05:43:30

Rachel Rachel
Member
Registered: 2004-09-24
Posts: 28

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

> paularms wrote:

> are you upgrading from svn every now and then? I’ve had files disappear after my own carelessness from uploading new versions.

i don’t even know what svn is… what is it?

Offline

#72 2005-07-19 08:26:40

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

@Rachel
here is an article about SVN for you :)

Offline

#73 2005-07-21 12:39:22

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

On the TXP Sites Collection more or less all URI´s are inserted by this great plugin. Though i did set maxitems to 40 or 50, only 31 URI´s are inserted. Anybody an idea why? Does del.icio.us restrict that?

EDIT:
Joshua Schachter from delicious just mailed the following:
*The RSS feeds only show the last 30 items (plus one, for historical reasons?).
All your posts are available via the API, although not in RSS format at this moment.*

f*** :(

Last edited by alexandra (2005-07-21 21:28:30)

Offline

#74 2005-07-22 22:24:56

Rachel Rachel
Member
Registered: 2004-09-24
Posts: 28

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

i don’t think SVN is the problem, since i’ve never tinkered with it. any other ideas? i get the feeling that i’m the only one with this problem, so sorry to bother you all.

Offline

#75 2005-07-22 22:33:51

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] txp.icio.us - Del.icio.us bookmarks made easy

Rachel, you do not need this plugin at all. you can get a RSS List much easier wich RSS Digest. i tryed it yesterday and it works perfectly. if you have any question on it, mail me.

Last edited by alexandra (2005-07-22 22:34:17)

Offline

Board footer

Powered by FluxBB