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

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

问题描述

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

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开发人员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 -专门用于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天全站免登陆