{"id":2058,"date":"2004-04-14T00:49:39","date_gmt":"2004-04-14T00:49:39","guid":{"rendered":"http:\/\/www.soulhuntre.com\/items\/date\/2004\/04\/14\/a-view-into-the-lj-community\/"},"modified":"2004-04-14T00:49:39","modified_gmt":"2004-04-14T00:49:39","slug":"a-view-into-the-lj-community","status":"publish","type":"post","link":"http:\/\/legacyiamsenseiken.local\/2004\/04\/14\/a-view-into-the-lj-community\/","title":{"rendered":"A view into the LJ community…"},"content":{"rendered":"

Well, [[LJ]] is an interesting place. I came across<\/a> a script<\/a> (attached here) that will grab and show you the most recent images posted to the journals on the site. It’s completely fascinating. While your at it, the LJ Image Collage<\/a> is a [[Flash]] application that will pull and display these images in a different way.<\/p>\n

<\/p>\n

\n\n\n\n
<!DOCTYPE HTML PUBLIC “-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN” “http:\/\/www.w3.org\/TR\/html4\/loose.dtd”>
<html>
<head>
<meta http-equiv=”Content-Type” content=”text\/html; charset=iso-8859-1″>
<title>Recent LJ Images<\/title>
<\/head><\/p>\n

<body>
<?php<\/p>\n

$n = 30; \/\/ this is the number of images displayed on the page, the maximum is 250<\/p>\n

\/\/ The following is needed to comply with LJ’s bot policy (livejournal.com\/bots\/)<\/p>\n

$s = ‘http:\/\/your_web_site.com\/lj.php’; \/\/ the address of your page
$e = ’email@your_web_site.com; \/\/ your email address<\/p>\n

$fp = fsockopen(‘www.livejournal.com’, 80);
if ($fp) {
fputs($fp, “GET \/stats\/latest-img.bml HTTP\/1.0rn
Host: www.livejournal.comrn
User-Agent: “.$s.”; “.$e.”rnrn”);
while(!feof($fp)) {
$data .= fgets($fp);
}
fclose($fp);<\/p>\n

preg_match_all(“<recent-image img='([^’]+)’ url='([^’]+)’ \/>”, $data, $out);<\/p>\n

for ($i=0; $i<$n; $i++) {
echo “<a href='”.$out[2][$i].”‘><img src='”.$out[1][$i].”‘ alt=” \/><\/a><br \/><br \/>n”;
}
} else {
echo ‘connecting to LJ failed’;
}<\/p>\n

?>
<\/body>
<\/html><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

Well, [[LJ]] is an interesting place. I came across a script (attached here) that will grab and show you the most recent images posted to the journals on the site. It’s completely fascinating. While your at it, the LJ Image Collage is a [[Flash]] application that will pull and display these images in a different […]<\/p>\n","protected":false},"author":3,"featured_media":53174,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[278],"tags":[],"_links":{"self":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts\/2058"}],"collection":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/comments?post=2058"}],"version-history":[{"count":0,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/posts\/2058\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/media\/53174"}],"wp:attachment":[{"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/media?parent=2058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/categories?post=2058"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/legacyiamsenseiken.local\/wp-json\/wp\/v2\/tags?post=2058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}