Gwyn (gwyndragon) wrote in component_help,
Gwyn
gwyndragon
component_help

Problems with Title after adding Palimg information

I posted this as a comment in the tutorial, but thought I may get helped faster this way.

I added the new palimg information to my theme layer and corrected all the data in the Adding Title Bar Components tutorial.

Now, my title shows to the right of the box instead of inside of it.

Edited so that the code shows semi-correctly


var Color header = $*header_bgcolor;
var Color headerMinus5 = $header->darker(50);
var Color headerPlus3 = $header->lighter(30);
var string corner_color = "/p0"+$headerPlus3-> substr(1,6)+"1"+$headerMinus5-> substr(1,6)+"2"+$header-> substr(1,6);

"""
< td valign="top" width="100%">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
< td colspan="3">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="3" height="1" alt="" border="0"></td>
</tr>< tr>
< td valign="top" rowspan="3" colspan="3" width="5">< img src="http://www.livejournal.com/palimg/component/curve-top-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>
< td class="dkLine">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
< td valign="top" rowspan="3" colspan="3" width="5">< img src="http://www.livejournal.com/palimg/component/curve-top-right.gif$corner_color" width="5" height="5" alt="" border="0" /></td>
</tr><tr>
< td class="ltLine">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
</tr><tr>
< td class="tabBg">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
</tr><tr>
< td class="dkLine" width="1">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
< td class="ltLine" width="1">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>
< td class="tabBg" width="3">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
< td class="tabBg" width="100%">< img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="3" alt="" border="0" /></td>
< td class="tabBg" width="100%">
""";

# print the Full Title of the page [Journal title and Page specific title]:
""" < div class="userTitle"> < center>""";
print $p->title();
""" </center></div> """;
if ($p.global_subtitle!="" and $p.view=="recent") {
""" < div class="userSubtitle"> """;
print $p.global_subtitle;
""" </center></div> """;
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 9 comments