Does anyone know anything about scripts or
S2 Layers? I am trying to change the images used in the "lj user" tags. First, I looked at the LJ core source codes and found the "userinfoicon" function, and I confirmed this with
kunzite1's
code. Nothing has worked so far! Something is either wrong with my code (under the cut) or this layout (
transmogrified1). All well, I don't think anyone is geeky enough to now what I am talking about. :P
function userinfoicon(UserLite user) : Image {
var Image uimage;
$uimage.width = 9;
$uimage.height = 9;
var string{} userinfo = {
"url" => "
http://img257.imageshack.us/img257/3586/userinfo6mr.png",
"width" => "9",
"height" => "9"
};
var string{} comminfo = {
"url" => "
http://img267.imageshack.us/img267/8748/community9ws.png",
"width" => "9",
"height" => "9"
};
var string{} newsinfo = {
"url" => "
http://img267.imageshack.us/img267/3193/feed7cf.png",
"width" => "9",
"height" => "9"
};
var string{} syninfo = {
"url" => "
http://img267.imageshack.us/img267/3193/feed7cf.png",
"width" => "9",
"height" => "9"
};
if ($user.journal_type == "C") {
$uimage->set_url($comminfo{"url"});
$uimage.width = int($comminfo{"width"});
$uimage.height = int($comminfo{"height"});
} else {
if ($user.journal_type == "Y") {
$uimage->set_url($syninfo{"url"});
$uimage.width = int($syninfo{"width"});
$uimage.height = int($syninfo{"height"});
} else {
if ($user.journal_type == "N") {
$uimage->set_url($newsinfo{"url"});
$uimage.width = int($newsinfo{"width"});
$uimage.height = int($newsinfo{"height"});
} else {
$uimage->set_url($userinfo{"url"});
$uimage.width = int($userinfo{"width"});
$uimage.height = int($userinfo{"height"});
}
}
}
return $uimage;
}