Home
LiveJournal Development [entries|archive|friends|userinfo]
LiveJournal Development

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

API for user profile and photos [Jul. 24th, 2008|12:18 pm]

whiteprohorenko
Hi,

Are there any LiveJournal API that will allow me to read and update user's profile, as well as photos?  I took a look at http://www.livejournal.com/developer/, but didn't find too much about actually profiles there.

Thank you.
link1 comment|post comment

Uploading photos on LiveJournal [Jul. 23rd, 2008|05:35 pm]
dexteradzinski
[mood | curious]

Hi All.

I want to write a simple utility (using Java) to upload pictures in LiveJournal Scrapbook directly from my PC (or, say, a cellphone???). I need some help to get started, i.e.

What documentation I should go through.
What APIs I can use.
The general method to accomplish what I intend to accomplish.

Just an outline would be enough; I will find out the rest.

Thanks.

Dexter.
link3 comments|post comment

Fotobilder export [Jul. 20th, 2008|11:48 pm]

banana
I gave up on getting the perl client working in Cygwin and tried OS X instead (I don't have a Linux box). After some effort with CPAN, fotoup.pl stopped complaining about missing modules, but it didn't exactly work:
$ ./fotoup.pl --backup
To upload: 0 from data, 0 from receipt

Fetching export.xml from server...
Couldn't fetch export XML file from server
Can anyone get the perl client to back up their pictures?

I'm getting it from here: http://pics.livejournal.com/site/clients?file=fotoup.pl
link4 comments|post comment

Fotobilder export [Jul. 16th, 2008|11:24 pm]

banana
I'm having trouble with my Fotobilder client. I'd like to be able to export the user's pictures as a backup. I knew that the Perl client did this, so I looked at how it works. It's rather different to the rest of the Fotobilder stuff: it seems to get the export data by POSTing to http://pics.livejournal.com/manage/export, and it seems to authenticate by a challenge/response cookie. I hope I've understood this correctly.

My first problem is that when my client requests an export I get a 302 sending me to the LJ login page - presumably because the server doesn't like my cookie. To find out if it was just me getting it wrong, I tried running the Perl client. My second problem is that when I try ./fotoup.pl --backup it says
Fetching export.xml from server...
Can't locate object method "new" via package "XML::LibXML::SAX" at /usr/lib/perl5/vendor_perl/5.10/XML/SAX/ParserFactory.pm line
 43.
Now I'm stumped.
  1. Is the Perl client broken?
  2. Does the Perl client work under Cygwin?
  3. Does the server still accept this style of authentication?
  4. Is there any way to get the export data through the normal protocol?
link4 comments|post comment

MultiLJ: Feedback request and poll [Jul. 15th, 2008|07:39 pm]

raven_ap_morgan
[mood | curious]

I've not gotten a lot of feedback yet about MultiLJ and I'm wondering to what extent those who have downloaded it have had success with it. I'm about to post a new version of it, with additional error trapping, bug fixes, and some minor cosmetic upgrades in the friends list. What I'm looking for is some feedback as to how things are going and what I need to concentrate on with it.

Also, I'm looking at several options for continued development. Development of a Mac client is right out for the present, as I'm running Tiger on my Mac and Apple is only distributing a development kit that's compatible with Leopard. However, I recently made my development PC a dual-boot box with Ubuntu, so Linux development is quite doable. So, here's what I'm considering - let me know what there's demand for:

1) An LJ client for Linux/GTK+
2) A LJ archiving program
3) More concentrated effort on MultiLJ, perhaps adding things like uploading photos

Comments would be appreciated.
link4 comments|post comment

Captchas [Jun. 24th, 2008|12:43 pm]

scenejournal
Hello all,

I've been trying to get captcha to work this morning, and I'm almost there. I've got them generated and all, but they're showing up as broken images. I've tried setting the blobserver path to be $HOME/var/blobs, /home/lj/var/blobs/, /home/var/blobs/1/0/000/001/captcha_image/0/ and nothing seems to work, what's the trick to getting it to work?

