使用 ExpressionEnine 和 jQuery 的模态注​​册框

发布于 2024-08-22 23:56:11 字数 94 浏览 4 评论 0原文

我想为我的 ExpressionEngine 网站创建一个模式样式的注册/登录框。处理模态框注册的最佳方法是什么?我应该使用 iframe 调用注册页面吗?是否存在安全问题?

I'd like to create a modal style registration/login box for my ExpressionEngine site. What's the best way to handle registration on a modal box? Should I call a registration page using an iframe. Are there security concerns?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

错々过的事 2024-08-29 23:56:11

您可以尝试将主登录页面上的以下 html 克隆到模式框中:

<form method="post" action="/">

            <div style="margin-top:-4px;">
                <a href="javascript:void(0);" onclick="$('#loginFormMiniMain').fadeOut('fast');">X</a>
                <input type="hidden" name="RET" value="-1">
            </div>

            <table cellpadding="0" cellspacing="6" border="0" align="center">
            <tbody><tr>
            <td align="right">Username</td>
            <td><input type="text" class="input" id="username" name="username" size="15" value="">
            <input type="hidden" name="auto_login" value="1"></td>
            </tr>

            <tr>
            <td align="right">Password</td>
            <td><input type="password" class="input" name="password" size="15"></td>
            </tr>

            <tr>
                <td colspan="2" align="right">
                    <a href="http://expressionengine.com/forums/member/forgot_password/">Forgot your password?</a> 
                    <input type="submit" class="submit" value="Login">
                </td>
            </tr>
            </tbody></table>
        </form>

You can try cloning the following html that you have on your main login page into the modal box:

<form method="post" action="/">

            <div style="margin-top:-4px;">
                <a href="javascript:void(0);" onclick="$('#loginFormMiniMain').fadeOut('fast');">X</a>
                <input type="hidden" name="RET" value="-1">
            </div>

            <table cellpadding="0" cellspacing="6" border="0" align="center">
            <tbody><tr>
            <td align="right">Username</td>
            <td><input type="text" class="input" id="username" name="username" size="15" value="">
            <input type="hidden" name="auto_login" value="1"></td>
            </tr>

            <tr>
            <td align="right">Password</td>
            <td><input type="password" class="input" name="password" size="15"></td>
            </tr>

            <tr>
                <td colspan="2" align="right">
                    <a href="http://expressionengine.com/forums/member/forgot_password/">Forgot your password?</a> 
                    <input type="submit" class="submit" value="Login">
                </td>
            </tr>
            </tbody></table>
        </form>
世俗缘 2024-08-29 23:56:11

我用的是fancybox。将其称为 iframe,并确保将其发布到适当的模板/页面,您将在 return="" 参数中设置该模板/页面,如果将其设置为 iframe,它将发布到仍在模式内的该页面窗口(fancybox)。

I use fancybox. Call it as an iframe and just make sure you post it to the appropriate template/page, which you will set in the return="" parameter, and if it is set as an iframe, it will post to that page still within the modal window (fancybox).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文