You are viewing lj_dev

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

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

More XFN support in profiles [Sep. 13th, 2012|03:34 pm]

lindner
Hi -- here's a patch that adds proper rel="me" for the yahoo and last.fm portions of the profile.  I'd like to also add the same to the twitter/facebook/other links from
        my $instant_message_xtra = LJ::run_hook('userinfo_instant_message_extra', user => $u, remote => $remote, mangleaddress => $mangleaddress );
If anyone can point me at the source for that I can also patch that.
Thanks!
Paul
===================================================================
--- htdocs/userinfo.bml (revision 22866)
+++ htdocs/userinfo.bml (working copy)
@@ -1080,7 +1080,7 @@
             my $yim = LJ::ehtml($u->{'yahoo'});
             my $yim_alt = $ML{'.im.yim'};
             my $yimstatus_alt = $ML{'.im.yim.status'};
-            $instant_message .= "<tr class='im_yahoo'><td class='im_icon'><img src='$LJ::IMGPREFIX/profile_icons/yahoo.gif?v=14273' alt=\"$yim_alt\" title=\"$yim_alt\" /></td><td><a href='http://profiles.yahoo.com/$yim'>$yim</a></td><td class='im_status'><img alt=\"$yimstatus_alt\" title=\"$yimstatus_alt\" src='http://opi.yahoo.com/online?u=$yim&amp;m=g&amp;t=0' width='12' height='12' /></td></tr>\n";
+            $instant_message .= "<tr class='im_yahoo'><td class='im_icon'><img src='$LJ::IMGPREFIX/profile_icons/yahoo.gif?v=14273' alt=\"$yim_alt\" title=\"$yim_alt\" /></td><td><a rel-'me' href='http://profiles.yahoo.com/$yim'>$yim</a></td><td class='im_status'><img alt=\"$yimstatus_alt\" title=\"$yimstatus_alt\" src='http://opi.yahoo.com/online?u=$yim&amp;m=g&amp;t=0' width='12' height='12' /></td></tr>\n";
         }
         if ($u->{'msn'}) {
             my $msnname = $mangleaddress->(LJ::ehtml($u->{'msn'}));
@@ -1120,7 +1120,7 @@
             my $url_escaped_last_fm_user = LJ::eurl($u->{'last_fm_user'});
             $lastfm_url =~ s/%username%/$url_escaped_last_fm_user/g;
-            my $lastfm = "<a href='$lastfm_url'>" . LJ::ehtml($u->{'last_fm_user'}) . "</a>";
+            my $lastfm = "<a rel='me' href='$lastfm_url'>" . LJ::ehtml($u->{'last_fm_user'}) . "</a>";
             my $lastfm_alt = $ML{'.im.lastfm'};
             $instant_message .= "<tr class='im_lastfm'><td class='im_icon'><img src='$LJ::IMGPREFIX/profile_icons/lastfm.gif?v=14402' alt=\"$lastfm_alt\" title=\"$lastfm_alt\" /></td><td colspan='2'>$lastfm</td></tr>\n";
         }
linkpost comment

How to download all posts from journal [Sep. 9th, 2012|07:38 pm]

skoblov
I try to make local copy of my friends posts for 2012 using flat API.

There are two ways to do this:

1. Get posts ID using mode=syncitems, and get posts later using mode=getevents. This method works only for my journal and communities. If I try to request data (mode=syncitems) from other journal, server answers "Client error: Don't have access to requested journal"

2. Downloads posts using mode=getevents & selecttype=syncitems & lastsync=.... This method works for any journals, but I can't find source of good value for lastsync time. If server returns first 100 posts, I need to continue using modification time of last received post. But LJ does not include it in answer (it present in mode=syncitems answer only)
link1 comment|post comment

(no subject) [Aug. 3rd, 2012|07:25 am]

dennis
[Tags|, , , ]

Is there any API available helping to get user's date of registration and location?
link2 comments|post comment

weirdness in XML-RPC API [Jul. 18th, 2012|03:56 pm]
corristo
[Tags|, , ]

Hi,

I think I found some problem in XML-RPC API when using getcomments & getfriendspage method to get comments & friend posts respectively.

If comment/post body is something like "+100", API will return xml with field of type "int", not string or base64 (this is also not documented anywhere when API returns plain string and when base64).

Example xml:
<member>
  <name>body</name>
  <value>
    <int>+100</int>
  </value>
</member>


Is it a bug?
link3 comments|post comment

Installing Livejournal: location of files and importance of Subversion [Jul. 12th, 2012|08:13 pm]

vivakepathak
[Tags|, ]

I wish to install Livejournal for my website. I tried my best, but I could not find a page or location from where I can download the LJ installation files. My sites are hosted at IXwebhosting.com, and they told me that my account has Perl(v5.8.8), MySQL - 5.0.41, apache-1.3.37, mod_perl 1.29, but no Subversion. So, here are my questions:

1. From where do I download the files needed to install Livejournal for my website? Will I be able to install them through FTP?  

2. How important or compulsory is it to have Subversion for installation and maintenance of Livejournal? Will it be possible to get updates and keep the software up-to-date without Subversion?
link8 comments|post comment

editfriends and edit friends [Jul. 5th, 2012|07:44 am]

lord_baskervil
[Tags|, , , ]

>This function allows adding, editing, and deleting friends from the Friends list.

With adding and deleting friends all good. But I don't understand how to edit friend? How to change via api his bgcolor and fgcolor and change group.
Any ideas?
linkpost comment

Groupmask in getfriends responce [Jun. 26th, 2012|05:01 pm]

lord_baskervil
[Tags|, , ]

How convert groupmask to groups which friend belongs to?
link3 comments|post comment

API for communities [Jun. 22nd, 2012|12:56 pm]

lord_baskervil
[Tags|, , ]

Hello. I want to get more info about communities via API, but I found only names in profile responce. Does exist api for getting information about community, such as amount of members, your priveleges in this community and etc?
link6 comments|post comment

XMLRPC and fault (error) codes [May. 14th, 2012|11:03 am]

lord_baskervil
I'm looking for documentation about erorr codes. Can you help me?
link6 comments|post comment

iPhoto Plugin [May. 6th, 2012|09:18 am]

schpydurx
[Tags|, , ]

I know that there used to be an LJ plugin for iPhoto. I'm wondering if anyone would like to tackle the job of updating and/or making a new iPhoto plugin.
linkpost comment

navigation
[ viewing | 10 entries back ]
[ go | earlier/later ]