Here's my current config. It also doesn't seem to be showing them for anon comments :(

%LJ::BLOBINFO = (
"clusters" => {
"1" => "$LJ::HOME/var/blobs/",
},
);
$LJ::ANTI_TALKSPAM = 1;
%LJ::HUMAN_CHECK =
(
create => 1,
anonpost => 1,
);
$LJ::RATE_COMMENT_ANON = [[0, 65535]];

Thanks!
link11 comments|post comment

Software Release - MultiLJ [Jun. 24th, 2008|10:56 pm]

raven_ap_morgan
[mood | hopeful]

I'm announcing the release of MultiLJ, a new LiveJournal client for Windows. Its unique feature is that all of its functions - journals, profiles, post editors, and so on - are independent windows that are hosted by the application. In other words, it is an MDI application and is also not dependent on the user's default browser. Editing and deletion of past posts are supported, as is custom friends groups. There is a comprehensive Help file available for Windows XP users (not available under Vista).

Because it is a young application, I consider it beta in nature. Hence, feedback and error repost are much appreciated. The download can be found at its community page, [info]multilj, and issues with the program can be either reported there or at multilj@ravenslakeconsulting.com.
linkpost comment

Cron Errors... [Jun. 19th, 2008|08:55 pm]

mistapotta
I'm getting these cron errors very often. Any ideas how I can correct the problem?


Global symbol "$remOteid" requires explicit package name at /var/www/journal/cgi-bin/ljlib.pl line 439.
Compilation failed in require at /var/www/journal/bin/qbufferd.pl line 9.
BEGIN failed--compilation aborted at /var/www/journal/bin/qbufferd.pl line 9.


Less often (but still multiple times daily) I get this:

Global symbol "$remOteid" requires explicit package name at /var/www/journal/cgi-bin/ljlib.pl line 439.
Compilation failed in require at /var/www/journal/bin/ljmaint.pl line 16.


Thanks ahead of time.
TDP.
link5 comments|post comment

Generating an ECP hash. [Jun. 19th, 2008|01:13 am]

professormass
[mood | annoyed]

(Bumping this up from earlier comments in the hopes of assistance.)

I'm stuck on one issue. I've used the form sent out via comment emails as a basis, but I'm having a hard time generating the ECP hash.

In talklib.pl, the hash is generated like so:




sub ecphash {
my ($itemid, $talkid, $password) = @_;
return "ecph-" . Digest::MD5::md5_hex($itemid . $talkid . $password);
}





In PHP, I'm doing this:




$TalkID = '1010';
$ItemID = '010101';
$Password = 'mypassword';
$ECPHash = md5($ItemID . $TalkID . $Password);





However, the submitted form is rejecting the hash as having the wrong password. Is there some further munging of the password that needs to be done to generate a valid password for hashing? Or is the PHP md5() doing something different than the Perl library?

Now, I know the TalkID and the ItemID aren't the problem, which leaves me with one of two options:

1) The MD5 hashing functions work differently between PHP and Perl (which would be odd).

2) The password being used to generate the hash on LJ's side is not a clear-text password, but rather some sort of encrypted form of the password being pulled from their database

Any clues?

Edited To Add: Thank you, [info]ciaran_h! Here is the fixed and working code:





	$Journal = 'JournalReceivingReply';
	$Poster = 'UsernameOfReplyingParty';
	$TalkID = '01010';
	$DItemID = '101010';
	$JItemID = intval($DItemID/256);
	$Password = 'apassword';
	$ECPHash = md5($JItemID . $TalkID . $Password);

	echo '
<html>
	<body>
		<form method="post" target="ljreply" action="http://www.livejournal.com/talkpost_do.bml">
			<input type="hidden" name="usertype" value="user" />
			<input type="hidden" name="parenttalkid" value="' . $TalkID . '" />
			<input type="hidden" name="itemid" value="' . $ItemID . '" />
			<input type="hidden" name="journal" value="' . $Journal . '" />
			<input type="hidden" name="userpost" value="' . $Poster . '" />
			<input type="hidden" name="ecphash" value="ecph-' . $ECPHash . '" />
			<input type="hidden" name="encoding" value="windows-1252" />
			<b>Subject:</b> <input name="subject" size="40" value="" />
			<p><b>Message:</b>
			<br />
			<textarea rows="10" cols="50" wrap="soft" name="body"></textarea>
			<br />
			<input type="submit" value="Post Reply" />
		</form>
	</body>
</html>
	';



link10 comments|post comment

editfriends XML-RPC issue. [Jun. 16th, 2008|03:43 am]

professormass
[mood | annoyed]

Hi!

I'm trying to get my PHP-based XML-RPC client update friends' lists using the editfriends method, but I'm getting an odd response. Here's my PHP code:




require('Configuration/Configuration.php');
require($FunctionRoot . 'xmlrpc.php');

