La araña discoteca (tbone) wrote in component_help,
La araña discoteca
tbone
component_help

Login/Not Logged In

Ok, I have my LJ login box. For some reason, I can't make it so that it shows something different when I'm logged in, like this community does. I tried the tutorial here, and I get this message:


S2 Compiler Output at Fri Nov 12 09:17:59 2004

Error compiling layer:
Compile error: line 45, column 32: Unexpected token found.  Expecting: [TokenPunct] = (
Got: [TokenIdent] = action
  S2::Node, S2/Node.pm, 139
  S2::NodeArguments, S2/NodeArguments.pm, 25
  S2::NodeTerm, S2/NodeTerm.pm, 450
  S2::NodeIncExpr, S2/NodeIncExpr.pm, 41
  S2::NodeUnaryExpr, S2/NodeUnaryExpr.pm, 40
  S2::NodeProduct, S2/NodeProduct.pm, 28
  S2::NodeSum, S2/NodeSum.pm, 31
  S2::NodeRelExpr, S2/NodeRelExpr.pm, 41
  S2::NodeEqExpr, S2/NodeEqExpr.pm, 29
  S2::NodeLogAndExpr, S2/NodeLogAndExpr.pm, 29
  S2::NodeLogOrExpr, S2/NodeLogOrExpr.pm, 29
  S2::NodeRange, S2/NodeRange.pm, 29
  S2::NodeCondExpr, S2/NodeCondExpr.pm, 29
  S2::NodeAssignExpr, S2/NodeAssignExpr.pm, 29
  S2::NodeExpr, S2/NodeExpr.pm, 29
  S2::NodePrintStmt, S2/NodePrintStmt.pm, 48
  S2::NodeStmt, S2/NodeStmt.pm, 35
  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
 41: print_comp_header("signed in component title");
 42: print_comp_footer();
 43: } else {
 44: print_comp_header("login");
 45: """<form action='http://www.livejournal.com/login.bml' method='post'>
 46: <div class="standout"><table class="container"><tr><td>
 47: <table cellpadding='3'>
 48: <tr><td>Username:</td><td><input type='text' name='user' size='15' maxlength='15' /></td></tr>
 49: <tr><td valign='top'>Password:</td><td><input type='password' name='password' size='15' maxlength='30' /><br /></td></tr>




Any thoughts?
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 0 comments