Monika (taylorbeauti) wrote in component_help,
Monika
taylorbeauti
component_help

i have all these questions... lol, now that i hav efinally figured out Components, I have a question about somethings, I have gone thru tutorials.. so here i tried the "Music/ TV/etc." tutorial, and I have tried many more, but when I past them an dclick Compile, the first line always has a problem.. Example



Compile error: line 4, column 1: Unknown token encountered while parsing layer: [TokenIdent] = print_comp_header
S2::Layer, S2/Layer.pm, 67
S2::Compiler, S2/Compiler.pm, 27


Context

1: layerinfo "type" = "theme";
2: layerinfo "name" = "My Theme";
3:
4: print_comp_header("COMPONENT TITLE");
5: """
6:

7: 8: or when i tried to put a picture at the top Compile error: line 5, column 2: Only core and layout layers can define new functions. S2::NodeFunction, S2/NodeFunction.pm, 191 S2::Checker, S2/Checker.pm, 339 S2::Compiler, S2/Compiler.pm, 34 Context 1: layerinfo "type" = "theme"; 2: layerinfo "name" = "My Theme"; 3: 4: 5: function print_custom_head() { 6: """ 7: 8: body { 9: background-image: url(http://img127.exs.cx/img127/4817/romance8ld.png) ; I feel dumb for asking but please.. what am I doing wrong? anybody willing to help me with this and more?
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 6 comments