☭ (ex_prey) wrote in component_help,

ex_prey
component_help

okay so I'm attemtping to throw together a component layer, but there are some things I'm either not understanding or not am not seeing here.

the colours and the components are totally how they're supposed to be, but the banner image at the top of the page is MIA. I was wondering if anyone could take a look at my code and tell me if there's somthing that doesnt work? cause when I complie the changes, I dont get any prompts telling me that something doesn't work.

thanks for any help, but I'm pretty stumped.




layerinfo "type" = "theme";

layerinfo "name" = "dizavin";

layerinfo lang = "en";

layerinfo source_viewable = 1;

layerinfo is_public = 1;

function page_layout(Page p) {

var string title = $p->title();

"""

<html>

<head>

<link rel="stylesheet" href="$p.stylesheet_url" type="text/css" />

$p.head_content

<title>$title</title>

</head>

<body>





<td><center><img

src="http://www.webpost.net/pa/pandadookie/banner.jpg"></td>

<body>

<table width="70%" cellspacing="0" cellpadding="0" valign="top" align="center">

<tr valign="top" width="70%">

<td width="1">

<img src="http://pics.livejournal.com/prey/pic/0001dzfb" width="1" height="1" alt="" border="0">

</td>  



""";



if ($*comp_state == "left") {

print_my_components($p);

"""

<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

""";

}



print_my_entries($p, $title);

if ($*comp_state == "right") {

"""

<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

""";



print_my_components($p);

}

"""

<td width="3">

<img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0">

</td>

</tr>

</table>

</body>

</html>

""";

}



function print_profile(Page p) {

print_comp_header("profile");

"""

<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=prey" 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/prey/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/prey"><b>prey</b></a></span></div>

</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

  • 21 comments