[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 08:46 pm (UTC)
chagrined: Marvel comics: zombie!Spider-Man, holding playing cards, saying "Brains?" (brains?)
From: [personal profile] chagrined
Hmmm. Would you mind uploading the full code you're using for your layers in some text files? Well, if this is in your layout layer, then you can just upload that, else if you could upload both layout & theme layer code. I'll try to make the layers myself and see if I can get it to work. :3

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

June 2025

S M T W T F S
12345 67
891011121314
15161718192021
22232425262728
2930     

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 04:04 pm
Powered by Dreamwidth Studios