表达式引擎的密码模块? [英] Password Module for Expression Engine?

查看:41
本文介绍了表达式引擎的密码模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道是否有人可以帮助我处理客户的请求.

Just wondering if someone could help me approach a clients request.

是否有密码保护页面的表达式引擎模块?

Is there any modules for expression engine for password protected pages?

我需要设置一个表格供用户填写并选择密码和用户名,这样他们就可以访问网站上的单独部分/页面?

I need to set up a form for the user to fill out and choose a password and username, this would then give them access to a separate section/page on the site?

我如何使用 EE 来解决这个问题?

How could I approach this with EE?

推荐答案

有几种方法可以对 ExpressionEngine 站点中的页面进行密码保护:

There are several ways to password-protect pages in an ExpressionEngine site:

  • 模板偏好管理器
  • 条件全局变量
  • 第三方插件

到目前为止,最简单的解决方案是使用内置 模板首选项管理器 在 ExpressionEngine 控制面板中.

By far the easiest solution is to use the built-in Template Preferences Manager in the ExpressionEngine Control Panel.

1).使用模板访问限制功能,您可以将整个页面/模板限制为一个或多个已定义的组(禁止组、访客组、成员组、待定组和自定义组).

1). Using the Template Access Restrictions feature, you can restrict an entire page/template to one or more defined groups (Banned, Guests, Members, Pending and Custom Groups).

当访问受限页面时,您可以配置应该发生的情况:

When a restricted page is accessed, you can configure what should happen:

  • 显示特定模板(例如登录或错误页面)
  • 启用 HTTP 身份验证

2).如果您需要有条件地向特定成员或组显示页面的一部分,您可以使用 条件全局变量.

2). If you need to conditionally show part of a page to a specific member or group, you can use Conditional Global Variables.

条件变量是对类型变量,允许您根据满足的条件有条件地显示或隐藏页面上的信息.例如,一个基本的条件变量如下所示:

Conditional Variables are pair type variables, which allow you to conditionally show or hide information on your pages based on criteria being met. For example, a basic conditional variable will look like this:

{if username == "joe"}
    Hi Joe!
{/if}

更高级的条件可以使用逻辑运算符(例如:OR、AND)将多个变量与多个值进行比较.考虑这个例子:

More advanced conditionals can use logical operators (ex: OR, AND) to compare multiple variables to multiple values. Consider this example:

{if username == "joe" OR username == "bob"}
    Hey, Guys!
{/if}

您可以使用许多全局条件.有关详细信息,请参阅 ExpressionEngine 用户指南的全局变量部分.

There are many Global Conditionals you can use. See the Global Variables section of the ExpressionEngine User Guide for more information.

3).最后,如果您需要对 ExpressionEngine 中的密码保护内容进行更高级或更精细的控制,第三方插件可能会满足您的需求.

3). Finally, if you need more advanced or granular control for password-protecting content in ExpressionEngine, a Third-Party Add-On may give you what you need.

Solspace 用户模块就是这样一个流行的插件.它为您提供了一套强大的前端成员管理工具,并为您的成员管理行为方式增加了灵活性.

One such popular add-on is the Solspace User Module. It gives you a robust set of front-end member management tools and adds flexibility to the way your member management behaves.

使用其他第三方插件,您可以对文件、某些成员或成员组的某些频道条目等进行密码保护!由于 ExpressionEngine Developer API,所有这些都成为可能.

Using other third-party add-ons, you can password protect files, certain channel entries for certain members or member groups and more! All of this is possible due to the ExpressionEngine Developer API.

您可以在 Devot-ee<使用任意数量的第三方开发者插件/a> -- 致力于 ExpressionEngine 附加组件的官方社区合作伙伴.

You can leverage any number of the third-party Developer Add-Ons at Devot-ee -- the official community partner devoted to ExpressionEngine Add-Ons.

这篇关于表达式引擎的密码模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