?

Log in

No account? Create an account
RSS Skip Back, See Comments - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

RSS Skip Back, See Comments [Aug. 3rd, 2005|01:35 pm]
LiveJournal Client Discussions

lj_clients

[vodex]
Hi. I am developing a Wordpress plugin to make it a lot easier to import LJ posts (for those who prefer LJ to lonely WP :) To get user posts, I'm using the RSS feed e.g.
[Error: Irreparable invalid markup ('<a [...] http://www.livejournal.com/users/vodex/data/rss/</a>') in entry. Owner must fix manually. Raw contents below.]

Hi. I am developing a Wordpress plugin to make it a lot easier to import LJ posts (for those who prefer LJ to lonely WP :) To get user posts, I'm using the RSS feed e.g. <A href="http://www.livejournal.com/users/vodex/data/rss/>http://www.livejournal.com/users/vodex/data/rss/"
http://www.livejournal.com/users/vodex/data/rss/</A>

First, whilst I think of it, is there any difference in me choosing rss over atom, apart from the schema?

And now for the biggie:

Is there a way to skip back posts, or get comments, with the feed? (?skip=20 doesn't work).

Apart from that wishlist, it works like a charm: <A href="http://www.vodex.me.uk/projects/lj_feed_import/">http://www.vodex.me.uk/projects/lj_feed_import/</A>

Cheers!
linkReply

Comments:
(Deleted comment)
[User Picture]From: marksmith
2005-08-08 08:15 pm (UTC)
Only if he wants to use the flat mode.

I recommend using the XML-RPC versions, if you're using a reasonable language such as Perl. They're very easy to use and they return data in flexible formats that you don't have to reassemble. You're going to be writing an XML parser anyway if you're getting comments (they aren't available in flat mode).
(Reply) (Parent) (Thread)
[User Picture]From: vodex
2005-08-10 09:19 am (UTC)
I had no idea any of this existed, as http://www.livejournal.com/bots/ only mentions the XML outputs and the other comms I was in have not mentioned them. Thanks!

(Reply) (Parent) (Thread)
[User Picture]From: vodex
2005-08-15 05:50 am (UTC)
Hmm, going over the protocol, it appears I have to authenticate to the server - I can't just use the interface anonymously. I'd rather design the plugin without the username/password requirement - do I have to do the login?
(Reply) (Parent) (Thread)
[User Picture]From: elf_inside
2005-08-09 03:54 pm (UTC)
I don't care anything about wordpress, but you need to learn proper formatting for LJ posts. Trying to use a frame in your post, or whatever you're doing, severely breaks your post. You've got irreparable markup codes, text overlaying the image, a damned SCROLL BAR on your entry, etc.... Whatever you're using to post with is really really borked.
(Reply) (Thread)
[User Picture]From: vodex
2005-08-10 09:22 am (UTC)
I posted to here using Semagic as normal and when it came out of the queue it looked like that! Don't know what happened there, but the post was validly formatted (or Semagic has a problem in posting to moderated comms).
(Reply) (Parent) (Thread)
[User Picture]From: acolyte13
2005-08-23 08:51 pm (UTC)

chimes in

so i know this may be a stupid question but what is the mark up code for the scroll bar to use that effect on lj? hopefully i worded that right.heh. i want to use it on mine.
(Reply) (Thread)
[User Picture]From: decadence1
2005-08-24 08:41 am (UTC)

Re: chimes in

No, it's not a stupid question. :o)

It's kind've off-topic to the entry itself though and/or the community (about writing software programs - 'clients', that people can download+use to update their journals; or otherwise interface with the LJ site), which the entry's in though. You'd probably generally have more luck with getting an answer if you tried a community search to locate communities that discuss HTML, to ask there about the markup code needed for a scroll bar/whatever. Otherwise you're reliant on the original poster a) receiving comment emails and b) deciding to reply, assuming c) they know the answer; or, someone else reading the older entry and replying to your comment.
Generally, you can also view page source in your browser, to find out 'how did they do that?'. Because the poster of this entry had a HTML error in their entry the scrollbar wasn't deliberate on their part... so that wouldn't be that helpful. A window with a scroll-bar is a pretty common sight on userinfo pages though, so you could view source at a page like that to see the code. HTML tutorials on the web e.g. lissaexplains.com are helpful too.

Since I'm commenting already... and I know I wondered how people did those scrolling textboxes for ages :)...you can do what you want using the textarea element. E.g:

<textarea rows="4" cols="20">
line 1
line 2 etc.
</textarea>
(Reply) (Parent) (Thread)
[User Picture]From: acolyte13
2005-08-24 12:24 pm (UTC)

Re: chimes in

thank you so much!! sorry it was off topic but you explained it perfectly.
(Reply) (Parent) (Thread)
[User Picture]From: jdstroy
2006-01-22 05:59 pm (UTC)

Re: chimes in

I don't recommend using TextArea to display your data with a scrollbar... it's plain-text only. Instead, use cascading style sheets (CSS) on a block element, such as DIV, with fixed width and height attributes and an overflow attribute, like so:

<div style="width: 30px; height: 40px; overflow: scroll">content</div>
(Reply) (Parent) (Thread)