london_fan: London - Picture of the Tower Bridge at night in a blue/teal colour scheme (Default)
london_fan ([personal profile] london_fan) wrote in [community profile] style_system2012-11-13 09:55 pm

SOLVED: Comment user icons linking to the commenter's icons page

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!
chagrined: Marvel comics: zombie!Spider-Man, holding playing cards, saying "Brains?" (brains?)

[personal profile] chagrined 2012-11-14 09:25 pm (UTC)(link)
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
chagrined: Marvel comics: zombie!Spider-Man, holding playing cards, saying "Brains?" (brains?)

[personal profile] chagrined 2012-11-14 09:38 pm (UTC)(link)
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.