?

Log in

No account? Create an account

Previous Entry | Next Entry

Rename Profile & change link

  • Aug. 29th, 2007 at 2:04 PM
I've been looking for a while, but can't seem to find the correct post if it's already been answered. I am using expressive with theme Minimalist Blue. I was wondering if I could change the the word "Profile" on the profile module and change it to link to something else other than my LiveJournal Profile.

Thank you,

Johnny

Comments

av8rmike
Aug. 29th, 2007 06:56 pm (UTC)
It's pretty simple to alter, but you'll need to create a custom theme layer if you don't already have one. Then, just copy & paste:
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", "NEW TITLE", "http://NEW URL");
    print """<div class="user-pic">$p.journal.default_pic</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 safe """<dd class="profile-name item"><a href="$p.journal.website_url">$website_value</a></dd>""";
    }
    println """</dl>""";
    close_module();
}
Change the red text (in caps) to your desired title and link URL.

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