Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Taxi App Development 7.3
RentALL-Airbnb clone script 1.8.0
VisualNEO Web 19.4.5
PHP Ecommerce Script 1.3.2
dbForge Studio for PostgreSQL 2.1
Rentonn - Airbnb clone 1.0
VisualNEO for Windows 18.08.31.0
SentiVeillance SDK Trial 7.0.191272
dbForge SQL Complete 6.1
Uber for E-Scooters 1.0
ODBC Driver for MySQL 2.4
dbForge Schema Compare for MySQL 4.4
dbForge Studio for MySQL 8.1
dbForge Query Builder for MySQL 4.4
dbForge Data Compare for MySQL 5.5
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Taxi App Development 7.3
Online Vacation Rental Booking Website Script 4.3.0
Library Management System 1.0
PHP Ecommerce Script 1.0.4
Beremiz 1.0
OptimPID: an optimal PID controller design interface 1.0
GnuWin64 64
Java-2-Pseudo 1.0
Online Book Rental System
Azizi search engine script PHP 4.1.10
Faculty Evaluation System 1.1
MLM Software ONE 1.5.46
RentALL-Airbnb clone script 1.8.0
HTML::Lint 1.21
Top Rated
Paste phpSoftPro 1.4.1
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
Premium Content Access Permissions By Term 5.x-1.0-beta1
File ID: 100794






Premium Content Access Permissions By Term 5.x-1.0-beta1
Download Premium Content Access Permissions By Term 5.x-1.0-beta1http://drupal.orgReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 5
Submit Rating:
Premium Content Access Permissions By Term 5.x-1.0-beta1 Description
Description: The Premium Content Access Permissions By Term module allows access to content to be restricted to certain roles by taxonomy term and Drupal role permissions and supports multiple access tiers.

It does not use the node_access table. It integrates with views via its use of taxonomy terms. It is similar but different to the Taxonomy Access Control, TAC Lite, Restricted Content and Premium modules.

When access is denied to a content item it supports redirecting the user to another path, or giving them the access denied page. Support for more behaviors can be added reasonably easily.
Installation instructions

1. Create a vocabulary for the access levels. A suitable name for the vocabulary is "Restrict access to". It must not be hierarchical or multiple. It can be required if you want, though this is usually not recommended.
2. Enable the vocabulary for at least one node type for which access can be restricted.
3. Create one term for each premium level. You don't need a term for "all users can access", since if a node has no access-level term set, then access control falls through to the "access content" permission.
4. Add the following line to the end of settings.php and change 123 to the ID of the vocabulary you created;
<?php
$conf['pcapbt_vocabulary_id'] = 123;
?>
5. If you want to redirect users to a page where they can promote themselves (e.g. by registering or purchasing a role), then add the following lines to the end of settings.php;
<?php
$conf['pcapbt_actions'] = array(
456 => array(
'behavior' => 'redirect',
'path' => 'user/login',
),
789 => array(
'behavior' => 'redirect',
'path' => 'node/1',
),
);
?>
6. Change 456 and 789 to the term IDs for the access level terms you created. Change user/login and node/1 to the Drupal system paths that users should be redirected to when they need to upgrade their account. If you don't configure any settings for a term, then it will simply return the 403 access denied content. Currently only the redirect behavior is supported, more behaviors can be added in the module, such as teaser, callback function, view, panel.
7. On the permissions page you can now set access permissions for each role and term you created.

Important Note

If you change a term name you will need to reconfigure permissions. This is a bug that needs to be fixed, by form_altering the permissions form so that the permission string uses the term ID, but the UI uses the term name.

License: Freeware

Related: Access, Permissions, vocabulary, Content, Array, denied, Users, Redirect, behavior, Path, Change, added, fphp, Level, don, settingsphp, created

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 5



More Similar Code

Module Grants makes modules that deal with content access permissions operate better on unpublished (as well as published) content. It also makes sure that access grants behave in an orderly fashion when such modules are used together.

* Access grants are tested for unpublished content just as they are for published content
* Allows modules that feature fine-grained access control (e.g. Workflow, TAC-Lite) to work together



Yet another node access module.

This module allows you to manage permissions for content types by role and author. It allows you to specifiy custom view, edit and delete permissions for each content type. Optionally you can enable per...



This module adds a new node option Premium content along with core publishing options (Published, Promoted to front page, Sticky at top of lists).

When a node is published as premium content, only users with proper privileges may view...



Based on the 3rd-party Category Access, this plugin provides the core functionality for restricting the access permissions of posts. This gives you the ability to permit only specific registered users to read certain posts or certain categories of...



Simple per-node content access module that performs a little differently than the majority of access modules. This module replaces the content teaser/body with "This post has been restricted to certain users" to show users that they are...



Enables modules to add to the access permissions of other modules.

Useful for simplifying the Access Control page.



This module allows users with the right access permissions to set group hierarchy.
Admin can set content and users propagation, which means a post created in one group can propagate down/ up/ sideways the subgroups tree.
The same goes...



Detects and allows removal of obsolete content types managed by missing modules and modules that no longer offer the content types they once did. The tool is accessible from a tab in the content types admin section.



Insert View is a filter that allows users to embed content lists generated by the Views module into node bodies and blocks using relatively simple tag syntax. Naturally, it requires the Views module to operate.

Why would you want to use...



Insert Very Simple Image Gallery in your content type managed by jSeblod CCK.
This pack includes 1 categories of preset fields that you can use on the box in your content type.
It includes a set of fields which match to plugin parameters.

User Review for Premium Content Access Permissions By Term
- required fields
     

Please enter text on the image