login_page

NAML documentation   Watch a video
   Usages of this macro
... in login_page.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<override_macro name="login_page" requires="servlet">
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="error"><n.false
Binary
Namespace: BasicNamespace
/></n.set_var.>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_submitted_form
Macro
Requires: servlet
>
        <then>
            <n.do_login
Binary
Namespace: ServletNamespace
Parameters: password, nextUrl, email
>
                <email><n.email_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></email>
                <password><n.password_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></password>
                <nextUrl><n.nextUrl_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></nextUrl>
            </n.do_login>
            <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="error"><n.true
Binary
Namespace: BasicNamespace
/></n.set_var.>
        </then>
    </n.if.is_submitted_form>
    <n.html
Macro
Parameters: head, body
>
        <head>
            <meta name="robots" content="noindex,nofollow"/>
            <n.title
Macro
Parameters: text
.><t>Login</t></n.title.>
            <n.email_field
Macro
Parameters: do
.focus
Macro
Requires: field
/>
            <script type="text/javascript">
                var loginNextUrl = '<n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="/"><n.nextUrl_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/></n.default.>';
            </script>
        </head>
        <body>
            <h1 class="weak-color"><t>Login to View Drako's Den Forums and Gallery</t></h1>
 
<p><h3>Drako&apos;s Den Forums and Gallery</h3><br />
<font color="white">A fetish and kink friendly furry community where users/furries can explore and express their lifestyles.<br />
These forums and gallery contain Adult/NSFW content<br />
To view the content on Drako's Den Forums and Gallery you must:</font>
<ol>
    <li>Be over the age of 18 (21 some areas)</li>
    <li>Agree that it is legal for you to view/post adult content</li>
    <li>Agree to adhere to our <a href="https://dws.neocities.org/drako_den/community_rules.html">Community Rules</a> and <a href="https://dws.neocities.org/drako_den/aup.html">Acceptable Upload Policy</a> (Incuding <a href="https://dws.neocities.org/drako_den/2257.html">18 U.S.C. §2257</a>)</li>
    <li><a href="http://drako-s-den-forums.303.s1.nabble.com/template/NamlServlet.jtp?macro=start_registration_page">Register for a Drako's Den Forums Account</a></li>
    <li>Login to your Drako's Den Forums Account (Below)</li>
</ol>
<a href="https://cutt.ly/drako" target="_top">Click here to return to Drako's Den</a>
</p>
            
            <n.login_message
Macro
/>
 
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.var
Binary
Namespace: BasicNamespace
Parameters: name
 name="error">
                <then.format_error
Macro
Parameters: message, prompt
                    message="[t]Incorrect Login![/t]"
                    prompt="[t]Please re-enter your email/password and click Login.[/t]"
                />
            </n.if.var>
 
            <n.login_form
Macro
/>
            <n.register_now_section
Macro
/>
        </body>
    </n.html>
</override_macro>
Overrides default macro
... in login.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<macro name="login_page" requires="servlet">
    <n.set_var. name="error"><n.false/></n.set_var.>
    <n.if.is_submitted_form>
        <then>
            <n.do_login>
                <email><n.email_field.value/></email>
                <password><n.password_field.value/></password>
                <nextUrl><n.nextUrl_field.value/></nextUrl>
            </n.do_login>
            <n.set_var. name="error"><n.true/></n.set_var.>
        </then>
    </n.if.is_submitted_form>
    <n.html>
        <head>
            <meta name="robots" content="noindex,nofollow"/>
            <n.title.><t>Login</t></n.title.>
            <n.email_field.focus/>
            <script type="text/javascript">
                var loginNextUrl = '<n.default. to="/"><n.nextUrl_field.value/></n.default.>';
            </script>
        </head>
        <body>
            <h1 class="weak-color"><t>Login</t></h1>
 
            <n.login_message/>
 
            <n.if.var name="error">
                <then.format_error
                    message="[t]Incorrect Login![/t]"
                    prompt="[t]Please re-enter your email/password and click Login.[/t]"
                />
            </n.if.var>
 
            <n.login_form/>
            <n.register_now_section/>
        </body>
    </n.html>
</macro>