表达式引擎的密码模块?
只是想知道是否有人可以帮助我满足客户的要求。
是否有用于密码保护页面的表达式引擎模块?
我需要设置一个表单供用户填写并选择密码和用户名,这将使他们能够访问网站上的单独部分/页面?
我该如何用 EE 来解决这个问题?
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?
How could I approach this with EE?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
有多种方法可以对 ExpressionEngine 站点中的页面进行密码保护:
到目前为止,最简单的解决方案是使用内置的 ExpressionEngine 控制面板中的模板首选项管理器。
1)。使用模板访问限制功能,您可以将整个页面/模板限制为一个或多个定义的组(禁止、访客、成员、待处理和自定义组)。
当访问受限页面时,您可以配置应该发生的情况:
2)。如果您需要有条件地向特定成员或群组显示页面的一部分,您可以使用 条件全局变量。
条件变量是对类型变量,允许您根据满足的条件有条件地显示或隐藏页面上的信息。例如,基本条件变量将如下所示:
更高级的条件可以使用逻辑运算符(例如:OR、AND)将多个变量与多个值进行比较。考虑这个例子:
您可以使用许多全局条件。有关详细信息,请参阅《ExpressionEngine 用户指南》的全局变量部分。
3)。最后,如果您需要对 ExpressionEngine 中的密码保护内容进行更高级或更精细的控制,第三方插件可能会满足您的需求。
此类流行的附加组件之一是 Solspace 用户模块。它为您提供了一套强大的前端会员管理工具,并为您的会员管理行为方式增加了灵活性。
使用其他第三方附加组件,您可以使用密码保护文件、某些会员或会员组的某些频道条目等等!所有这一切都得益于 ExpressionEngine Developer API。
您可以在 Devot-ee 上利用任意数量的第三方开发者插件-- 致力于 ExpressionEngine 附加组件的官方社区合作伙伴。
There are several ways to password-protect pages in an ExpressionEngine site:
By far the easiest solution is to use the built-in Template Preferences Manager in the ExpressionEngine Control Panel.
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:
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:
More advanced conditionals can use logical operators (ex: OR, AND) to compare multiple variables to multiple values. Consider this example:
There are many Global Conditionals you can use. See the Global Variables section of the ExpressionEngine User Guide for more information.
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.
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.
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.
You can leverage any number of the third-party Developer Add-Ons at Devot-ee -- the official community partner devoted to ExpressionEngine Add-Ons.
EE 中的任何内容都可以使用 logged_in_group_id 全局变量包装在条件语句中,因此实际上并不需要模块。
因此,您可以让您的用户填写会员注册表(我推荐 Solspace 用户模块< /a> 为此),设置将他们注册到您选择的成员组中。
然后,像这样包装仅限会员的内容(使用适合您的会员组的 ID):
或者,您可以使用如下内容: http://devot-ee.com/add-ons/entry-access/
Any content in EE can be wrapped in a conditional statement using the
logged_in_group_id
global variable, so a module isn't really needed.So you can have your users fill out a member registration form (I'd recommend the Solspace User module for this), setup to register them into your chosen member group.
Then, wrap your members-only content like this (use the appropriate ID for your member group):
Alternately, you could use something like this: http://devot-ee.com/add-ons/entry-access/