how to get URLs for each userpic?

Mar 03, 2006 12:43

ETA: all good, thanks to fuzzface00

I'm pretty sure the same code for generating random userpics in a free text (or profile?) box from Component would work in SmoothSailing, so I tracked down the entry on that. However, there's part of the directions I don't understand (that isn't specific to Component, I'm sure). It's the part about "loading up your ( Read more... )

Leave a comment

fuzzface00 March 4 2006, 00:02:52 UTC
Here is some code to play with that demonstrates how to put it in a text box (in this case, #5)...

function Page::lay_print_sidebar_freetextbox_5() {

var string[] pic;

$pic[0]="http://www.livejournal.com/userpic/32304224/1374387"; # default
$pic[1]="http://www.livejournal.com/userpic/19730264/1374387"; # sinfest - virgin
$pic[2]="http://www.livejournal.com/userpic/19940668/1374387"; # meme
$pic[3]="http://www.livejournal.com/userpic/19940692/1374387"; # williams - cephlopod
$pic[4]="http://www.livejournal.com/userpic/20015702/1374387"; # team wrong
$pic[5]="http://www.livejournal.com/userpic/20245657/1374387"; # sinfest - uranium
$pic[6]="http://www.livejournal.com/userpic/20253243/1374387"; # kovalic - dwarves fly
$pic[7]="http://www.livejournal.com/userpic/20430107/1374387"; # uncle
$pic[8]="http://www.livejournal.com/userpic/28195282/1374387"; # kovalic - ipseudopod
$pic[9]="http://www.livejournal.com/userpic/28195417/1374387"; # kovalic - cowthulhu
$pic[10]="http://www.livejournal.com/userpic/28467204/1374387"; # sahara - al giordino
$pic[11]="http://www.livejournal.com/userpic/28531040/1374387"; # gg1
$pic[12]="http://www.livejournal.com/userpic/32057208/1374387"; # mc station
$pic[13]="http://www.livejournal.com/userpic/32536913/1374387"; # esrb ao
$pic[14]="http://www.livejournal.com/userpic/33797431/1374387"; # wkol
$pic[15]="http://www.livejournal.com/userpic/37902336/1374387"; # lost
$pic[16]="http://www.livejournal.com/userpic/38197850/1374387"; # eead
$pic[17]="http://www.livejournal.com/userpic/38277267/1374387"; # hfb 1
$pic[18]="http://www.livejournal.com/userpic/38301131/1374387"; # lapis
$pic[19]="http://www.livejournal.com/userpic/38327238/1374387"; # hfb 2
$pic[20]="http://www.livejournal.com/userpic/38328137/1374387"; # lego
$pic[21]="http://www.livejournal.com/userpic/38977155/1374387"; # sad ipod
$pic[22]="http://www.livejournal.com/userpic/39113881/1374387"; # mta service alert
$pic[23]="http://www.livejournal.com/userpic/39190806/1374387"; # wkol 2
$pic[24]="http://www.livejournal.com/userpic/39811597/1374387"; # doe
$pic[25]="http://www.livejournal.com/userpic/39877102/1374387"; # indy air
$pic[26]="http://www.livejournal.com/userpic/40729047/1374387"; # ebay
$pic[27]="http://www.livejournal.com/userpic/41546401/1374387"; # torino '06
$pic[28]="http://www.livejournal.com/userpic/41731405/1374387"; # sca

var int randpic = rand(0, ((size $pic) - 1));

var string myhtml = "
";

$this->lay_print_sidebox_top($*text_sidebox_freetext_5_title);

"""
$myhtml""";

$this->lay_print_sidebox_bottom();

}

Reply

fuzzface00 March 4 2006, 00:04:52 UTC
Now, how to get the URLs:

Go to your all userpics page...

http://www.livejournal.com/allpics.bml?user=YOURUSERNAMEHERE

In many browsers if you right-click on each image you can copy the Image Location to your clipboard. They you can paste it into the layer editor.

Reply

antof9 March 4 2006, 00:14:56 UTC
bless you! That's what I needed! I didn't even think of right-clicking on each pic. . .duh.

Thanks LOTS!

Now for more layout playing :) (this is better than rearranging furniture!)

Reply


Leave a comment

Up