Closed (won't fix)
Project:
Premium
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Feb 2009 at 07:02 UTC
Updated:
16 Apr 2011 at 15:38 UTC
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
Comments
Comment #1
miklI think this is beyond the scope of this module. You should be able to do this yourself with hook_nodeapi if you want.