Rename Profile & change link

Aug 29, 2007 14:04

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

sidebar:profile, s2:theme layer, $acct level:paid or perm

Leave a comment

Comments 3

av8rmike August 29 2007, 18:56:03 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 """
$p.journal.default_pic\n\n""";
println """""";
println """$p.journal""";
println """$p.journal.name if ($p.journal.website_url ( ... )

Reply


lilgoombas August 29 2007, 23:23:59 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.

Reply

av8rmike August 30 2007, 02:12:52 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.

Reply


Leave a comment

Up