jstabe (jstabe) wrote in component_help,
jstabe
jstabe
component_help

Problem with smilies code

Solved thanks to uniquewonders!

I have two questions that go together so I thought I'd save time and post once.

1. In order to use the smilies code, I had to override the print_entry function and I did that using this tutorial. I don't like how it changed the edit/tag/etc buttons to the bottom of the entry, but I'm not sure which part of the code I need to change so that it puts those buttons back at the side of the entry.

2. When I try to add smilies to the comments, I get the following error:
Compile error: line 638, column 16: Unknown local variable $e
S2::NodeVarRef, S2/NodeVarRef.pm, 178
S2::NodeTerm, S2/NodeTerm.pm, 162
S2::NodeTerm, S2/NodeTerm.pm, 66
S2::NodeUnaryExpr, S2/NodeUnaryExpr.pm, 54
S2::NodeExpr, S2/NodeExpr.pm, 46
S2::NodeIfStmt, S2/NodeIfStmt.pm, 79
S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 101
S2::NodeFunction, S2/NodeFunction.pm, 230
S2::Checker, S2/Checker.pm, 353
S2::Compiler, S2/Compiler.pm, 34

Context
634: </table>
635: </div>""";
636:
637: # place the text
638: if(not $e.text_must_print_trusted) {
639: var string text = $comment.text;
640: var string value = "";
641:
642: var string{} emoticons = {
I'm not sure what I've done wrong here.

My layer is viewable here: http://www.livejournal.com/customize/advanced/layersource.bml?id=8309722

Any help would be greatly appreciated.
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic
  • 6 comments