жизнь в Тироле, Горнолыжный инструктор в Австрии, Технологии для горнолыжных курортов

recent comments - the way of making yours BLOG better!

in meinem blog hab ich module "RESENT komments" optimiert.
Jetzt kann jeder lesen letzte komments und sofort antworten.
Es ist einige sachen,welche helfen blog zu verbessern.

Я встроил, наконец, на страничку своего блога последние комментарии. Это позволяет видеть комментарии со всех страниц и сразу отвечать или переходить к комментируемой статье любому пользователю без необходимости посещения страницы http://www.livejournal.com/tools/recent_comments.bml  

Все написано на PHP и запущенно на внешнем сервере, Т.к. умники запрещают в ЖЖ встраивать напрямую кусочки кода.

А поскольку даже фреймы (псевдо запрещенные) работают только в opera  - то единственное решение - генерировать на лету картинки с текстами комментариев и обрабатывать налету нажатия на ссылки.

Комментарии PHP код получает каждые 10 минут с сервера.
 last_komments
 
Код работает так, что можно запрашивать до 10 последних комментариев, можно и дальше доработать.

Попробуйте, это очень удобно для ЖИВОГО блога.
  • smamit

Friends entries

Hi, All

I need to get friends list in my app. I am going to run over html content and scrap needed data.
Do we have some way to specify in which style We get friends list  ( Something like this http://zuma.livejournal.com/friends?style=Everwhite&skip=10 or http://vodex.livejournal.com/friends/?s2id=StyleId&auth=digest ). 
How can i know what is the ID of certain style ?

Thanks.
  • lindner

More XFN support in profiles

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";
         }
Змей
  • skoblov

How to download all posts from journal

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)

weirdness in XML-RPC API

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?
35

Installing Livejournal: location of files and importance of Subversion

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?