classic_js

NAML documentation   Watch a video
Error Found
An error was found in the NAML code of this application – View Details | Go to NAML Editor
tag (custom_tweak:send_subscription_email:14) - <set_headers_for.local_node/> is not allowed here, only tags <cc>, , <html_part>, <text_part>, <bcc>, <attachments>, <aol_part>, <to_name>, <subject>, <from>, <to>, <from_name> are allowed here in tag element 'send'
  in send(custom_tweak:send_subscription_email:6) - <n.send> - public void nabble.view.web.template.EmailNamespace.send(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter) throws nabble.model.ModelException$EmailFormat
  in new_email(custom_tweak:send_subscription_email:5) - <n.new_email.> - public void nabble.view.web.template.NabbleNamespace.new_email(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in block(custom_tweak:send_subscription_email:4) - <n.block.> - public void nabble.naml.namespaces.BasicNamespace.block(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in send_subscription_email(nabble:reply.naml:500) - <n.send_subscription_email node_attr="[n.node_attr/]">
  in send_node_as_email_to_user(nabble:reply.naml:488) - <n.send_node_as_email_to_user.local_node/>
  in subscription_for(nabble:reply.naml:487) - <n.subscription_for. email="[n.var name='email'/]"> - public void nabble.view.web.template.NodeNamespace.subscription_for(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws nabble.model.ModelException$EmailFormat
  in do(nabble:permissions.naml:139) - <n.topic_node.do/>
  in topic_node(nabble:permissions.naml:139) - <n.topic_node.do/> - public void nabble.view.web.template.NodeNamespace.topic_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in do(nabble:utilities.naml:1107) - <n.do/>
  in get_node(nabble:utilities.naml:1107) - <n.get_node node="[n.uplevel_var name='local_node'/]" do="[n.do/]" /> - public void nabble.view.web.template.NabbleNamespace.get_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in local_node(nabble:permissions.naml:139) - <then.local_node.topic_node.do/>
  in if(nabble:permissions.naml:138) - <n.if.local_node.is_post> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in block(nabble:permissions.naml:137) - <n.block.> - public void nabble.naml.namespaces.BasicNamespace.block(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in topic_or_app(nabble:reply.naml:487) - <n.topic_or_app.subscription_for. email="[n.var name='email'/]">
  in do(nabble:utilities.naml:1107) - <n.do/>
  in get_node(nabble:utilities.naml:1107) - <n.get_node node="[n.uplevel_var name='local_node'/]" do="[n.do/]" /> - public void nabble.view.web.template.NabbleNamespace.get_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in local_node(nabble:reply.naml:487) - <then.local_node.topic_or_app.subscription_for. email="[n.var name='email'/]">
  in if(nabble:reply.naml:486) - <n.if.not.is_null.var name="email"> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in do(nabble:utilities.naml:865) - <n.do/>
  in while(nabble:utilities.naml:863) - <n.while.next_element inc="[n.by/]"> - public void nabble.naml.namespaces.BasicNamespace._while(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in loop(nabble:reply.naml:484) - <n.loop.>
  in get_parameter_values(nabble:reply.naml:483) - <then.get_parameter_values. name="email-to"> - public void nabble.view.web.template.RequestNamespace.get_parameter_values(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws java.io.IOException,javax.servlet.ServletException
  in if(nabble:reply.naml:482) - <n.if.visitor.is_registered> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in block(nabble:reply.naml:481) - <n.block.> - public void nabble.naml.namespaces.BasicNamespace.block(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in send_node_as_email(nabble:reply.naml:40) - <n.send_node_as_email/>
  in do(nabble:reply.naml:122) - <n.do/>
  in get_node(nabble:reply.naml:122) - <n.get_node node="[n.global_var name='new_node'/]" do="[n.do/]" /> - public void nabble.view.web.template.NabbleNamespace.get_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in new_node(nabble:reply.naml:40) - <n.new_node.send_node_as_email/>
  in if(nabble:reply.naml:36) - <n.if.not.is_preview> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in create_child_of_page_node(nabble:reply.naml:28) - <n.create_child_of_page_node commit="[n.not.is_preview/]"> - public void nabble.view.web.template.NodePageNamespace.create_child_of_page_node(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws nabble.model.ModelException,javax.servlet.ServletException
  in catch_exception(nabble:reply.naml:25) - <n.catch_exception. id="save-block"> - public void nabble.naml.namespaces.BasicNamespace.catch_exception(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in if(nabble:reply.naml:18) - <n.if.not.is_submitted_form> - public static void nabble.naml.namespaces.BasicNamespace._if(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in do(nabble:utilities.naml:936) - <n.as_node_page.do/>
  in as_node_page(nabble:utilities.naml:936) - <n.as_node_page.do/> - public void nabble.view.web.template.NodeNamespace.as_node_page(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter)
  in do(nabble:utilities.naml:941) - <n.get_node_from_request_parameter.do/>
  in get_node_from_request_parameter(nabble:utilities.naml:941) - <n.get_node_from_request_parameter.do/> - public void nabble.view.web.template.ServletNamespace.get_node_from_request_parameter(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.ScopedInterpreter) throws java.io.IOException,javax.servlet.ServletException,nabble.naml.namespaces.TemplateException
  in catch_exception(nabble:utilities.naml:940) - <n.catch_exception. id="get-node-block"> - public void nabble.naml.namespaces.BasicNamespace.catch_exception(nabble.naml.compiler.IPrintWriter,nabble.naml.compiler.Interpreter)
  in get_node_from_parameter(nabble:utilities.naml:936) - <n.get_node_from_parameter.as_node_page.do/>
  in node_page(nabble:reply.naml:16) - <n.node_page.>
  in new_post(nabble:reply.naml:2) - <n.new_post>
  in (nabble:reply.naml:1) - <macro name="reply" requires="servlet">
   Usages of this macro
... in topic.naml
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
<macro name="classic_js">
    <script type="text/javascript">
        var _hash = Nabble.hash();
        if (_hash) {
            (function(){
                var post = _hash.substr(2);
                var allPosts = [<n.compress
Macro
Parameters: text
.all_posts_js_array
Macro
/>];
                var allURLs = [<n.compress
Macro
Parameters: text
.all_urls_js_array
Macro
/>];
                var iPost = allPosts.indexOf(parseInt(post));
                var lower = <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="0"><n.classic_index_record
Macro
Requires: servlet
/></n.default.>;
                var upper = lower + <n.classic_rows_per_page
Macro
/>;
<![CDATA[
                if (iPost != -1 && (iPost < lower || iPost >= upper))
]]>
                    location.replace(allURLs[Math.floor(iPost/<n.classic_rows_per_page
Macro
/>)]+_hash);
            })();
        }
 
        $(document).ready(function() {
            var rootId = '<n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/>';
<![CDATA[
            var currentPostId = rootId;
            var isChangingViews = _hash == '#none';
            if (_hash && !isChangingViews)
                currentPostId = _hash.substr(2);
 
            Nabble.hideQuotes();
 
            function scrollToSelectedPost() {
                var $arrow = $('#red-arrow'+currentPostId).show();
                if ($arrow.size() > 0) {
                    var isRootPost = currentPostId == rootId;
                    if (Nabble.isEmbedded) {
                        if (Nabble.canScroll()) scrollTo(0, 0);
                        var y = isChangingViews? null : isRootPost? 1 : $arrow.parents('div.classic-row').offset().top;
                        Nabble.resizeFrames('', y);
                    } else if (Nabble.canScroll() && !isRootPost) {
                        var yPos = $arrow.offset().top;
                        scrollTo(0,yPos-20);
                    }
                } else {
                    if (Nabble.isEmbedded && Nabble.canScroll()) {
                        Nabble.resizeFrames('', 1);
                    } else {
                        var tb = $('div.top-bar').get(0);
                        if (tb)
                            tb.scrollIntoView();
                    }
                }
            };
            $(window).load(scrollToSelectedPost);
 
            if (Nabble.isEmbedded) {
                $('div.message-text img').load(Nabble.resizeFrames);
            }
]]>
        });
    </script>
</macro>