?

Log in

No account? Create an account
entries friends calendar profile Previous Previous Next Next
Another tweak - Home of the terminally single
pendlemac
pendlemac
Another tweak
Just added a link from my main page for doing new entries.

And before anyone gets any bright ideas, it's a generic link so if anyone else clicks it they can only update their own journal! :-))

Current Mood: geeky geeky

3 thoughts or Share your thoughts
Comments
timpootle From: timpootle Date: October 3rd, 2005 04:40 pm (UTC) (Link)

LJ tweaks

I still haven't managed this. Any ideas?
pendlemac From: pendlemac Date: October 4th, 2005 11:09 pm (UTC) (Link)

Re: LJ tweaks

Went through the original comments and noticed that just above the viewer_logged_in function is one called viewer_is_owner which only returns true if the viewer owns the content in question and is logged in.

May try this later.
pendlemac From: pendlemac Date: October 4th, 2005 11:32 pm (UTC) (Link)

Re: LJ tweaks

This will show your login status on both your main page and your friends page but is for S2 styles only, I'm afraid.

OK, you need to turn on the Free Text box { if your layout has it ) and then add the following to a custom layer.

function print_free_text(Page p) {
if ($*free_text_text and $*free_text) {
print_comp_header($*free_text_text);
"""$*free_text""";
print_comp_footer();
}

print_comp_header("Logged in?");
if ( viewer_is_owner() ) {
"""Yes""";
} else {
"""No""";
}
print_comp_footer();

}
3 thoughts or Share your thoughts