?

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

( 3 comments — Leave a comment )
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.
lilgoombas
Aug. 29th, 2007 11:23 pm (UTC)
ok, I must be doing something wrong. Before I want to add this code, I want to make sure I'll keep the auto customizations that I made through the wizard.

Here is what I did. Please let me know were I went wrong.

Under Customize, advanced, layers, I clicked edit next to the "Auto-generated Customizations". Copied the code. Under "Create layout-specific layer" I chose theme and expressive. Then I clicked edit to the new layer that had no name and was under expressive. I pasted the code I copied into this new layer, added a name, added the set base theme.

Now, if I understand this stuff correctly, when I go to "look and feel" click on the theme I named at the bottom of the list it should look the same as the "Auto-generated Customizations".

Currently it's not looking the same and I'm not sure if I did something wrong or I understand it wrong.

Am I missing a step somewhere?

Thank you.
av8rmike
Aug. 30th, 2007 02:12 am (UTC)
You don't have to ditch the "Auto-generated Customization" User layer. Put the code I gave you, along with the theme layer headers (the "layerinfo" and "base_theme" stuff) into the theme layer. Save it, then set it as the active theme in the "Look and Feel" page. It should look like the base theme, with your new Profile module. Then, just change whatever settings you want in the Custom Options pages. Those will get saved in the User layer and won't overwrite the theme layer.
( 3 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