?

Log in

No account? Create an account

Previous Entry | Next Entry

Thank you very much for your work on this community, I've managed to find answers to most of my customisation questions.

The one thing that I could do with my old layout that I haven't found with Expressive is that I could make my default icon, as displayed at the top of my sidebar, a clickable link to my userpics page. It may be I've missed something but is there a way of doing this?

I have a paid account and I'm using Playful Cherry Blossom, if that makes any difference. My current layout is here.

Thank you very much.

Comments

( 2 comments — Leave a comment )
av8rmike
Dec. 18th, 2006 02:01 am (UTC)
Fortunately, since you already have a custom theme layer, this should be pretty straightforward. I've added the code in blue to the print_module_userprofile() function below:
(Made a typo the first time)
function print_module_userprofile(string title, bool show_profile, bool show_userpic) {
    var Page p = get_page();
    if ($show_userpic and not $show_profile) {
        if (defined $p.journal.default_pic) {
            open_module("photo", $title, $p.journal.userpic_listing_url);
            println """$p.journal.default_pic""";
            close_module();
        }
        return;
    }

    if (not $show_profile and not $show_userpic) {
        open_module("about-me", $title, $p.view_url{"userinfo"}, true);
        close_module(true);
        return;
    }
    
    open_module("about-me", $title, $p.view_url{"userinfo"});
    print """<div class="user-pic"><a href="$*SITEROOT/allpics.bml?user=$p.journal.username">$p.journal.default_pic</a></div>\n\n""";
    println """<dl class="profile-list widget-list">""";
    println """<dd class="profile-username item">$p.journal</dd>""";
    println """<dd class="profile-name item">$p.journal.name</dd>""";
    if ($p.journal.website_url != "") {
        var string website_value = $p.journal.website_name ? $p.journal.website_name : $*text_website_default_name;
        println """<dd class="profile-name item"><a href="$p.journal.website_url">$website_value</a></dd>""";
    }
    println """</dl>""";
    close_module();
}
sally_maria
Dec. 18th, 2006 10:26 pm (UTC)
That's great - worked first time. The previous code I had you had to change to your own journal details, so it's really clever the way this just works.

Thank you again.
( 2 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars