?

Log in

No account? Create an account
Silly question.. - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

Silly question.. [Jun. 16th, 2002|02:09 pm]
LiveJournal Client Discussions

lj_clients

[satchmoz]
Ive been looking at the source code to livelizard. I want to try and modify it so that the mood pic is displayed when it posts. (Mood pictures are currently ignored/lost). However after reading the protocol documentation I am a little confused as to when/where the mood pictures data is sent (pic urls). Is the data sent in with getmoods?
linkReply

Comments:
From: evan
2002-06-16 07:25 am (UTC)
(Reply) (Thread)
[User Picture]From: sapphirecat
2002-06-16 11:42 am (UTC)
When sending the login request, the client can optionally send a key stating the highest mood ID that they have cached on the user's computer. The server sends back a list of all the moods above that number--I don't remember how it works exactly, but there's a field returning how many moods are coming, then for each mood, a mood_${INDEX}_id and corresponding mood_${INDEX}_name field. (Where the index begins at 1.)

So getting back to posting the mood icon. When you post, you need to send a prop_current_moodid field with the corresponding mood ID you got from login. IIRC, prop_current_moodid=67 would post "flirty" with an icon.

FWIW, the pickw stuff is for the user pictures--which one to select for the post (getpickws) and where they're at (getpickwurls) if you want a graphical selection method. I'll assume you know what a user picture is, since you have one.

Whether any of this is actually possible with Livelizard is up to you to decide. Good luck :)
(Reply) (Thread)
[User Picture]From: ravinald
2002-06-17 05:27 am (UTC)

getpickws -vs- getmoods

you're mixing up two differnt options for the login mode.

to get the MOOD icons, you will need to send the moodid to the server. the moodid is obtained by sending the current moodid you have cahced on the system. the system will return with all the moods and their values. the key to send to the server with the postevent is prop_current_moodid.

requesitng getpickws will return the user ICONS and their values. prop_picture_keyword is what you send it back in.

requesting getpickeurls will return the actual url of each of the ICONS above.

hope this clears things up.

all of this can be found in the developer area under the "login" and "postevent" modes.
(Reply) (Thread)
[User Picture]From: satchmoz
2002-06-18 01:42 pm (UTC)

Thanks everyone..

I was able to make the necisary alterations thank you all for your help :-)
(Reply) (Thread)