Em (galaxynumber5) wrote in component_help,
Em
galaxynumber5
component_help

Small question

I want to have my user picture in the profile component linking back to my user pictures page, but when I tried putting the code behind the cut here, it gave me a ton of errors, and I couldn't fix it. Help?

function print_profile(Page p) {
print_comp_header("Myelfprince");
"""
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="50%" align="center">
</td>
<td align="center"><br /><a href="http://www.livejournal.com/allpics.bml?user=galaxynumber5" alt="View my user icons">$p.journal.default_pic</a></td>
<td width="50%" align="center">
</td>
</tr>

<tr>
<td colspan="3" class="compContent">
<div><b>User:</b> <span class="ljuser" style="white-space:nowrap;"><a href="http://www.livejournal.com/users/galaxynumber5/info"><img src="http://stat.livejournal.com/img/userinfo.gif" alt="userinfo" width="17" height="17" style="vertical-align:bottom; border:0;" /></a><a href="http://www.livejournal.com/users/galaxynumber5"><b>galaxynumber5</b></a></span></div>
</div>
<div><b><a> Name:</b> Melissa Ann</a></div>
<div><b><a>Hometown:</b> New York City</a></div >


</td>
</tr>
</table>
""";
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 3 comments