in response to
frankscafe's
s2styles post.
this assumes that you've got the helper vars from
this.
# userpic urls are in form of
http://www.livejournal.com/userpic/randomnumber/usernumber
var string k1Uheader = "Userpics"; # header for sidebar box
var int k1Uusernumber = 9102679; # findable on your userinfo page
var string k1Uuserpic_alt = "$.journal.name"; # alt text for userpics
var string k1Uuserpic_link = "$.journal.userpic_listing_url"; # url for linked userpic
var string USERPICROOT = "$*SITEROOT/userpic"; # userpic root
var string k1Uuserpic_url = ""; # url for userpic
var string k1Uuserpic = ""; # string for userpic
var int[] k1Uuserpics = [0]; # array for userpic numbers
# set numbers for userpic array
$k1Uuserpics[size($k1Uuserpics)] = 39715195;
$k1Uuserpics[size($k1Uuserpics)] = 40309573;
$k1Uuserpics[size($k1Uuserpics)] = 40615488;
# set header
$header = $k1Uheader;
# set content
$content = "
";
foreach var int k1Upicid ($k1Uuserpics) {
# clear var for userpic
$k1Uuserpic = "";
# assemble userpic url
$k1Uuserpic_url = "$USERPICROOT/$k1Upicid/$k1Uusernumber";
# if we're linking the userpics, add link
if($k1Uuserpic_link != "") {
$k1Uuserpic = $k1Uuserpic + """
""";
}
# add userpic
$k1Uuserpic = $k1Uuserpic + """
""";
# if we're linking the userpics, close link
if($k1Uuserpic_link != "") {
$k1Uuserpic = $k1Uuserpic + "";
}
# add blank lines to space userpics
$content = $content + $k1Uuserpic + "
";
}
# close center tag
$content = $content + "";
# print box
print "$box_open$header_open$header$header_close$content$box_close";