// LJ XML-RPC Variables
$add = array();
$add['username'] = 'user_to_be_friended';
$add['fgcolor'] = '#00688B';
XMLRPC_prepare($add,'struct');

$array = array();
$array['username'] = 'professormass';
$array['password'] = 'my_password';
$array['add'] = $add;

XMLRPC_prepare($array,'struct');

$result = XMLRPC_request('www.livejournal.com','/interface/xmlrpc','LJ.XMLRPC.editfriends', array($array));




I get this response:



Application failed during request deserialization: wrong element 'username'



Virtually the exact same code works for using the postevent method. Anybody have any clues on this one?
link1 comment|post comment

Is efg_set_groupnum_public working? [Jun. 12th, 2008|12:04 am]

raven_ap_morgan
[mood | confused]

I think my subject line says it all - I'm currently implementing custom friend groups in my LJ client ([info]multilj), and so far, I can't seem to get that command to work properly. My other "efg" commands seem to be working okay, but that one is not - I execute it and it returns without an error, but without changing the public status of the friend group in question.

Any thoughts?
linkpost comment

Adding Analytics Code To Journals [Jun. 6th, 2008|05:00 pm]

scenejournal
Hello,

I am interested in adding some analytics (Google/Mint) code into journals. I've figured out how to add it into the main site (very simple), but getting into journals is proving to be a bit more difficult. I am not sure if I have to edit each s1 and s2 theme or if there's some place where I can place it once and be done with it.

Any help is much appreciated!

Thanks!

Update: Figured it out! For S2 stuff, edit the file /cgi-bin/LJ/S2.pm. I stuck it in around line 1957, seems to work fine :) As for S1, that took some poking around, but it seems /cgi-bin/ljviews.pl does the trick, I inserted this code:

$lastn_page{'head'} .= qq{YOUR SCRIPT CODE \n};

around line 1106 and it seems to be working as well, hopefully this helps someone!
link3 comments|post comment

Delicious Livejournal Abandonment [May. 28th, 2008|05:45 pm]

nounverb
Hello,

Long ago I developed a script which parses delicious daily post data to LiveJournal due to (long ago) XMLRPC weirdness.

I called this script Delicious LiveJournal and previously had an open relay for which anyone could relay their delicious information.

Well I've graduated and my college webspace is cancelled so I am going to make the script available once again on a different host, however, there will not be any public relay available, so if you previously used this client, please download this code and put it on your own server.

Delicious LiveJournal

All you need is a server running PHP5. Put both scripts in a web accessible directory, and away you go. I've been really bad about maintaining development on this, I only added what I needed and used, so many others have made additions or subtractions as they saw fit for their uses.

Feel free to edit the code and redistribute but attribute the guy who wrote the XMLRPC library and me.

Have a great day.
link5 comments|post comment

ru.dat [May. 30th, 2008|09:26 pm]

lsnstrvsk
plz tell me
in wich repositary can be found the most fresh ru.dat language file
http://code.sixapart.com/svn/ljcom/trunk ?
or some else brunch?
thank you!
link2 comments|post comment

SessionGenerate [May. 27th, 2008|04:53 pm]

raven_ap_morgan
[mood | confused]

I know perfectly well how to obtain the cookie associated with the SessionGenerate call - that's no problem. I'm completely confused as to what to do with that cookie to make my browsers stay logged in. I'm using Visual Basic 2008, and the browsers in question are not calls to the user's default browser, but internal WebBrowser forms. I don't know if I need to add the cookie to the header of each invocation of a WebBrowser, or whether there's a method call that will take care of it for me.

To quote TeX, "I'm stymied..."

How have you folks that have already written clients solved the problem?
link6 comments|post comment

Windows? [May. 25th, 2008|02:30 pm]
r_eto_x
I realize that this is probably a pathetic question, but I've been wanting to set up an intranet LJ system. The only operating system we have is Windows, though. I'm pretty new to these types of installations, and while I've gone through the manual and did my best to set up the LJ, I haven't been able to figure out how to properly install it on Windows. Some parts worked, but a few of the commands were unrecognized by the command prompt and I have no idea how to "translate" them. I have the latest versions of MySQL, Apache, and ActivePerl and am running a Windows XP.

This is more of a "for fun" thing, but I'd still like to get this set up. Could anyone with experience running LJ on Windows walk me through the differences from the normal, or is it impossible?
link2 comments|post comment

Adding genders [May. 14th, 2008|10:28 am]

popefelix
I have one very good friend who considers themself to be neither male or female gendered, and who does not care to list themself as "unspecified". And it seems to me that it's a good thing to support more genders than just "Male", "Female", and "Unspecified". So I'm adding it to Inksome. But I have a problem. I modify the requisite section in /manage/profile/index.bml:

 # gender
        $ret .= "<tr><td class="field_name">$ML{'.fn.gender'}</td><td>";
        $ret .= LJ::html_select({ 'name' => 'gender', 'selected' => $u->{'gender'} },
                                  'U' => $ML{'.gender.unspecified'},
                                  'M' => $ML{'.gender.male'},
                                  'F' => $ML{'.gender.female'},
                                  'O' => $ML{'.gender.other'}, # ADDED
                                  'N' => $ML{'.gender.none'} # ADDED
                               );
        $ret .= "</td></tr>\n";


And

 # opts
            $POST{'opt_showmutualfriends'} = $POST{'opt_showmutualfriends'} ? 1 : 0;
            $POST{'opt_hidefriendofs'} = $POST{'opt_hidefriendofs'} ? 0 : 1;
            $POST{'opt_showschools'} = 'N' unless $POST{'opt_showschools'} =~ m/^(N|R|Y|F)$/;
            $POST{'gender'} = 'U' unless $POST{'gender'} =~ m/^[UONMF]$/; # MODIFIED


And I add the requisite bits in lj/htdocs/manage/profile/index.bml.text:

.friendof=Show other users who have friended you, but you have not friended

.gender.other=Other

.gender.none=None

.gender.female=Female

.gender.male=Male

.gender.unspecified=(Unspecified)


Note there that I added ".gender.other" and ".gender.none".

So then I thought that maybe it was lj/htdocs/editinfo.bml.txt that I needed to fiddle, adding:

.gender.other=Other

.gender.none=None


But that didn't do it either. So I'm stumped. Any ideas?
link12 comments|post comment

A Work In Progress - MultiLJ... [May. 17th, 2008|03:11 am]

raven_ap_morgan
[mood |creative]

I've started work the last couple of nights on a new LiveJournal client for Windows. I'm writing it in Visual Basic 2008, hence it's going to run under the .NET 3.5 Framework. Its working name is MultiLJ, as one of the features of the client is that one can open multiple journals within it - it's an MDI application. I've already got it to the point that it can log into the server and open up windows containing a Friends Page and a Recent Entries page at the same time, if one chooses.

So far, the only problem I've encountered is that I'm having some problem with challenge-response authentication - I don't think I'm encoding my response correctly, as I'm getting an "Invalid password" response from the server. So for testing purposes, I'm using clear-text, though I'd never use that for the final product - I do want to iron out that problem.

I plan on setting up a separate username for testing this client as I go along - I don't want to accidentally trash out the [info]raven_ap_morgan account in the process of developing this thing. I'll announce when I have it running, and I'd appreciate it if some of you would friend me there so I can test various aspects of the program. Eventually, I'll be going through the usual paces of setting up a community and website for distributing this client, but that's Waaaaaaaaay in the future - I've only been at this a couple of days now.

So I'll be keeping you all posted...

Raven
link4 comments|post comment

SessionGenerate and PostEntry meta-data [May. 22nd, 2008|11:03 pm]

raven_ap_morgan
[mood | confused]

Long story short: I'm writing a client in Visual Basic 2008, and while I have no problem obtaining the cookie provided by SessionGenerate, I'm having a devil of a time figuring out how to set the cookie. As usual, Micro$oft's documentation is about as clear as mud on the matter, usually saying that it's the server responsibility. Some of this is new ground for me, so I'm not sure how to proceed.

Also, I'm working on my postentry module, and generally, it goes well, except that I'm not sure of the format of the meta-data. For example, I tried to set current_mood and current_moodid, yet they were not reflected in my test posts. I'm using flat format, so I assumed that it was just current_mood=mood and so on, but it didn't work.

Any help would be appreciate. I realize that these are novice questions, but the docs are a bit unclear.
linkpost comment

Multiple videos in one post [May. 10th, 2008|01:13 am]

shamangirl
I have noticed that the code patch that allows a user to post more than one video in a post doesn't seem to have been ported to the open-source code.

Does anyone have a code patch for that and/or know what routine handles it? Thanks.
linkpost comment

navigation
[ viewing | most recent entries ]
[ go | earlier ]