Premium restrict by term
Liliplanet - February 26, 2009 - 07:02
| Project: | Premium |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Description
Regarding the premium.module which is fabulous, as I love the ability to restrict role after the teaser .. but ..
I need to restrict roles after the teaser by role AND taxonomy term and not time based.
I was wondering, would it be possible to offer that capability? Or even if I had to insert the code into my node-article.tpl.php directly.
for instance in template:
<?php
$account = user_load(array('uid' => $node->uid));
if (in_array('Anonymous User', $account->roles)) :
?>
Load Teaser</div>
<?php endif; ?>
<?php
$account = user_load(array('uid' => $node->uid));
if (in_array('Authenticated', $account->roles)) :
?>
Full Article</div>
<?php endif; ?>my problem is, if (in_array('Authenticated', $account->roles)) : AND Taxonomy ID ..
Would be most happy to pay you for this alteration, and please contact me via contact form.
Look forward to hearing from you.
Lilian
