Zzyzx Wolfe (zzyzx) wrote in component_help,
Zzyzx Wolfe
zzyzx
component_help

  • Mood:
  • Music:

The Easy Way

RE: http://www.livejournal.com/community/component_help/242686.html

This should display the correct profile information (not your information) when you're overriding to ?style=mine

function print_profile(Page p) {
  print_comp_header("$*profile_text");
    """
	<table cellspacing="0" cellpadding="0" border="0">
		<tr>
			<td width="50%" align="center">
				<div class="shortLine"><img src="$*SITEROOT/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
				<div class="shortLine"><img src="$*SITEROOT/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
			</td>
			<td align="center"><a href="$*SITEROOT/allpics.bml?user=$p.journal.username">$p.journal.default_pic</a></td>
			<td width="50%" align="center">
				<div class="shortLine"><img src="$*SITEROOT/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
				<div class="shortLine"><img src="$*SITEROOT/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></div>
			</td>
		</tr>
		<tr>
			<td colspan="3" class="compContent">
				<div><b>User:</b> <span class='ljuser' style='white-space:nowrap;'><a href='$*SITEROOT/userinfo.bml?user=$p.journal.username&mode=full'><img src='$*IMGDIR/userinfo.gif' alt='userinfo' width='17' height='17' style='vertical-align:bottom;border:0;' title="$p.journal.username's User Info" /></a><a href='$*SITEROOT/users/$p.journal.username/' title="$p.journal.username's Journal"><b>$p.journal.username</b></a></span></div>
				<div><b>Name:</b> $p.journal.name</div>""";
				if ($p.journal.website_url != "") {"""
				<div><b>Website:</b> <a href="$p.journal.website_url">$p.journal.website_name</a></div>""";}
				if ($p.journal.username == "zzyzx") {"""
				<div><b>Location:</b> Phoenix, AZ</div>
				"""; } """
				<div align="center">
				<a href="$*SITEROOT/friends/add.bml?user=$p.journal.username"><img src="$*IMGDIR/btn_addfriend.gif" title="Add $p.journal.username to your friends list." alt="Add $p.journal.username to your friends list." border="0" width="22" height="20" /></a>
				<a href="$*SITEROOT/todo/?user=$p.journal.username"><img src="$*IMGDIR/btn_todo.gif" title="View $p.journal.username's To-Do List." alt="View $p.journal.username's To-Do List." border="0" width="22" height="20" /></a>
				<a href="$*SITEROOT/tools/memories.bml?user=$p.journal.username"><img src="$*IMGDIR/btn_memories.gif" title="View $p.journal.username's Memories." alt="View $p.journal.username's memories." border="0" width="22" height="20" /></a>
				<a href="$*SITEROOT/tools/tellafriend.bml?user=$p.journal.username"><img src="$*IMGDIR/btn_tellfriend.gif" title="Tell a Friend about $p.journal.username!" alt="Tell a friend about $p.journal.username!" border="0" width="22" height="20" /></a>
				<a href="$*SITEROOT/pubkey.bml?user=$p.journal.username"><img src="http://www.blueeyes.jp/pgp.gif" title="View $p.journal.username's public key." alt="View $p.journal.username's public key." border="0" width="22" height="20" /></a>
				</div>
			</td>
		</tr>	
	</table>
    """;
  print_comp_footer();
}
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments