Patricia Erin (patriciaerin) wrote in component_help,
Patricia Erin
patriciaerin
component_help

  • Mood:

FRUSTRATED!

I've tried SO many times to get this to work and I can't figure out why I keep getting this error:

Compile error: line 125, column 17: Parse error! Unknown token. ( = $*header_bgcolor;)
S2::Tokenizer, S2/Tokenizer.pm, 174
S2::Tokenizer, S2/Tokenizer.pm, 73
S2::Tokenizer, S2/Tokenizer.pm, 57
S2::Node, S2/Node.pm, 177
S2::Node, S2/Node.pm, 123
S2::Node, S2/Node.pm, 169
S2::NodeNamedType, S2/NodeNamedType.pm, 36
S2::NodeVarDecl, S2/NodeVarDecl.pm, 30
S2::NodeVarDeclStmt, S2/NodeVarDeclStmt.pm, 30
S2::NodeStmt, S2/NodeStmt.pm, 50
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 42
S2::NodeFunction, S2/NodeFunction.pm, 104
S2::Layer, S2/Layer.pm, 58
S2::Compiler, S2/Compiler.pm, 27

Context
121:
122: function print_my_entries(Page p, string title) {
123:
124: var string welcome_title = "Welcome Note Title";
125: var Color header = $*header_bgcolor;
126: var Color headerMinus5  = $header->darker(50);
127: var Color headerPlus3   = $header->lighter(30);
128: var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->substr(1,6)+"2"+$header->substr(1,6);
129:




function print_my_entries(Page p, string title) {



var string welcome_title = "Welcome Note Title";

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%">

    """;



"""<center><img src="http://img.photobucket.com/albums/v202/bohemianqueen7/Layout%20Pics/starry-night2.jpg" border="0" alt="" /></center>""";

""" <div class="userTitle"><center> """; print $p->title(); """ </center></div> """;

if ($p.global_subtitle!="" and $p.view=="recent") {

                           """ <div class="userSubTitle"><center> """; print $p.global_subtitle; """ </center></div> """;

                        }

"""

                    </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="ltLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                    <td class="dkLine" width="1"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" 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-bottom-left.gif$corner_color" width="5" height="5" alt="" border="0" /></td>

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

                    <td valign="top" rowspan="3" colspan="3" width="5"><img src="http://www.livejournal.com/palimg/component/curve-bottom-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="dkLine"><img src="http://www.livejournal.com/palimg/component/clear.gif" width="1" height="1" alt="" border="0" /></td>

                </tr>

            </table>

    """;

    print_spacer();
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 6 comments