[personal profile] london_fan posting in [community profile] style_system
Hi there, yet another newbie at DW here. I recently imported my highly customized Flexible Squares layout here with layout and theme layers. I changed around the bits that needed tweaking, but I got stuck on one thing. On LJ I have customized code for all icons (the 100x100 ones, not the 16x16 user icons in front of the user name) to link to the respective user's icons page. The link for entry user icons looks as follows:

<a href="$*SITEROOT/allpics.bml?user=$e.poster.username">

And this is the link for the user icons in comments:

<a href="$*SITEROOT/allpics.bml?user=$comment.poster.username">

Due to the different structure of the link to users' icons pages on DW, those links don't work here, but I'm stuck figuring out how to change them. For entries it seems to work just fine to replace the whole link with "icons", because DW will pull up the respective "username.dreamwidth.org/" part all on its own, but that doesn't work for the comment user pictures. How can I create a link to comment posters' icons pages?

Any help here would be highly appreciated.

ETA: Many thanks to [personal profile] chagrined for solving this and showing me how to break up link strings!

Date: 2012-11-14 09:25 pm (UTC)
chagrined: Marvel comics: zombie!Spider-Man, holding playing cards, saying "Brains?" (brains?)
From: [personal profile] chagrined
yeah, I just did as described above. it's a bit different in the comment case. you can look at the code to see how it works if you are curious :)

http://www.sendspace.com/file/b9epyh

tested on my own journal and it works fine

Date: 2012-11-14 09:38 pm (UTC)
chagrined: Marvel comics: zombie!Spider-Man, holding playing cards, saying "Brains?" (brains?)
From: [personal profile] chagrined
yeah, lots of quotation marks, gets confusing. :)

glad to help. I'll delete the link too since you wanted to delete the other one when done.

Profile

Dreamwidth style system discussion

April 2025

S M T W T F S
  12345
6 78910 1112
13 141516171819
2021 2223242526
27282930   

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 9th, 2025 06:09 pm
Powered by Dreamwidth Studios