tetoest: (Default)
tetoest ([personal profile] tetoest) wrote in [site community profile] dw_suggestions2011-12-27 12:13 am

Imported Writer's Block Posts

Title:
Imported Writer's Block Posts

Area:
Importer

Summary:
Replace the link on imported writer's block posts from Livejournal with the text of the actual question.

Description:
I've noticed that posts I've imported from Livejournal containing Writer's Block questions do not display correctly. This is probably because the question is not included in the text of the post but instead rendered as "lj-template qotd" enabling associated links to other answers.

When this is imported the code isn't recognised and displays as an error and leaves the post without the question it is answering. I don't pretend to know how the importer works and, for the six posts that I have, I can edit it manually.

I was curious though if it would it be possible to have the importer pull the data and then replace lj link with the plain text of the question instead.

Poll #8901 Imported Writer's Block Posts
Open to: Registered Users, detailed results viewable to: All, participants: 71


This suggestion:

View Answers

Should be implemented as-is.
19 (26.8%)

Should be implemented with changes. (please comment)
1 (1.4%)

Shouldn't be implemented.
6 (8.5%)

(I have no opinion)
38 (53.5%)

(Other: please comment)
7 (9.9%)

azurelunatic: Vivid pink Alaskan wild rose. (Default)

[personal profile] azurelunatic 2011-12-27 07:52 am (UTC)(link)
If it can be done, yes!

(I have my doubts about whether they have exposed the writers' block modules via API, however, which is why the "other" vote.)
justhuman: (bunny2)

[personal profile] justhuman 2011-12-27 11:19 am (UTC)(link)
I'll second that other. It should be done if it can, but...

I just took a look at a Writer's Block post and LJ is just referencing a component so that it can bring in the question in it's neat little box

lj-template name="qotd" id="3131" lang="en_LJ" /

When the Importer reads the post, it just copies this code. Dreamwidth would have to go to LJ to look up that "id" to get the text of the question and it may not be available outside LJ.
azurelunatic: Vivid pink Alaskan wild rose. (Default)

[personal profile] azurelunatic 2011-12-27 11:27 am (UTC)(link)
Or only via screenscraping, which is Poor Form.

Though, given that there are a limited number of Writer's Block prompts, and usually the text of the prompt does not change, the way to do that would be to retrieve them all once and store them, and then look them up from storage.

That seems like ... a lot of doing.
montuos: cartoon portrait of myself (Default)

[personal profile] montuos 2011-12-27 04:04 pm (UTC)(link)
+1

If it can be accomplished simply and honorably, then yes. Otherwise, no.
kyrielle: Middle-aged woman in profile, black and white, looking left, with a scarf around her neck and a white background (Default)

[personal profile] kyrielle 2011-12-27 06:20 pm (UTC)(link)
This, yes. I voted "should be implemented as-is" but that should is dependent on "can be" also. Using ethical and technically-reasonable means. :)
arethinn: glowing green spiral (Default)

[personal profile] arethinn 2012-01-06 03:06 am (UTC)(link)
I imagine they'll work out the can be, if it can be, and if it can't be then they'll just say so (like with reading remote content on your DW flist).

[personal profile] delladea 2011-12-27 06:24 pm (UTC)(link)
This exactly.
existence: tj+amal from the adventures of tj and amal (Default)

[personal profile] existence 2011-12-27 07:09 pm (UTC)(link)
+1
lorax: TARDIS (DW - Tardis "Bigger on the Inside")

[personal profile] lorax 2011-12-29 02:37 pm (UTC)(link)
This is my "with changes" as well!
zing_och: Grace Choi from the Outsiders comic (Default)

[personal profile] zing_och 2011-12-31 12:01 pm (UTC)(link)
+1
exor674: Computer Science is my girlfriend (Default)

[personal profile] exor674 2012-01-08 02:54 am (UTC)(link)
Yep, not in the API.